findsubckt(), cleanup

This commit is contained in:
rlar 2016-05-08 19:15:20 +02:00
parent a9c2f81878
commit c486218e33
1 changed files with 3 additions and 3 deletions

View File

@ -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)) {