Remove dot lines somewhat later.
This commit is contained in:
parent
1449b59352
commit
4a8f422e4c
|
|
@ -2310,7 +2310,7 @@ static void comment_out_unused_subckt_models(struct card *start_card)
|
||||||
char *line = card->line;
|
char *line = card->line;
|
||||||
|
|
||||||
/* no models embedded in these lines */
|
/* no models embedded in these lines */
|
||||||
if (strchr(".*vibefghkt", *line))
|
if (strchr("*vibefghkt", *line))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* there is no .subckt, .model or .param inside .control ... .endc */
|
/* there is no .subckt, .model or .param inside .control ... .endc */
|
||||||
|
|
@ -2331,6 +2331,10 @@ static void comment_out_unused_subckt_models(struct card *start_card)
|
||||||
if (ciprefix(".ends", line) || ciprefix(".eom", line))
|
if (ciprefix(".ends", line) || ciprefix(".eom", line))
|
||||||
processing_subckt = FALSE;
|
processing_subckt = FALSE;
|
||||||
|
|
||||||
|
/* no models embedded in these lines */
|
||||||
|
if (*line == '.')
|
||||||
|
continue;
|
||||||
|
|
||||||
if (!processing_subckt) {
|
if (!processing_subckt) {
|
||||||
if (*line == 'x') {
|
if (*line == 'x') {
|
||||||
char *subckt_name = get_instance_subckt(line);
|
char *subckt_name = get_instance_subckt(line);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue