mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 05:47:42 +02:00
xpressn.c, fetchid(), #8/15 rewrite
This commit is contained in:
@@ -722,10 +722,12 @@ fetchid(SPICE_DSTRINGPTR t, const char *s, const char *s_end)
|
|||||||
|
|
||||||
ok = alfanum(c) || c == '.';
|
ok = alfanum(c) || c == '.';
|
||||||
|
|
||||||
if (ok)
|
if (!ok)
|
||||||
cadd(t, upcase(c));
|
return s - 1;
|
||||||
|
|
||||||
} while (ok);
|
cadd(t, upcase(c));
|
||||||
|
|
||||||
|
} while (1);
|
||||||
|
|
||||||
return s - 1; /* return updated s */
|
return s - 1; /* return updated s */
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user