Browse Source

Exclude from model search all lines beginning

with a character contained in this list: *vibefghkt
pre-master-46
Holger Vogt 8 years ago
parent
commit
9ab153ddc2
  1. 6
      src/frontend/inpcom.c

6
src/frontend/inpcom.c

@ -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 */

Loading…
Cancel
Save