1 A patch to Scintilla 3.54 containing our changes to Scintilla
2 (removing unused lexers, exporting symbols, and an updated marshallers file).
3 diff --git scintilla/gtk/ScintillaGTK.cxx scintilla/gtk/ScintillaGTK.cxx
4 index 0871ca2..49dc278 100644
5 --- scintilla/gtk/ScintillaGTK.cxx
6 +++ scintilla/gtk/ScintillaGTK.cxx
7 @@ -3104,6 +3104,7 @@ sptr_t ScintillaGTK::DirectFunction(
8 return reinterpret_cast<ScintillaGTK *>(ptr)->WndProc(iMessage, wParam, lParam);
12 sptr_t scintilla_send_message(ScintillaObject *sci, unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
13 ScintillaGTK *psci = reinterpret_cast<ScintillaGTK *>(sci->pscin);
14 return psci->WndProc(iMessage, wParam, lParam);
15 @@ -3115,6 +3116,7 @@ static void scintilla_init(ScintillaObject *sci);
16 extern void Platform_Initialise();
17 extern void Platform_Finalise();
20 GType scintilla_get_type() {
21 static GType scintilla_type = 0;
23 @@ -3252,6 +3254,7 @@ static void scintilla_init(ScintillaObject *sci) {
28 GtkWidget* scintilla_new() {
29 GtkWidget *widget = GTK_WIDGET(g_object_new(scintilla_get_type(), NULL));
30 gtk_widget_set_direction(widget, GTK_TEXT_DIR_LTR);
31 diff --git scintilla/gtk/scintilla-marshal.c scintilla/gtk/scintilla-marshal.c
32 index be57b7c..cee3e73 100644
33 --- scintilla/gtk/scintilla-marshal.c
34 +++ scintilla/gtk/scintilla-marshal.c
36 #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong
37 #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64
38 #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64
39 -#define g_marshal_value_peek_enum(v) (v)->data[0].v_int
40 -#define g_marshal_value_peek_flags(v) (v)->data[0].v_uint
41 +#define g_marshal_value_peek_enum(v) (v)->data[0].v_long
42 +#define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong
43 #define g_marshal_value_peek_float(v) (v)->data[0].v_float
44 #define g_marshal_value_peek_double(v) (v)->data[0].v_double
45 #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer
47 /* NONE:INT,POINTER (scintilla-marshal.list:1) */
49 scintilla_marshal_VOID__INT_POINTER (GClosure *closure,
50 - GValue *return_value,
51 + GValue *return_value G_GNUC_UNUSED,
53 const GValue *param_values,
54 - gpointer invocation_hint,
55 + gpointer invocation_hint G_GNUC_UNUSED,
56 gpointer marshal_data)
58 typedef void (*GMarshalFunc_VOID__INT_POINTER) (gpointer data1,
59 diff --git scintilla/src/Catalogue.cxx scintilla/src/Catalogue.cxx
60 index b02a010..400d423 100644
61 --- scintilla/src/Catalogue.cxx
62 +++ scintilla/src/Catalogue.cxx
63 @@ -76,120 +76,50 @@ int Scintilla_LinkLexers() {
65 //++Autogenerated -- run scripts/LexGen.py to regenerate
66 //**\(\tLINK_LEXER(\*);\n\)
81 - LINK_LEXER(lmBibTeX);
82 - LINK_LEXER(lmBlitzBasic);
83 - LINK_LEXER(lmBullant);
86 - LINK_LEXER(lmClwNoCase);
89 LINK_LEXER(lmCoffeeScript);
92 - LINK_LEXER(lmCPPNoCase);
93 - LINK_LEXER(lmCsound);
100 - LINK_LEXER(lmEiffel);
101 - LINK_LEXER(lmEiffelkw);
102 LINK_LEXER(lmErlang);
103 - LINK_LEXER(lmErrorList);
104 - LINK_LEXER(lmESCRIPT);
106 - LINK_LEXER(lmFlagShip);
108 LINK_LEXER(lmFortran);
109 LINK_LEXER(lmFreeBasic);
111 - LINK_LEXER(lmGui4Cli);
112 LINK_LEXER(lmHaskell);
114 - LINK_LEXER(lmIHex);
115 - LINK_LEXER(lmInno);
117 - LINK_LEXER(lmKVIrc);
120 - LINK_LEXER(lmLiterateHaskell);
122 - LINK_LEXER(lmLout);
124 - LINK_LEXER(lmMagikSF);
126 LINK_LEXER(lmMarkdown);
127 - LINK_LEXER(lmMatlab);
128 - LINK_LEXER(lmMETAPOST);
129 - LINK_LEXER(lmMMIXAL);
130 - LINK_LEXER(lmModula);
131 - LINK_LEXER(lmMSSQL);
132 - LINK_LEXER(lmMySQL);
133 - LINK_LEXER(lmNimrod);
134 - LINK_LEXER(lmNncrontab);
135 + // We use Octave instead of Matlab
138 LINK_LEXER(lmOctave);
139 - LINK_LEXER(lmOpal);
140 - LINK_LEXER(lmOScript);
141 LINK_LEXER(lmPascal);
144 LINK_LEXER(lmPHPSCRIPT);
148 - LINK_LEXER(lmPowerPro);
149 LINK_LEXER(lmPowerShell);
150 - LINK_LEXER(lmProgress);
153 - LINK_LEXER(lmPureBasic);
154 LINK_LEXER(lmPython);
156 - LINK_LEXER(lmREBOL);
157 - LINK_LEXER(lmRegistry);
160 - LINK_LEXER(lmScriptol);
161 - LINK_LEXER(lmSmalltalk);
163 - LINK_LEXER(lmSorc);
164 - LINK_LEXER(lmSpecman);
165 - LINK_LEXER(lmSpice);
167 - LINK_LEXER(lmSrec);
168 - LINK_LEXER(lmSTTXT);
169 - LINK_LEXER(lmTACL);
170 - LINK_LEXER(lmTADS3);
173 - LINK_LEXER(lmTCMD);
174 - LINK_LEXER(lmTEHex);
176 LINK_LEXER(lmTxt2tags);
178 - LINK_LEXER(lmVBScript);
179 LINK_LEXER(lmVerilog);
181 - LINK_LEXER(lmVisualProlog);