defsubckt(), drop `ls_ptr'
This commit is contained in:
parent
10e9760f13
commit
a46e1113d0
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue