Browse Source

skip-ws, #1/6, prepare for rewrite, obj-invariant

pre-master-46
rlar 10 years ago
parent
commit
1ad65120d5
  1. 3
      src/frontend/com_let.c
  2. 3
      src/frontend/help/textdisp.c
  3. 12
      src/frontend/inp.c
  4. 6
      src/frontend/nutinp.c
  5. 3
      src/frontend/subckt.c
  6. 3
      src/frontend/vectors.c

3
src/frontend/com_let.c

@ -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++)
;
}
}

3
src/frontend/help/textdisp.c

@ -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 '?':

12
src/frontend/inp.c

@ -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;

6
src/frontend/nutinp.c

@ -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';

3
src/frontend/subckt.c

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

3
src/frontend/vectors.c

@ -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…
Cancel
Save