Prevent overwriting of previous debug output when expanding auto-bridge deck.
This commit is contained in:
parent
8156745c97
commit
2f9403d143
|
|
@ -187,10 +187,15 @@ static struct card *expand_deck(struct card *head)
|
|||
struct card *card, *next;
|
||||
char **pointers;
|
||||
int i, dico;
|
||||
bool save_debug;
|
||||
|
||||
/* Save the current parameter symbol table. */
|
||||
/* Save the current parameter symbol table and debug global.
|
||||
* Prevent overwriting of debug output in inp_readall().
|
||||
*/
|
||||
|
||||
dico = nupa_add_dicoslist();
|
||||
save_debug = ft_ngdebug;
|
||||
ft_ngdebug = FALSE;
|
||||
|
||||
/* Count the cards, allocate and fill a pointer array. */
|
||||
|
||||
|
|
@ -213,6 +218,7 @@ static struct card *expand_deck(struct card *head)
|
|||
circarray = pointers;
|
||||
card = inp_readall(NULL, Infile_Path, FALSE, TRUE, NULL);
|
||||
card = inp_subcktexpand(card);
|
||||
ft_ngdebug = save_debug;
|
||||
|
||||
/* Destroy the parameter table that was created in subcircuit/parameter
|
||||
* expansion and restore the previous version.
|
||||
|
|
|
|||
Loading…
Reference in New Issue