SF.net SVN: geany: [1493] trunk/src/utils.h
ntrel at users.sourceforge.net
ntrel at xxxxx
Mon Apr 30 16:16:15 UTC 2007
Revision: 1493
http://svn.sourceforge.net/geany/?rev=1493&view=rev
Author: ntrel
Date: 2007-04-30 09:16:15 -0700 (Mon, 30 Apr 2007)
Log Message:
-----------
Add NZV() macro for checking a char* points to a non-empty string.
Modified Paths:
--------------
trunk/src/utils.h
Modified: trunk/src/utils.h
===================================================================
--- trunk/src/utils.h 2007-04-30 12:43:22 UTC (rev 1492)
+++ trunk/src/utils.h 2007-04-30 16:16:15 UTC (rev 1493)
@@ -25,7 +25,11 @@
#ifndef GEANY_UTILS_H
#define GEANY_UTILS_H 1
+// Returns: TRUE if ptr points to a non-zero value.
+#define NZV(ptr) \
+ ((ptr) && (ptr)[0])
+
void utils_start_browser(const gchar *uri);
/* taken from anjuta, to determine the EOL mode of the file */
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