getexpress(), simplify usage
This commit is contained in:
parent
830b5faf0e
commit
043a04b775
|
|
@ -1669,9 +1669,8 @@ nupa_subcktcall(dico_t *dico, char *s, char *x, char *inst_name)
|
||||||
} else if (t_p[k] == '{') {
|
} else if (t_p[k] == '{') {
|
||||||
char *aux = spice_dstring_value(&tstr);
|
char *aux = spice_dstring_value(&tstr);
|
||||||
const char *tmp = aux + j;
|
const char *tmp = aux + j;
|
||||||
tmp = getexpress(NULL, &ustr, tmp) + 1;
|
tmp = getexpress(NULL, &ustr, tmp);
|
||||||
j = (int) (tmp - aux);
|
j = (int) (tmp - aux);
|
||||||
j--; /* confusion: j was in Turbo Pascal convention */
|
|
||||||
} else {
|
} else {
|
||||||
j++;
|
j++;
|
||||||
if (t_p[k] > ' ')
|
if (t_p[k] > ' ')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue