numparam, use `strtoupper()', drop `stupcase()'

This commit is contained in:
rlar 2016-05-15 20:00:47 +02:00
parent a0a3f48227
commit fa14255fc9
3 changed files with 1 additions and 16 deletions

View File

@ -25,6 +25,5 @@ bool ci_prefix(const char *p, const char *s);
bool alfa(char c);
bool alfanum(char c);
char *stupcase(char *s);
int yes_or_no(void);

View File

@ -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 *******/
int

View File

@ -1101,7 +1101,7 @@ evaluate_variable(dico_t *dico, SPICE_DSTRINGPTR qstr_p, char *t)
spice_dstring_reinit(qstr_p);
stupcase(t);
strtoupper(t);
entry = entrynb(dico, t);
if (!entry)