allow '+' or '-' characters in device name
for current and voltage sources. Maybe exrtended to all devices.
This commit is contained in:
parent
314ece2526
commit
ff00ec3aed
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue