findsubckt(), cleanup
This commit is contained in:
parent
a9c2f81878
commit
c486218e33
|
|
@ -556,15 +556,15 @@ findsubckt(dico_t *dico, const char * const s)
|
|||
|
||||
spice_dstring_init(&ustr);
|
||||
|
||||
while (((k_ptr - s) >= 0) && (s[(k_ptr - s)] <= ' '))
|
||||
while ((k_ptr >= s) && (*k_ptr <= ' '))
|
||||
k_ptr--;
|
||||
|
||||
j_ptr = k_ptr;
|
||||
|
||||
while (((k_ptr - s) >= 0) && (s[(k_ptr - s)] > ' '))
|
||||
while ((k_ptr >= s) && (*k_ptr > ' '))
|
||||
k_ptr--;
|
||||
|
||||
pscopy_up(&ustr, s, (int) (k_ptr - s) + 1, (int) (j_ptr - s) - (int) (k_ptr - s));
|
||||
pscopy_up(&ustr, s, (int) (k_ptr - s) + 1, (int) (j_ptr - k_ptr));
|
||||
entry = entrynb(dico, spice_dstring_value(&ustr));
|
||||
|
||||
if (entry && (entry->tp == NUPA_SUBCKT)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue