- 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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user