1 A patch to Scintilla 3.54 containing our changes to Scintilla
2 (removing unused lexers, exporting symbols).
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 @@ -3205,11 +3205,13 @@
10 /* legacy name for scintilla_object_send_message */
12 sptr_t scintilla_send_message(ScintillaObject *sci, unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
13 ScintillaGTK *psci = static_cast<ScintillaGTK *>(sci->pscin);
14 return psci->WndProc(static_cast<Message>(iMessage), wParam, lParam);
18 gintptr scintilla_object_send_message(ScintillaObject *sci, unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
19 return scintilla_send_message(sci, iMessage, wParam, lParam);
22 static void scintilla_init(ScintillaObject *sci);
24 /* legacy name for scintilla_object_get_type */
26 GType scintilla_get_type() {
27 static GType scintilla_type = 0;
30 return scintilla_type;
34 GType scintilla_object_get_type() {
35 return scintilla_get_type();
40 /* legacy name for scintilla_object_new */
42 GtkWidget *scintilla_new() {
43 GtkWidget *widget = GTK_WIDGET(g_object_new(scintilla_get_type(), nullptr));
44 gtk_widget_set_direction(widget, GTK_TEXT_DIR_LTR);
50 GtkWidget *scintilla_object_new() {
51 return scintilla_new();
54 static void *copy_(void *src) { return src; }
55 static void free_(void *) { }
58 GType scnotification_get_type(void) {
59 static gsize type_id = 0;
60 if (g_once_init_enter(&type_id)) {
61 diff --git scintilla/lexilla/src/Lexilla.cxx scintilla/lexilla/src/Lexilla.cxx
62 index cd4b23617..af4a73db4 100644
63 --- scintilla/lexilla/src/Lexilla.cxx
64 +++ scintilla/lexilla/src/Lexilla.cxx
67 CatalogueModules catalogueLexilla;
69 +static void AddGeanyLexers()
71 + catalogueLexilla.AddLexerModules({
130 void AddEachLexer() {
135 if (catalogueLexilla.Count() > 0) {