From 0e7b0f1f96a200304497d0b20c62229fdb647ff9 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 6535f2161..06a9b6eb3 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -496,6 +496,8 @@ inp_readall(FILE *fp, char *dir_name, bool comfile, bool intfile) struct line *cc; struct inp_read_t rv; + static int tpr = 0; + num_libraries = 0; inp_compat_mode = ngspice_compat_mode(); @@ -546,9 +548,9 @@ inp_readall(FILE *fp, char *dir_name, bool comfile, bool intfile) 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; @@ -623,6 +625,13 @@ inp_readall(FILE *fp, char *dir_name, bool comfile, bool intfile) (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; }