[geany/geany] 371810: Remove redundant SSM macros

Matthew Brush git-noreply at xxxxx
Fri Aug 4 06:48:30 UTC 2017


Branch:      refs/heads/master
Author:      Matthew Brush <matt at geany.org>
Committer:   Matthew Brush <mbrush at codebrainz.ca>
Date:        Fri, 04 Aug 2017 06:48:30 UTC
Commit:      371810181dcdd0752d4b299073c6deef6204a437
             https://github.com/geany/geany/commit/371810181dcdd0752d4b299073c6deef6204a437

Log Message:
-----------
Remove redundant SSM macros


Modified Paths:
--------------
    src/editor.c
    src/highlighting.c
    src/sciwrappers.c
    src/sciwrappers.h

Modified: src/editor.c
4 lines changed, 0 insertions(+), 4 deletions(-)
===================================================================
@@ -67,10 +67,6 @@
 #include <gdk/gdkkeysyms.h>
 
 
-/* Note: use sciwrappers.h instead where possible.
- * Do not use SSM in files unrelated to scintilla. */
-#define SSM(s, m, w, l) scintilla_send_message(s, m, w, l)
-
 static GHashTable *snippet_hash = NULL;
 static GtkAccelGroup *snippet_accel_group = NULL;
 static gboolean autocomplete_scope_shown = FALSE;


Modified: src/highlighting.c
4 lines changed, 0 insertions(+), 4 deletions(-)
===================================================================
@@ -125,10 +125,6 @@ static GHashTable *named_style_hash = NULL;
 static GeanyLexerStyle gsd_default = {0x000000, 0xffffff, FALSE, FALSE};
 
 
-/* Note: use sciwrappers.h instead where possible.
- * Do not use SSM in files unrelated to scintilla. */
-#define SSM(s, m, w, l) scintilla_send_message(s, m, w, l)
-
 /* filetypes should use the filetypes.foo [lexer_properties] group instead of hardcoding */
 static void sci_set_property(ScintillaObject *sci, const gchar *name, const gchar *value)
 {


Modified: src/sciwrappers.c
3 lines changed, 0 insertions(+), 3 deletions(-)
===================================================================
@@ -42,9 +42,6 @@
 #include <string.h>
 
 
-#define SSM(s, m, w, l) scintilla_send_message(s, m, w, l)
-
-
 /* line numbers visibility */
 void sci_set_line_numbers(ScintillaObject *sci, gboolean set)
 {


Modified: src/sciwrappers.h
5 lines changed, 5 insertions(+), 0 deletions(-)
===================================================================
@@ -28,6 +28,11 @@
 #include "ScintillaWidget.h" /* for ScintillaObject */
 
 
+#ifdef GEANY_PRIVATE
+#define SSM(s, m, w, l) scintilla_send_message(s, m, w, l)
+#endif
+
+
 G_BEGIN_DECLS
 
 void 				sci_set_text				(ScintillaObject *sci,  const gchar *text);



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list