getexpress(), simplify usage

This commit is contained in:
rlar 2016-05-22 21:03:24 +02:00
parent 830b5faf0e
commit 043a04b775
1 changed files with 1 additions and 2 deletions

View File

@ -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] > ' ')