Browse Source

Enable models with parens by using gettok_parens() like

.model NP NPN(BF=125 Cje=.5p Cjc=.5p Rb=500)
pre-master-46
Holger Vogt 5 years ago
parent
commit
164d3dd20c
  1. 2
      src/frontend/inpcom.c

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

Loading…
Cancel
Save