inpcom.c, cleanup inp_readall() #2/7, move inp_read() prolog to inp_readall()

This commit is contained in:
rlar 2013-06-02 17:15:51 +02:00
parent d598630b72
commit ab607102e6
1 changed files with 3 additions and 5 deletions

View File

@ -464,6 +464,9 @@ 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();
cc = inp_read(fp, call_depth, dir_name, comfile, intfile);
return cc;
@ -493,11 +496,6 @@ inp_read(FILE *fp, int call_depth, char *dir_name, bool comfile, bool intfile)
bool found_end = FALSE, shell_eol_continuation = FALSE;
if (call_depth == 0) {
num_libraries = 0;
inp_compat_mode = ngspice_compat_mode();
}
/* First read in all lines & put them in the struct cc */
for (;;) {
/* derive lines from circarray */