From 164d3dd20c6008d842bd4ae34d63d3ae22923e68 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Wed, 30 Dec 2020 23:13:35 +0100 Subject: [PATCH] Enable models with parens by using gettok_parens() like .model NP NPN(BF=125 Cje=.5p Cjc=.5p Rb=500) --- src/frontend/inpcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 3b164615f..c2bd447d9 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -7804,7 +7804,7 @@ static struct card *pspice_compat(struct card *oldcard) char* modname, *modtype; cut_line = nexttok(cut_line); /* skip .model */ modname = gettok(&cut_line); /* save model name */ - modtype = gettok(&cut_line); /* save model type */ + modtype = gettok_noparens(&cut_line); /* save model type */ if (cieq(modtype, "NMOS") || cieq(modtype, "PMOS")) { char* lv = strstr(cut_line, "level="); if (lv) {