mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 13:57:32 +02:00
xpressn.c, fetchid(), #10/15 rewrite
This commit is contained in:
@@ -710,10 +710,7 @@ fetchid(SPICE_DSTRINGPTR t, const char *s, const char *s_end)
|
||||
spice_dstring_reinit(t);
|
||||
cadd(t, upcase(c));
|
||||
|
||||
do
|
||||
{
|
||||
if (s >= s_end)
|
||||
break;
|
||||
for (; s < s_end; ) {
|
||||
|
||||
c = *s++;
|
||||
|
||||
@@ -727,8 +724,7 @@ fetchid(SPICE_DSTRINGPTR t, const char *s, const char *s_end)
|
||||
return s - 1;
|
||||
|
||||
cadd(t, upcase(c));
|
||||
|
||||
} while (1);
|
||||
}
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user