Enable models with parens by using gettok_parens() like

.model NP NPN(BF=125 Cje=.5p Cjc=.5p Rb=500)
This commit is contained in:
Holger Vogt 2020-12-30 23:13:35 +01:00
parent b48e5bd77f
commit 164d3dd20c
1 changed files with 1 additions and 1 deletions

View File

@ -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) {