From 795083a0b26bd0ae870cfc8fc4019ef110d6875e Mon Sep 17 00:00:00 2001 From: h_vogt Date: Mon, 6 Jun 2016 22:47:56 +0200 Subject: [PATCH] inpcom.c: remove white spaces in command files debug output of command files --- src/frontend/inpcom.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 9c0a1a18b..055e51924 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -528,6 +528,8 @@ inp_readall(FILE *fp, char *dir_name, bool comfile, bool intfile, bool *expr_w_t struct line *cc; struct inp_read_t rv; + static int tpr = 0; + num_libraries = 0; inp_compat_mode = ngspice_compat_mode(); @@ -578,9 +580,9 @@ inp_readall(FILE *fp, char *dir_name, bool comfile, bool intfile, bool *expr_w_t inp_fix_param_values(working); inp_reorder_params(subckt_w_params, cc); -// tprint(working, 1); +// tprint(working, tpr++); inp_fix_inst_calls_for_numparam(subckt_w_params, working); -// tprint(working, 2); +// tprint(working, tpr++); delete_names(subckt_w_params); subckt_w_params = NULL; @@ -658,6 +660,13 @@ inp_readall(FILE *fp, char *dir_name, bool comfile, bool intfile, bool *expr_w_t (int) max_line_length, no_braces, dynmaxline); } } + /* remove white spaces in command files */ + else if (comfile && cc) { + struct line *working = cc->li_next; + inp_remove_excess_ws(working); + if (ft_ngdebug) + tprint(working, tpr++); + } return cc; }