|
From: <sv...@va...> - 2006-12-14 03:29:24
|
Author: njn
Date: 2006-12-14 03:29:18 +0000 (Thu, 14 Dec 2006)
New Revision: 6400
Log:
Make VG_STREQ return True or False, rather than any integer.
Modified:
trunk/include/pub_tool_libcbase.h
Modified: trunk/include/pub_tool_libcbase.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/include/pub_tool_libcbase.h 2006-12-14 02:55:58 UTC (rev 6399)
+++ trunk/include/pub_tool_libcbase.h 2006-12-14 03:29:18 UTC (rev 6400)
@@ -50,8 +50,8 @@
------------------------------------------------------------------ */
=20
/* Use this for normal null-termination-style string comparison */
-#define VG_STREQ(s1,s2) (s1 !=3D NULL && s2 !=3D NULL \
- && VG_(strcmp)((s1),(s2))=3D=3D0)
+#define VG_STREQ(s1,s2) ( (s1 !=3D NULL && s2 !=3D NULL \
+ && VG_(strcmp)((s1),(s2))=3D=3D0) ? True : Fa=
lse )
=20
extern Int VG_(strlen) ( const Char* str );
extern Char* VG_(strcat) ( Char* dest, const Char* src );
|