From: Nicholas Nethercote Date: Thu, 14 Dec 2006 03:29:18 +0000 (+0000) Subject: Make VG_STREQ return True or False, rather than any integer. X-Git-Tag: svn/VALGRIND_3_3_0~486 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=21dee9ebc39610a67acb1b040417bfedaef40681;p=thirdparty%2Fvalgrind.git Make VG_STREQ return True or False, rather than any integer. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6400 --- diff --git a/include/pub_tool_libcbase.h b/include/pub_tool_libcbase.h index b564b4a6d2..873f4a74cd 100644 --- a/include/pub_tool_libcbase.h +++ b/include/pub_tool_libcbase.h @@ -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 );