Browse Source

nupa_subcktcall(), move code down to a better place

pre-master-46
rlar 8 years ago
parent
commit
fa1c710f68
  1. 13
      src/frontend/numparam/xpressn.c

13
src/frontend/numparam/xpressn.c

@ -1508,13 +1508,6 @@ nupa_subcktcall(dico_t *dico, char *s, char *x, char *inst_name)
spice_dstring_init(&vstr);
spice_dstring_init(&idlist);
/*
skip over instance name -- fixes bug where instance 'x1' is
same name as subckt 'x1'
*/
while (*x && *x != ' ')
x++;
/***** first, analyze the subckt definition line */
n = 0; /* number of parameters if any */
ls = (int) strlen(s);
@ -1585,6 +1578,12 @@ nupa_subcktcall(dico_t *dico, char *s, char *x, char *inst_name)
/***** next, analyze the circuit call line */
if (!err) {
/*
skip over instance name -- fixes bug where instance 'x1' is
same name as subckt 'x1'
*/
while (*x && *x != ' ')
x++;
scopy_up(&tstr, x);
j = 0;

Loading…
Cancel
Save