diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-08-22 11:19:30 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-08-22 11:19:30 +0000 |
commit | c4212c423b2cf0bd76d9130710c44a36751f8a16 (patch) | |
tree | 1bd28f927a6dcfc5949f7ea12d4c6d7ae08f1c75 /src/main/Parameters.c | |
parent | 2fcecbf20dc498dab7d5beb65c5a070d0bbe6606 (diff) |
Use Util_StrCmpi() instead of STR_CMP().
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3381 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/Parameters.c')
-rw-r--r-- | src/main/Parameters.c | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/src/main/Parameters.c b/src/main/Parameters.c index e21fe5fc..d65bc277 100644 --- a/src/main/Parameters.c +++ b/src/main/Parameters.c @@ -177,9 +177,6 @@ int CCTK_RegexMatch (const char *string, const int nmatch, regmatch_t *pmatch); -int STR_cmpi (const char *string1, const char *string2); -#define STR_CMP(a,b) STR_cmpi (a, b) - extern void CCTKi_SetParameterSetMask (int mask); /******************************************************************** @@ -1134,12 +1131,12 @@ static t_param *ParameterFind (const char *name, } else if (scope == SCOPE_ANY) { - if (thorn && ! STR_CMP (thorn, list->param->props->thorn)) + if (thorn && ! Util_StrCmpi (thorn, list->param->props->thorn)) { break; } } - else if (! STR_CMP (thorn, list->param->props->thorn) && + else if (! Util_StrCmpi (thorn, list->param->props->thorn) && list->param->props->scope == scope) { break; @@ -1471,15 +1468,15 @@ static int ParameterGetScope (const char *scope) int retval; - if (! STR_CMP (scope, "GLOBAL")) + if (! Util_StrCmpi (scope, "GLOBAL")) { retval = SCOPE_GLOBAL; } - else if (! STR_CMP(scope, "RESTRICTED")) + else if (! Util_StrCmpi(scope, "RESTRICTED")) { retval = SCOPE_RESTRICTED; } - else if (! STR_CMP(scope, "PRIVATE")) + else if (! Util_StrCmpi(scope, "PRIVATE")) { retval = SCOPE_PRIVATE; } @@ -1497,27 +1494,27 @@ static int ParameterGetType (const char *type) int retval; - if (! STR_CMP (type, "KEYWORD")) + if (! Util_StrCmpi (type, "KEYWORD")) { retval = PARAMETER_KEYWORD; } - else if (! STR_CMP (type, "STRING")) + else if (! Util_StrCmpi (type, "STRING")) { retval = PARAMETER_STRING; } - else if (! STR_CMP (type, "SENTENCE")) + else if (! Util_StrCmpi (type, "SENTENCE")) { retval = PARAMETER_SENTENCE; } - else if (! STR_CMP (type, "INT")) + else if (! Util_StrCmpi (type, "INT")) { retval = PARAMETER_INT; } - else if (! STR_CMP (type, "REAL")) + else if (! Util_StrCmpi (type, "REAL")) { retval = PARAMETER_REAL; } - else if (! STR_CMP (type, "BOOLEAN")) + else if (! Util_StrCmpi (type, "BOOLEAN")) { retval = PARAMETER_BOOLEAN; } @@ -1633,7 +1630,7 @@ static int ParameterExtend (t_param *param, { lastnode = rangenode; - order = STR_CMP (range_origin, rangenode->origin); + order = Util_StrCmpi (range_origin, rangenode->origin); if (order <= 0) { @@ -1951,7 +1948,7 @@ static int ParameterSetKeyword (t_param *param, const char *value) if (CCTK_IsThornActive (range->origin) || CCTK_Equals (param->props->thorn, range->origin)) { - if (!STR_CMP(value, range->range)) + if (!Util_StrCmpi(value, range->range)) { retval = CCTK_SetString (param->data, value); break; |