Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-04-23 20:27:45 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-04-23 20:27:45 +0400
commitd119b5b197adc979ab437750212a882e41283065 (patch)
treedacc3d6919e2651ea15ee1e6dc73b036c3cab984 /source/blender/blenlib/BLI_utildefines.h
parentaa206bcd14ff1c32a38dd18398ec971e60c411b1 (diff)
remove negated string macros from BLI_utildefines.h, were unused and can just use !STREQ(...)
Diffstat (limited to 'source/blender/blenlib/BLI_utildefines.h')
-rw-r--r--source/blender/blenlib/BLI_utildefines.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/source/blender/blenlib/BLI_utildefines.h b/source/blender/blenlib/BLI_utildefines.h
index bf5531d94af..5a104013803 100644
--- a/source/blender/blenlib/BLI_utildefines.h
+++ b/source/blender/blenlib/BLI_utildefines.h
@@ -326,18 +326,12 @@ typedef bool _BLI_Bool;
#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)