SF.net SVN: geany:[5277] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Mon Oct 4 14:20:40 UTC 2010
Revision: 5277
http://geany.svn.sourceforge.net/geany/?rev=5277&view=rev
Author: ntrel
Date: 2010-10-04 14:20:40 +0000 (Mon, 04 Oct 2010)
Log Message:
-----------
Move foreach_strv to utils.h.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/highlighting.c
trunk/src/utils.h
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-10-04 11:05:59 UTC (rev 5276)
+++ trunk/ChangeLog 2010-10-04 14:20:40 UTC (rev 5277)
@@ -10,6 +10,8 @@
Add some subheadings for Snippets section.
* doc/geany.txt, doc/geany.html:
Add snippet keybindings docs.
+ * src/highlighting.c, src/utils.h:
+ Move foreach_strv to utils.h.
2010-09-30 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/highlighting.c
===================================================================
--- trunk/src/highlighting.c 2010-10-04 11:05:59 UTC (rev 5276)
+++ trunk/src/highlighting.c 2010-10-04 14:20:40 UTC (rev 5277)
@@ -3188,9 +3188,6 @@
}
-#define foreach_strv(strptr, strv) \
- for (strptr = strv; *strptr; strptr++)
-
static void read_properties(GeanyFiletype *ft, GKeyFile *config, GKeyFile *configh)
{
gchar group[] = "lexer_properties";
Modified: trunk/src/utils.h
===================================================================
--- trunk/src/utils.h 2010-10-04 11:05:59 UTC (rev 5276)
+++ trunk/src/utils.h 2010-10-04 14:20:40 UTC (rev 5277)
@@ -115,6 +115,9 @@
#define foreach_str(char_ptr, string) \
for (char_ptr = string; *char_ptr; char_ptr++)
+/* Iterate NULL-terminated string vector */
+#define foreach_strv foreach_str
+
/** Iterates from 0 to @a size.
* @param i Integer.
* @param size Number of iterations.
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