]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Make VG_STREQ return True or False, rather than any integer.
authorNicholas Nethercote <njn@valgrind.org>
Thu, 14 Dec 2006 03:29:18 +0000 (03:29 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Thu, 14 Dec 2006 03:29:18 +0000 (03:29 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6400

include/pub_tool_libcbase.h

index b564b4a6d2627c8a4c5d4e7b511739891faeeb0f..873f4a74cdf969d8f0212d6ea2fd3b69f3d6ac98 100644 (file)
@@ -50,8 +50,8 @@ extern Long  VG_(atoll36) ( Char* str );     // base 36
    ------------------------------------------------------------------ */
 
 /* Use this for normal null-termination-style string comparison */
-#define VG_STREQ(s1,s2) (s1 != NULL && s2 != NULL \
-                         && VG_(strcmp)((s1),(s2))==0)
+#define VG_STREQ(s1,s2) ( (s1 != NULL && s2 != NULL \
+                           && VG_(strcmp)((s1),(s2))==0) ? True : False )
 
 extern Int   VG_(strlen)         ( const Char* str );
 extern Char* VG_(strcat)         ( Char* dest, const Char* src );