inpcom.c, cleanup inp_readall() #6/7, tautology `call_depth == 0'
This commit is contained in:
parent
893e094faa
commit
11573327f4
|
|
@ -466,20 +466,18 @@ find_assignment(char *str)
|
||||||
struct line *
|
struct line *
|
||||||
inp_readall(FILE *fp, char *dir_name, bool comfile, bool intfile)
|
inp_readall(FILE *fp, char *dir_name, bool comfile, bool intfile)
|
||||||
{
|
{
|
||||||
int call_depth = 0;
|
|
||||||
struct line *cc;
|
struct line *cc;
|
||||||
|
|
||||||
num_libraries = 0;
|
num_libraries = 0;
|
||||||
inp_compat_mode = ngspice_compat_mode();
|
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;
|
cc = rv . cc;
|
||||||
|
|
||||||
/* The following processing of an input file is not required for command files
|
/* The following processing of an input file is not required for command files
|
||||||
like spinit or .spiceinit, so return command files here. */
|
like spinit or .spiceinit, so return command files here. */
|
||||||
|
|
||||||
|
if (!comfile && cc) {
|
||||||
if (call_depth == 0 && !comfile && cc) {
|
|
||||||
|
|
||||||
unsigned int no_braces; /* number of '{' */
|
unsigned int no_braces; /* number of '{' */
|
||||||
size_t max_line_length; /* max. line length in input deck */
|
size_t max_line_length; /* max. line length in input deck */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue