enable special characters for cpl model names and parameters

This commit is contained in:
Vogt 2020-07-02 16:34:19 +02:00 committed by Holger Vogt
parent ba1945d685
commit 3fe4de5b7f
1 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ int num, i;
INPgetNetTok(&line,&(nname1[i]),1); INPgetNetTok(&line,&(nname1[i]),1);
INPtermInsert(ckt,&(nname1[i]),tab,&(node1[i])); INPtermInsert(ckt,&(nname1[i]),tab,&(node1[i]));
} }
INPgetTok(&line,&ground,1); INPgetNetTok(&line,&ground,1);
INPtermInsert(ckt,&ground,tab,&groundnode); INPtermInsert(ckt,&ground,tab,&groundnode);
for (i = 0; i < num; i++) { for (i = 0; i < num; i++) {
INPgetNetTok(&line,&(nname2[i]),1); INPgetNetTok(&line,&(nname2[i]),1);
@ -101,7 +101,7 @@ int num, i;
mdfast = tab->defPmod; mdfast = tab->defPmod;
} }
IFC(newInstance,(ckt,mdfast,&fast,name)); IFC(newInstance,(ckt,mdfast,&fast,name));
INPgetTok(&line,&model,1); INPgetNetTok(&line,&model,1);
if ((strcmp(model, "length") == 0) || (strcmp(model, "len") == 0)) { if ((strcmp(model, "length") == 0) || (strcmp(model, "len") == 0)) {
lenval = INPevaluate(&line,&error1,1); lenval = INPevaluate(&line,&error1,1);
lenvalgiven = 1; lenvalgiven = 1;