SF.net SVN: geany:[4289] trunk/src/highlighting.c
ntrel at users.sourceforge.net
ntrel at xxxxx
Sun Oct 4 11:19:52 UTC 2009
Revision: 4289
http://geany.svn.sourceforge.net/geany/?rev=4289&view=rev
Author: ntrel
Date: 2009-10-04 11:19:46 +0000 (Sun, 04 Oct 2009)
Log Message:
-----------
Fix 2 wrong uses of SSM() macro.
Modified Paths:
--------------
trunk/src/highlighting.c
Modified: trunk/src/highlighting.c
===================================================================
--- trunk/src/highlighting.c 2009-10-04 11:15:26 UTC (rev 4288)
+++ trunk/src/highlighting.c 2009-10-04 11:19:46 UTC (rev 4289)
@@ -42,9 +42,6 @@
#include "utils.h"
-/* Note: Avoid using SSM in files not related to scintilla, use sciwrappers.h instead. */
-#define SSM(s, m, w, l) scintilla_send_message(s, m, w, l)
-
/* Whitespace has to be set after setting wordchars. */
#define GEANY_WHITESPACE_CHARS " \t" "!\"#$%&'()*+,-./:;<=>?@[\\]^`{|}~"
@@ -110,6 +107,9 @@
static GeanyLexerStyle gsd_default = {0x000000, 0xffffff, FALSE, FALSE};
+/* Note: Avoid using SSM in files not related to scintilla, use sciwrappers.h instead. */
+#define SSM(s, m, w, l) scintilla_send_message(s, m, w, l)
+
static void sci_set_property(ScintillaObject *sci, const gchar *name, const gchar *value)
{
SSM(sci, SCI_SETPROPERTY, (uptr_t) name, (sptr_t) value);
@@ -1012,7 +1012,7 @@
styleset_c_like(sci, ft_id);
if (style_sets[ft_id].styling[20].foreground == 1)
- SSM(sci, ft_id, (sptr_t) "styling.within.preprocessor", (sptr_t) "1");
+ sci_set_property(sci, "styling.within.preprocessor", "1");
}
@@ -1046,7 +1046,7 @@
styleset_c_like(sci, ft_id);
if (style_sets[ft_id].styling[20].foreground == 1)
- SSM(sci, ft_id, (sptr_t) "styling.within.preprocessor", (sptr_t) "1");
+ sci_set_property(sci, "styling.within.preprocessor", "1");
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list