mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-09-08 06:07:32 +02:00
Skip name and node if searching for 'tc' in an
R, L, or C line. Thus a node name 'tc' would be allowed.
This commit is contained in:
@@ -7243,7 +7243,11 @@ pspice_compat(struct card *oldcard)
|
||||
}
|
||||
|
||||
if (*cut_line == 'r' || *cut_line == 'l' || *cut_line == 'c') {
|
||||
char *tctok = search_plain_identifier(cut_line, "tc");
|
||||
/* Skip name and two nodes */
|
||||
char *ntok = nexttok(cut_line);
|
||||
ntok = nexttok(ntok);
|
||||
ntok = nexttok(ntok);
|
||||
char *tctok = search_plain_identifier(ntok, "tc");
|
||||
if (tctok) {
|
||||
char *tctok1 = strchr(tctok,'=');
|
||||
if (tctok1)
|
||||
|
||||
Reference in New Issue
Block a user