defsubckt(), drop `ls_ptr'

This commit is contained in:
rlar 2017-11-18 17:15:19 +01:00
parent 10e9760f13
commit a46e1113d0
1 changed files with 4 additions and 5 deletions

View File

@ -512,22 +512,21 @@ defsubckt(dico_t *dico, struct card *card, nupa_type categ)
bool err;
const char * const ls_ptr = s + strlen(s);
const char *i_ptr, *j_ptr;
i_ptr = s;
while ((i_ptr < ls_ptr) && (*i_ptr != '.'))
while (*i_ptr && (*i_ptr != '.'))
i_ptr++; /* skip 1st dotword */
while ((i_ptr < ls_ptr) && (*i_ptr > ' '))
while (*i_ptr && (*i_ptr > ' '))
i_ptr++;
while ((i_ptr < ls_ptr) && (*i_ptr <= ' '))
while (*i_ptr && (*i_ptr <= ' '))
i_ptr++; /* skip blank */
j_ptr = i_ptr;
while ((j_ptr < ls_ptr) && (*j_ptr > ' '))
while (*j_ptr && (*j_ptr > ' '))
j_ptr++;
if (j_ptr > i_ptr) {