Skip to content

Instantly share code, notes, and snippets.

View codebrainz's full-sized avatar

Matthew Brush codebrainz

View GitHub Profile
0000000000000680 <vStringStripLeading>:
680: 41 54 push %r12
682: 55 push %rbp
683: 53 push %rbx
684: 48 8b 2f mov (%rdi),%rbp
687: 48 85 ed test %rbp,%rbp
68a: 74 2e je 6ba <vStringStripLeading+0x3a>
68c: 49 89 fc mov %rdi,%r12
68f: 31 db xor %ebx,%ebx
691: e8 00 00 00 00 callq 696 <vStringStripLeading+0x16>
,IMMEDIATE,,,ABSOLUTE,,,ZERO PAGE,,,ACCUM.,,,IMPLIED,,,"(IND,X)",,,"(IND),Y",,,"Z,PAGE,X",,,"ABS,X",,,"ABS,Y",,,RELATIVE,,,INDIRECT,,,"Z,PAGE,Y",,,,,,,,
MNEMONIC,OP,N,#,OP,N,#,OP,N,#,OP,N,#,OP,N,#,OP,N,#,OP,N,#,OP,N,#,OP,N,#,OP,N,#,OP,N,#,OP,N,#,OP,N,#,N,Z,C,I,D,V
ADC,69,2,2,6D,4,3,65,3,2,,,,,,,61,6,2,71,5,2,75,4,2,7D,4,3,79,4,3,,,,,,,,,,✓,✓,✓,-,-,✓
AND,29,2,2,2D,4,3,25,3,2,,,,,,,21,6,2,31,5,2,35,4,2,3D,4,3,39,4,3,,,,,,,,,,✓,✓,-,-,-,-
ASL,,,,9E,6,3,6,5,2,0A,2,1,,,,,,,,,,16,6,2,1E,7,3,,,,,,,,,,,,,✓,✓,✓,-,-,-
BCC,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,99,2,2,,,,,,,-,-,-,-,-,-
BCS,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,B9,2,2,,,,,,,-,-,-,-,-,-
BEQ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,F0,2,2,,,,,,,-,-,-,-,-,-
BIT,,,,2C,4,3,24,3,2,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,✓,✓,-,-,-,✓
BMI,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,30,2,2,,,,,,,-,-,-,-,-,-
diff --git a/src/settings.c b/src/settings.c
index 96e0573..d620595 100644
--- a/src/settings.c
+++ b/src/settings.c
@@ -38,25 +38,24 @@
GSettings *geany_settings = NULL;
-static void on_sidebar_pos_left_changed(GSettings *settings, gchar *key, gpointer user_data)
+static void on_setting_changed(GSettings *settings, gchar *key, gpointer user_data)
@codebrainz
codebrainz / documentmanager.c
Last active September 12, 2016 14:31
Attaching arbitrary data to documents in a Geany plugin.
#include "documentmanager.h"
static GHashTable *geany_document_data = NULL;
static GData **geany_document_data_new(void)
{
GData **doc_data = g_slice_new0(GData*);
g_datalist_init(doc_data);
return doc_data;
}
@codebrainz
codebrainz / ax_libclang.m4
Created September 8, 2016 00:32
Checking for libclang with Autotools
########################################################################
# Usage: AX_LIBCLANG([min-abi], [min-api]) #
########################################################################
AC_DEFUN([AX_LIBCLANG],
[
#
# First try and use llvm-config if available, to add needed include and library paths
#
#define GEANY_DEFINE_PLUGIN(name, \
description, \
version, \
author, \
api, \
init_func, \
cleanup_func, \
config_func, \
help_func) \
G_MODULE_EXPORT void geany_load_module (GeanyPlugin *plugin) \
diff --git a/scintilla/gtk/ScintillaGTK.cxx b/scintilla/gtk/ScintillaGTK.cxx
index 92fc064..bf66928 100644
--- a/scintilla/gtk/ScintillaGTK.cxx
+++ b/scintilla/gtk/ScintillaGTK.cxx
@@ -546,8 +546,10 @@ void ScintillaGTK::UnRealizeThis(GtkWidget *widget) {
GTK_WIDGET_UNSET_FLAGS(widget, GTK_REALIZED);
#endif
gtk_widget_unrealize(PWidget(wText));
- gtk_widget_unrealize(PWidget(scrollbarv));
- gtk_widget_unrealize(PWidget(scrollbarh));
diff --git a/src/project.c b/src/project.c
index b235160..6a488e0 100644
--- a/src/project.c
+++ b/src/project.c
@@ -319,54 +319,59 @@ void project_open(void)
if (! project_ask_close()) return;
#ifdef G_OS_WIN32
- file = win32_show_project_open_dialog(main_widgets.window, _("Open Project"), dir, FALSE, TRUE);
- if (file != NULL)
diff --git a/src/editor.c b/src/editor.c
index 595cd54..35105bc 100644
--- a/src/editor.c
+++ b/src/editor.c
@@ -2626,7 +2626,7 @@ static gboolean snippets_complete_constructs(GeanyEditor *editor, gint pos, cons
gchar *str;
const gchar *completion;
gint str_len;
- gint ft_id = editor->document->file_type->id;
+ GeanyFiletypeID ft_id = editor->document->file_type->id;
#0 0x00007ffff53a4443 in g_private_get ()
from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1 0x00007ffff537ceec in g_slice_free1 ()
from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007ffff634746d in pango_attr_list_unref ()
from /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0
#3 0x00007ffff63542a8 in ?? ()
from /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0
#4 0x00007ffff6356238 in pango_layout_get_iter ()
from /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0