doit, return allows shortcuting else if
This commit is contained in:
parent
a69ddd9ad0
commit
90dc1da4d2
|
|
@ -432,7 +432,9 @@ doit(struct line *deck) {
|
||||||
fprintf(cp_err, "Error: misplaced %s line: %s\n", sbend,
|
fprintf(cp_err, "Error: misplaced %s line: %s\n", sbend,
|
||||||
last->li_line);
|
last->li_line);
|
||||||
return (NULL);
|
return (NULL);
|
||||||
} else if (ciprefix(start, last->li_line)) { /* if line == .subckt */
|
}
|
||||||
|
|
||||||
|
if (ciprefix(start, last->li_line)) { /* if line == .subckt */
|
||||||
if (last->li_next == NULL) { /* first check that next line is non null */
|
if (last->li_next == NULL) { /* first check that next line is non null */
|
||||||
fprintf(cp_err, "Error: no %s line.\n", sbend);
|
fprintf(cp_err, "Error: no %s line.\n", sbend);
|
||||||
return (NULL);
|
return (NULL);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue