numparam, use `strtoupper()', drop `stupcase()'
This commit is contained in:
parent
a0a3f48227
commit
fa14255fc9
|
|
@ -25,6 +25,5 @@ bool ci_prefix(const char *p, const char *s);
|
||||||
|
|
||||||
bool alfa(char c);
|
bool alfa(char c);
|
||||||
bool alfanum(char c);
|
bool alfanum(char c);
|
||||||
char *stupcase(char *s);
|
|
||||||
|
|
||||||
int yes_or_no(void);
|
int yes_or_no(void);
|
||||||
|
|
|
||||||
|
|
@ -335,20 +335,6 @@ alfanum(char c)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
char *
|
|
||||||
stupcase(char *s)
|
|
||||||
{
|
|
||||||
int i = 0;
|
|
||||||
|
|
||||||
while (s[i] != '\0') {
|
|
||||||
s[i] = toupper_c(s[i]);
|
|
||||||
i++;
|
|
||||||
}
|
|
||||||
|
|
||||||
return s;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/***** elementary math *******/
|
/***** elementary math *******/
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
|
||||||
|
|
@ -1101,7 +1101,7 @@ evaluate_variable(dico_t *dico, SPICE_DSTRINGPTR qstr_p, char *t)
|
||||||
|
|
||||||
spice_dstring_reinit(qstr_p);
|
spice_dstring_reinit(qstr_p);
|
||||||
|
|
||||||
stupcase(t);
|
strtoupper(t);
|
||||||
entry = entrynb(dico, t);
|
entry = entrynb(dico, t);
|
||||||
|
|
||||||
if (!entry)
|
if (!entry)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue