doit, drop local `i'

This commit is contained in:
rlar 2012-03-08 17:56:29 +01:00
parent 107827af14
commit c866517dfb
1 changed files with 9 additions and 9 deletions

View File

@ -483,19 +483,19 @@ doit(struct line *deck) {
{ {
char *s = last->li_line; char *s = last->li_line;
int i;
txfree(gettok(&s)); txfree(gettok(&s));
sss->su_name = gettok(&s); sss->su_name = gettok(&s);
sss->su_args = copy(s); sss->su_args = copy(s);
/* count the number of args in the .subckt line */ /* count the number of args in the .subckt line */
for (sss->su_numargs = 0, i = 0; s[i]; ) { sss->su_numargs = 0;
while (isspace(s[i])) for (;;) {
i++; while (isspace(*s))
if (s[i]) { s++;
sss->su_numargs++; if (*s == '\0')
while (s[i] && !isspace(s[i])) break;
i++; while (*s && !isspace(*s))
} s++;
sss->su_numargs ++;
} }
} }