Cleanup: strcmp/strncmp -> STREQ/STREQLEN (in boolean usage).

Makes usage of those funcs much more clear, we even had mixed '!strcmp(foo, bar)'
and 'strcmp(foo, bar) == 0' in several places...
This commit is contained in:
2015-01-26 16:03:11 +01:00
parent d44890ee75
commit fca515838e
133 changed files with 467 additions and 471 deletions

View File

@@ -454,7 +454,7 @@ static void data_dir_add(ListBase *lb, const char *member, const bool use_all)
{
LinkData *link;
if ((use_all == false) && strcmp(member, "scene") == 0) /* exception */
if ((use_all == false) && STREQ(member, "scene")) /* exception */
return;
if (BLI_findstring(lb, member, offsetof(LinkData, data)))
@@ -546,7 +546,7 @@ ListBase CTX_data_dir_get(const bContext *C)
bool CTX_data_equals(const char *member, const char *str)
{
return (strcmp(member, str) == 0);
return (STREQ(member, str));
}
bool CTX_data_dir(const char *member)