skip-ws, #1/6, prepare for rewrite, obj-invariant
This commit is contained in:
parent
deeb06b063
commit
1ad65120d5
|
|
@ -111,7 +111,8 @@ com_let(wordlist *wl)
|
|||
vec_free(t);
|
||||
free_pnode(names); /* frees also t, if pnode `names' is simple value */
|
||||
|
||||
for (s = q; *s && isspace_c(*s); s++)
|
||||
s = q;
|
||||
for (; *s && isspace_c(*s); s++)
|
||||
;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -72,7 +72,8 @@ hlp_thandle(topic **parent)
|
|||
return (NULL);
|
||||
}
|
||||
|
||||
for (s = buf; *s && isspace_c(*s); s++)
|
||||
s = buf;
|
||||
for (; *s && isspace_c(*s); s++)
|
||||
;
|
||||
switch (*s) {
|
||||
case '?':
|
||||
|
|
|
|||
|
|
@ -420,9 +420,11 @@ inp_spsource(FILE *fp, bool comfile, char *filename, bool intfile)
|
|||
|
||||
/* Put the first token from line into s */
|
||||
strncpy(name, dd->li_line, BSIZE_SP);
|
||||
for (s = name; *s && isspace_c(*s); s++)
|
||||
s = name;
|
||||
for (; *s && isspace_c(*s); s++)
|
||||
;
|
||||
for (t = s; *t && !isspace_c(*t); t++)
|
||||
t = s;
|
||||
for (; *t && !isspace_c(*t); t++)
|
||||
;
|
||||
*t = '\0';
|
||||
|
||||
|
|
@ -807,7 +809,8 @@ inp_dodeck(
|
|||
if (!noparse) {
|
||||
struct line *opt_beg = options;
|
||||
for (; options; options = options->li_next) {
|
||||
for (s = options->li_line; *s && !isspace_c(*s); s++)
|
||||
s = options->li_line;
|
||||
for (; *s && !isspace_c(*s); s++)
|
||||
;
|
||||
|
||||
ii = cp_interactive;
|
||||
|
|
@ -988,7 +991,8 @@ inp_dodeck(
|
|||
if (!noparse) {
|
||||
/*
|
||||
* for (; options; options = options->li_next) {
|
||||
* for (s = options->li_line; *s && !isspace_c(*s); s++)
|
||||
* s = options->li_line;
|
||||
* for (; *s && !isspace_c(*s); s++)
|
||||
* ;
|
||||
* ii = cp_interactive;
|
||||
* cp_interactive = FALSE;
|
||||
|
|
|
|||
|
|
@ -93,9 +93,11 @@ inp_nutsource(FILE *fp, bool comfile, char *filename)
|
|||
continue;
|
||||
}
|
||||
(void) strncpy(name, dd->li_line, BSIZE_SP);
|
||||
for (s = name; *s && isspace_c(*s); s++)
|
||||
s = name;
|
||||
for (; *s && isspace_c(*s); s++)
|
||||
;
|
||||
for (t = s; *t && !isspace_c(*t); t++)
|
||||
t = s;
|
||||
for (; *t && !isspace_c(*t); t++)
|
||||
;
|
||||
*t = '\0';
|
||||
|
||||
|
|
|
|||
|
|
@ -1314,7 +1314,8 @@ finishLine(struct bxx_buffer *t, char *src, char *scname)
|
|||
bxx_putc(t, *src++);
|
||||
continue;
|
||||
}
|
||||
for (s = src + 1; *s && isspace_c(*s); s++)
|
||||
s = src + 1;
|
||||
for (; *s && isspace_c(*s); s++)
|
||||
;
|
||||
if (!*s || (*s != '(')) {
|
||||
lastwasalpha = isalpha_c(*src);
|
||||
|
|
|
|||
|
|
@ -937,7 +937,8 @@ vec_basename(struct dvec *v)
|
|||
}
|
||||
|
||||
strtolower(buf);
|
||||
for (t = buf; isspace_c(*t); t++)
|
||||
t = buf;
|
||||
for (; isspace_c(*t); t++)
|
||||
;
|
||||
s = t;
|
||||
for (t = s; *t; t++)
|
||||
|
|
|
|||
Loading…
Reference in New Issue