subckt.c, #5/5 local scope for orig_modnames
This commit is contained in:
parent
c01fa9153f
commit
20d651f00c
|
|
@ -397,7 +397,6 @@ doit(struct line *deck, wordlist *modnames) {
|
||||||
|
|
||||||
/* Save all the old stuff... */
|
/* Save all the old stuff... */
|
||||||
struct subs *subs = NULL;
|
struct subs *subs = NULL;
|
||||||
wordlist *orig_modnames;
|
|
||||||
wordlist *xmodnames = modnames;
|
wordlist *xmodnames = modnames;
|
||||||
|
|
||||||
#ifdef TRACE
|
#ifdef TRACE
|
||||||
|
|
@ -607,11 +606,16 @@ doit(struct line *deck, wordlist *modnames) {
|
||||||
lcc = inp_deckcopy(sss->su_def);
|
lcc = inp_deckcopy(sss->su_def);
|
||||||
|
|
||||||
/* Change the names of .models found in .subckts . . . */
|
/* Change the names of .models found in .subckts . . . */
|
||||||
/* this translates the model name in the .model line */
|
{
|
||||||
orig_modnames = modtranslate(lcc, scname, &modnames);
|
/* this translates the model names in .model lines
|
||||||
if (orig_modnames)
|
* and appends them to `modnames'
|
||||||
devmodtranslate(lcc, scname, orig_modnames); /* This translates the model name on all components in the deck */
|
*/
|
||||||
wl_free(orig_modnames);
|
wordlist *orig_modnames = modtranslate(lcc, scname, &modnames);
|
||||||
|
/* This translates the model name on all components in the deck */
|
||||||
|
if (orig_modnames)
|
||||||
|
devmodtranslate(lcc, scname, orig_modnames);
|
||||||
|
wl_free(orig_modnames);
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
char *s = sss->su_args;
|
char *s = sss->su_args;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue