Remove dot lines somewhat later.

This commit is contained in:
Holger Vogt 2020-12-10 17:31:55 +01:00
parent 777cfcf477
commit 8b376b4581
1 changed files with 5 additions and 1 deletions

View File

@ -2310,7 +2310,7 @@ static void comment_out_unused_subckt_models(struct card *start_card)
char *line = card->line;
/* no models embedded in these lines */
if (strchr(".*vibefghkt", *line))
if (strchr("*vibefghkt", *line))
continue;
/* 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))
processing_subckt = FALSE;
/* no models embedded in these lines */
if (*line == '.')
continue;
if (!processing_subckt) {
if (*line == 'x') {
char *subckt_name = get_instance_subckt(line);