Browse Source

findsubname(), use skip_back_ws()

pre-master-46
rlar 8 years ago
parent
commit
cbd38fdc9c
  1. 4
      src/frontend/numparam/spicenum.c

4
src/frontend/numparam/spicenum.c

@ -161,10 +161,8 @@ findsubname(dico_t *dico, SPICE_DSTRINGPTR dstr_p)
while (p > s) {
/* skip space, then non-space */
while ((p > s) && (p[-1] <= ' '))
p--;
char *p_end = p = skip_back_ws(p, s); /* at p_end: space */
char *p_end = p; /* at p_end: space */
while ((p > s) && (p[-1] > ' ')) {
if (p[-1] == '}') {

Loading…
Cancel
Save