Exclude from model search all lines beginning

with a character contained in this list: *vibefghkt
This commit is contained in:
Holger Vogt 2017-11-19 14:27:09 +01:00
parent 277842f948
commit 9ab153ddc2
1 changed files with 4 additions and 2 deletions

View File

@ -1979,7 +1979,8 @@ get_subckts_for_subckt(struct card *start_card, char *subckt_name,
char *line = card->line; char *line = card->line;
if (*line == '*') /* no models embedded in these lines */
if (strchr("*vibefghkt", *line))
continue; continue;
if ((ciprefix(".ends", line) || ciprefix(".eom", line)) && found_subckt) if ((ciprefix(".ends", line) || ciprefix(".eom", line)) && found_subckt)
@ -2053,7 +2054,8 @@ comment_out_unused_subckt_models(struct card *start_card)
char *line = card->line; char *line = card->line;
if (*line == '*') /* no models embedded in these lines */
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 */