subckt.c, translate(), #7/8 cleanup

This commit is contained in:
rlar 2016-11-20 19:04:49 +01:00
parent 49947e0279
commit f19a6c6390
1 changed files with 4 additions and 5 deletions

View File

@ -945,6 +945,8 @@ translate(struct line *deck, char *formal, char *actual, char *scname, const cha
printf("\nIn translate, examining line (dev_type: %c, subname: %s, instance: %s) %s \n", dev_type, subname, scname, s);
#endif
switch (dev_type) {
case '.':
if (ciprefix(".ic", s) || ciprefix(".nodeset", s)) {
while ((paren_ptr = strchr(s, '(')) != NULL) {
name = paren_ptr + 1;
@ -961,17 +963,14 @@ translate(struct line *deck, char *formal, char *actual, char *scname, const cha
}
bxx_put_cstring(&buffer, s); /* rest of line */
tfree(c->li_line);
c->li_line = copy(bxx_buffer(&buffer));
break;
} else {
continue;
}
/* Rename the device. */
switch (dev_type) {
case '\0':
case '*':
case '$':
case '.':
continue;
#ifdef XSPICE