- got tired of str[n]casecmp not declared warnings

- added BLI_str[n]casecmp, use instead of regular versions
 - rewrote BLI_str[n]casecmp to not be stupid
This commit is contained in:
2005-04-02 15:36:57 +00:00
parent bdb86d7c67
commit 24c9f65056
19 changed files with 210 additions and 202 deletions

View File

@@ -706,7 +706,7 @@ static void sort_alpha_id(ListBase *lb, ID *id)
idtest= lb->first;
while(idtest) {
if(strcasecmp(idtest->name, id->name)>0 || idtest->lib) {
if(BLI_strcasecmp(idtest->name, id->name)>0 || idtest->lib) {
BLI_insertlinkbefore(lb, idtest, id);
break;
}

View File

@@ -164,11 +164,11 @@ int compare_property(bProperty *prop, char *str)
switch(prop->type) {
case PROP_BOOL:
if(strcasecmp(str, "true")==0) {
if(BLI_strcasecmp(str, "true")==0) {
if(prop->data==1) return 0;
else return 1;
}
else if(strcasecmp(str, "false")==0) {
else if(BLI_strcasecmp(str, "false")==0) {
if(prop->data==0) return 0;
else return 1;
}
@@ -200,8 +200,8 @@ void set_property(bProperty *prop, char *str)
switch(prop->type) {
case PROP_BOOL:
if(strcasecmp(str, "true")==0) prop->data= 1;
else if(strcasecmp(str, "false")==0) prop->data= 0;
if(BLI_strcasecmp(str, "true")==0) prop->data= 1;
else if(BLI_strcasecmp(str, "false")==0) prop->data= 0;
else prop->data= (atoi(str)!=0);
break;
case PROP_INT:

View File

@@ -70,7 +70,7 @@ void makeavistring (char *string)
RE_make_existing_file(string);
if (strcasecmp(string + strlen(string) - 4, ".avi")) {
if (BLI_strcasecmp(string + strlen(string) - 4, ".avi")) {
sprintf(txt, "%04d_%04d.avi", (G.scene->r.sfra) , (G.scene->r.efra) );
strcat(string, txt);
}