From 9ab153ddc21ab7d9c20db437b1a2e7515a140ea8 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 19 Nov 2017 14:27:09 +0100 Subject: [PATCH] Exclude from model search all lines beginning with a character contained in this list: *vibefghkt --- src/frontend/inpcom.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 036bcac5a..8af69879c 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -1979,7 +1979,8 @@ get_subckts_for_subckt(struct card *start_card, char *subckt_name, char *line = card->line; - if (*line == '*') + /* no models embedded in these lines */ + if (strchr("*vibefghkt", *line)) continue; 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; - if (*line == '*') + /* no models embedded in these lines */ + if (strchr("*vibefghkt", *line)) continue; /* there is no .subckt, .model or .param inside .control ... .endc */