stripbraces(), simplify
This commit is contained in:
parent
1721407359
commit
26ff93abd9
|
|
@ -121,7 +121,6 @@ stripbraces(SPICE_DSTRINGPTR dstr_p)
|
||||||
}
|
}
|
||||||
|
|
||||||
pscopy(&tstr, s, 0, i);
|
pscopy(&tstr, s, 0, i);
|
||||||
placeholder++;
|
|
||||||
|
|
||||||
t_p = spice_dstring_value(&tstr);
|
t_p = spice_dstring_value(&tstr);
|
||||||
|
|
||||||
|
|
@ -131,7 +130,7 @@ stripbraces(SPICE_DSTRINGPTR dstr_p)
|
||||||
cadd(&tstr, ' ');
|
cadd(&tstr, ' ');
|
||||||
{
|
{
|
||||||
char buf[25+1];
|
char buf[25+1];
|
||||||
sprintf(buf, "numparm__________%08lx", placeholder);
|
sprintf(buf, "numparm__________%08lx", ++placeholder);
|
||||||
sadd(&tstr, buf);
|
sadd(&tstr, buf);
|
||||||
}
|
}
|
||||||
cadd(&tstr, ' ');
|
cadd(&tstr, ' ');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue