mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Changed extension of conditional attributes to use stricmp instead strcmp
SVN revision: 1941
This commit is contained in:
parent
532d4f0258
commit
07b89dcd99
@ -2785,7 +2785,7 @@ BOOL match_param(char *str, char *param, int conditional_only)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (!_condition[0] || str[0] != '{')
|
if (!_condition[0] || str[0] != '{')
|
||||||
return (strcmp(str, param) == 0);
|
return (stricmp(str, param) == 0);
|
||||||
|
|
||||||
p = str;
|
p = str;
|
||||||
if (strchr(p, '}'))
|
if (strchr(p, '}'))
|
||||||
@ -2806,7 +2806,7 @@ BOOL match_param(char *str, char *param, int conditional_only)
|
|||||||
for (j = 0; j < npl; j++)
|
for (j = 0; j < npl; j++)
|
||||||
if (stricmp(clist[i], plist[j]) == 0) {
|
if (stricmp(clist[i], plist[j]) == 0) {
|
||||||
/* condition matches */
|
/* condition matches */
|
||||||
return strcmp(p, param) == 0;
|
return stricmp(p, param) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* check and'ed conditions */
|
/* check and'ed conditions */
|
||||||
@ -2823,7 +2823,7 @@ BOOL match_param(char *str, char *param, int conditional_only)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (j == nand)
|
if (j == nand)
|
||||||
return strcmp(p, param) == 0;
|
return stricmp(p, param) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user