enable node names with special characters like '/'

This commit is contained in:
Holger Vogt 2020-06-05 13:23:23 +02:00
parent 797f08893a
commit e2f98b71ed
1 changed files with 3 additions and 3 deletions

View File

@ -54,13 +54,13 @@ int num, i;
/* first pass to determine the dimension */
while (*line != '\0') {
INPgetTok(&line, &tempname,1);
INPgetNetTok(&line, &tempname,1);
if ((strcmp(tempname, "length") == 0) || (strcmp(tempname, "len") == 0)) break;
num ++;
}
num = (num - 2) / 2;
line = current->line;
INPgetTok(&line,&name,1);
INPgetNetTok(&line,&name,1);
nname1 = TMALLOC(char *, num);
nname2 = TMALLOC(char *, num);
@ -77,7 +77,7 @@ int num, i;
INPgetNetTok(&line,&(nname2[i]),1);
INPtermInsert(ckt,&(nname2[i]),tab,&(node2[i]));
}
INPgetTok(&line,&ground,1);
INPgetNetTok(&line,&ground,1);
INPtermInsert(ckt,&ground,tab,&groundnode);
INPgetNetTok(&line, &model, 1);