getexpress(), transform loop
This commit is contained in:
parent
1df1e69f5d
commit
86ef4b8cb1
|
|
@ -1385,12 +1385,8 @@ getexpress(const char * const s, SPICE_DSTRINGPTR tstr_p, const char **pi)
|
||||||
if (c == '(') {
|
if (c == '(') {
|
||||||
/* sub-formula */
|
/* sub-formula */
|
||||||
int level = 1;
|
int level = 1;
|
||||||
do
|
p++;
|
||||||
{
|
for (; p < ls_ptr; p++) {
|
||||||
p++;
|
|
||||||
|
|
||||||
if (p >= ls_ptr)
|
|
||||||
break;
|
|
||||||
|
|
||||||
d = *p;
|
d = *p;
|
||||||
|
|
||||||
|
|
@ -1401,7 +1397,7 @@ getexpress(const char * const s, SPICE_DSTRINGPTR tstr_p, const char **pi)
|
||||||
|
|
||||||
if (level <= 0)
|
if (level <= 0)
|
||||||
break;
|
break;
|
||||||
} while (1);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} while (!strchr(",;)}", c)); /* legal separators */
|
} while (!strchr(",;)}", c)); /* legal separators */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue