diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index c73f5ba62..b1e10afb6 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -466,20 +466,18 @@ find_assignment(char *str) struct line * inp_readall(FILE *fp, char *dir_name, bool comfile, bool intfile) { - int call_depth = 0; struct line *cc; num_libraries = 0; inp_compat_mode = ngspice_compat_mode(); - struct inp_read_t rv = inp_read(fp, call_depth, dir_name, comfile, intfile); + struct inp_read_t rv = inp_read(fp, 0, dir_name, comfile, intfile); cc = rv . cc; /* The following processing of an input file is not required for command files like spinit or .spiceinit, so return command files here. */ - - if (call_depth == 0 && !comfile && cc) { + if (!comfile && cc) { unsigned int no_braces; /* number of '{' */ size_t max_line_length; /* max. line length in input deck */