[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [56246] trunk/blender/source/blender/ blenlib/BLI_utildefines.h: remove negated string macros from BLI_utildefines.h, were unused and can just use !STREQ(...)

Campbell Barton ideasman42 at gmail.com
Tue Apr 23 18:27:50 CEST 2013


Revision: 56246
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56246
Author:   campbellbarton
Date:     2013-04-23 16:27:45 +0000 (Tue, 23 Apr 2013)
Log Message:
-----------
remove negated string macros from BLI_utildefines.h, were unused and can just use !STREQ(...)

Modified Paths:
--------------
    trunk/blender/source/blender/blenlib/BLI_utildefines.h

Modified: trunk/blender/source/blender/blenlib/BLI_utildefines.h
===================================================================
--- trunk/blender/source/blender/blenlib/BLI_utildefines.h	2013-04-23 15:51:41 UTC (rev 56245)
+++ trunk/blender/source/blender/blenlib/BLI_utildefines.h	2013-04-23 16:27:45 UTC (rev 56246)
@@ -326,18 +326,12 @@
 #define STRINGIFY_APPEND(a, b) "" a #b
 #define STRINGIFY(x) STRINGIFY_APPEND("", x)
 
+
 /* generic strcmp macros */
 #define STREQ(a, b) (strcmp(a, b) == 0)
-#define STRNEQ(a, b) (!STREQ(a, b))
-
 #define STRCASEEQ(a, b) (strcasecmp(a, b) == 0)
-#define STRCASENEQ(a, b) (!STRCASEEQ(a, b))
-
 #define STREQLEN(a, b, n) (strncmp(a, b, n) == 0)
-#define STRNEQLEN(a, b, n) (!STREQLEN(a, b, n))
-
 #define STRCASEEQLEN(a, b, n) (strncasecmp(a, b, n) == 0)
-#define STRCASENEQLEN(a, b, n) (!STRCASEEQLEN(a, b, n))
 
 #define STRPREFIX(a, b) (strncmp((a), (b), strlen(b)) == 0)
 




More information about the Bf-blender-cvs mailing list