getexpress(), simplify usage

This commit is contained in:
rlar
2018-02-17 19:15:54 +01:00
parent 830b5faf0e
commit 043a04b775
+1 -2
View File
@@ -1669,9 +1669,8 @@ nupa_subcktcall(dico_t *dico, char *s, char *x, char *inst_name)
} else if (t_p[k] == '{') {
char *aux = spice_dstring_value(&tstr);
const char *tmp = aux + j;
tmp = getexpress(NULL, &ustr, tmp) + 1;
tmp = getexpress(NULL, &ustr, tmp);
j = (int) (tmp - aux);
j--; /* confusion: j was in Turbo Pascal convention */
} else {
j++;
if (t_p[k] > ' ')