Browse Source

Fix a bug in 'reset', where .subckt are not transformed

due to wrong line count in dynmaxline.
pre-master-46
Holger Vogt 2 years ago
parent
commit
054a65c2d5
  1. 5
      src/frontend/inp.c

5
src/frontend/inp.c

@ -72,6 +72,7 @@ static bool mc_reload = FALSE;
void eval_opt(struct card *deck);
extern bool ft_batchmode;
extern int dynmaxline;
/* from inpcom.c */
extern struct nscope* inp_add_levels(struct card *deck);
@ -550,6 +551,10 @@ inp_spsource(FILE *fp, bool comfile, char *filename, bool intfile)
expr_w_temper = TRUE;
mc_reload = FALSE;
fprintf(stdout, "Reset re-loads circuit %s\n", mc_deck->line);
dynmaxline = 0;
/* recover the number of lines in deck */
for (dd = deck; dd; dd = dd->nextcard)
dynmaxline++;
}
/* re-load input deck from the current circuit structure */
else if (ft_curckt && ft_curckt->ci_mcdeck) {

Loading…
Cancel
Save