allow '+' or '-' characters in device name

for current and voltage sources.
Maybe exrtended to all devices.
This commit is contained in:
Holger Vogt 2018-01-27 10:31:35 +01:00
parent 314ece2526
commit ff00ec3aed
7 changed files with 7 additions and 7 deletions

View File

@ -42,7 +42,7 @@ void INP2B(CKTcircuit *ckt, INPtables * tab, struct card *current)
ckt->CKTvarHertz = 1; ckt->CKTvarHertz = 1;
line = current->line; line = current->line;
INPgetTok(&line, &name, 1); INPgetNetTok(&line, &name, 1);
INPinsert(&name, tab); INPinsert(&name, tab);
INPgetNetTok(&line, &nname1, 1); INPgetNetTok(&line, &nname1, 1);

View File

@ -40,7 +40,7 @@ void INP2E(CKTcircuit *ckt, INPtables * tab, struct card *current)
return; return;
} }
line = current->line; line = current->line;
INPgetTok(&line, &name, 1); INPgetNetTok(&line, &name, 1);
INPinsert(&name, tab); INPinsert(&name, tab);
INPgetNetTok(&line, &nname1, 1); INPgetNetTok(&line, &nname1, 1);
INPtermInsert(ckt, &nname1, tab, &node1); INPtermInsert(ckt, &nname1, tab, &node1);

View File

@ -37,7 +37,7 @@ void INP2F(CKTcircuit *ckt, INPtables * tab, struct card *current)
return; return;
} }
line = current->line; line = current->line;
INPgetTok(&line, &name, 1); INPgetNetTok(&line, &name, 1);
INPinsert(&name, tab); INPinsert(&name, tab);
INPgetNetTok(&line, &nname1, 1); INPgetNetTok(&line, &nname1, 1);
INPtermInsert(ckt, &nname1, tab, &node1); INPtermInsert(ckt, &nname1, tab, &node1);

View File

@ -40,7 +40,7 @@ void INP2G(CKTcircuit *ckt, INPtables * tab, struct card *current)
return; return;
} }
line = current->line; line = current->line;
INPgetTok(&line, &name, 1); INPgetNetTok(&line, &name, 1);
INPinsert(&name, tab); INPinsert(&name, tab);
INPgetNetTok(&line, &nname1, 1); INPgetNetTok(&line, &nname1, 1);
INPtermInsert(ckt, &nname1, tab, &node1); INPtermInsert(ckt, &nname1, tab, &node1);

View File

@ -37,7 +37,7 @@ void INP2H(CKTcircuit *ckt, INPtables * tab, struct card *current)
return; return;
} }
line = current->line; line = current->line;
INPgetTok(&line, &name, 1); INPgetNetTok(&line, &name, 1);
INPinsert(&name, tab); INPinsert(&name, tab);
INPgetNetTok(&line, &nname1, 1); INPgetNetTok(&line, &nname1, 1);
INPtermInsert(ckt, &nname1, tab, &node1); INPtermInsert(ckt, &nname1, tab, &node1);

View File

@ -38,7 +38,7 @@ void INP2I(CKTcircuit *ckt, INPtables * tab, struct card *current)
} }
} }
line = current->line; line = current->line;
INPgetTok(&line, &name, 1); INPgetNetTok(&line, &name, 1);
INPinsert(&name, tab); INPinsert(&name, tab);
INPgetNetTok(&line, &nname1, 1); INPgetNetTok(&line, &nname1, 1);
INPtermInsert(ckt, &nname1, tab, &node1); INPtermInsert(ckt, &nname1, tab, &node1);

View File

@ -38,7 +38,7 @@ void INP2V(CKTcircuit *ckt, INPtables * tab, struct card *current)
} }
} }
line = current->line; line = current->line;
INPgetTok(&line, &name, 1); INPgetNetTok(&line, &name, 1);
INPinsert(&name, tab); INPinsert(&name, tab);
INPgetNetTok(&line, &nname1, 1); INPgetNetTok(&line, &nname1, 1);
INPtermInsert(ckt, &nname1, tab, &node1); INPtermInsert(ckt, &nname1, tab, &node1);