Remove some compiler warnings

This commit is contained in:
Holger Vogt 2020-12-22 14:21:13 +01:00
parent 2359f28812
commit e8aea4967c
2 changed files with 6 additions and 6 deletions

View File

@ -2096,7 +2096,7 @@ static int is_a_modelname(const char *s)
}
/* test if we have a true number */
if (*st == '\0' || isspace(*st)) {
if (*st == '\0' || isspace_c(*st)) {
return FALSE;
}
@ -2139,7 +2139,7 @@ static int is_a_modelname(const char *s)
break;
}
/* test if we have a true scale factor */
if (*st == '\0' || isspace(*st))
if (*st == '\0' || isspace_c(*st))
return FALSE;
/* test if people use Ohms, F, H for RLC, like pF or uOhms */
@ -2152,7 +2152,7 @@ static int is_a_modelname(const char *s)
else if ((*st == 'f') || (*st == 'h'))
st = st + 1;
if (*st == '\0' || isspace(*st)) {
if (*st == '\0' || isspace_c(*st)) {
return FALSE;
}
@ -8029,8 +8029,8 @@ static struct card *pspice_compat(struct card *oldcard)
}
else { // if an integer number, it is node4
bool is_node4 = TRUE;
while (*cut_line && !isspace(*cut_line))
if (!isdigit(*cut_line++))
while (*cut_line && !isspace_c(*cut_line))
if (!isdigit_c(*cut_line++))
is_node4 = FALSE; // already model name
if (is_node4) {
cut_line = nexttok(cut_line); // model name

View File

@ -192,7 +192,7 @@ static int get_decimal_number(const char **p_str, double *p_val)
/* Ensure string either starts with a digit or a decimal point followed
* by a digit */
if ((!isdigit(ch_cur) && ch_cur != '.') ||
((ch_cur == '.') && !isdigit(p_cur[1]))) {
((ch_cur == '.') && !isdigit_c(p_cur[1]))) {
return -1;
}