findsubname(), duplicate function epilogue and return early
This commit is contained in:
parent
4986df1baf
commit
f0cead24b8
|
|
@ -204,6 +204,11 @@ findsubname(dico_t *dico, SPICE_DSTRINGPTR dstr_p)
|
||||||
}
|
}
|
||||||
entry = entrynb(dico, spice_dstring_value(&name));
|
entry = entrynb(dico, spice_dstring_value(&name));
|
||||||
found = entry && (entry->tp == NUPA_SUBCKT);
|
found = entry && (entry->tp == NUPA_SUBCKT);
|
||||||
|
if (found) {
|
||||||
|
if (found && (h < ls))
|
||||||
|
pscopy(dstr_p, s, 0, h);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue