Added handling of control blocks (.CONTROL ... .ENDC) in ngspice-

format files to the SPICE parser, so that netgen can be run
directly on a testbench file and not generate errors due to
statements in the control block.
This commit is contained in:
Tim Edwards 2021-02-09 09:30:27 -05:00
parent e75f5661e2
commit 19471275df
1 changed files with 11 additions and 0 deletions

View File

@ -865,6 +865,17 @@ skip_ends:
}
}
/* Ignore anything in a .CONTROL ... .ENDC block */
else if (matchnocase(nexttok, ".CONTROL")) {
while (1) {
SpiceSkipNewLine();
SkipTok(NULL);
if (EndParseFile()) break;
if (matchnocase(nexttok, ".ENDC"))
break;
}
}
// Blackbox (library) mode---parse only subcircuits and models;
// ignore all components.