Browse Source

lexical #14/19, drop `delayed = 0' wherever its effect isn't visible

without effect, because we return or will overwrite it anyway
rlar 14 years ago
parent
commit
47b5e9576d
  1. 4
      src/frontend/parser/lexical.c

4
src/frontend/parser/lexical.c

@ -176,7 +176,6 @@ gotchar:
c = '\n'; c = '\n';
if ((c == cp_hash) && !cp_interactive && (j == 1)) { if ((c == cp_hash) && !cp_interactive && (j == 1)) {
if (delayed) append; if (delayed) append;
delayed = 0;
if (string) if (string)
return (NULL); return (NULL);
while (((c = input(cp_inp_cur)) != '\n') && (c != EOF)) while (((c = input(cp_inp_cur)) != '\n') && (c != EOF))
@ -204,7 +203,6 @@ gotchar:
newword; newword;
} }
if (delayed) append; if (delayed) append;
delayed = 0;
if (cw->wl_prev) { if (cw->wl_prev) {
cw->wl_prev->wl_next = NULL; cw->wl_prev->wl_next = NULL;
tfree(cw); tfree(cw);
@ -253,7 +251,6 @@ gotchar:
case '\004': case '\004':
case EOF: case EOF:
if (delayed) append; if (delayed) append;
delayed = 0;
if (cp_interactive && !cp_nocc && if (cp_interactive && !cp_nocc &&
(string == NULL)) { (string == NULL)) {
if (j == 0) { if (j == 0) {
@ -301,7 +298,6 @@ gotchar:
fputc(linebuf[j], cp_out); /* But you can't edit */ fputc(linebuf[j], cp_out); /* But you can't edit */
#endif #endif
if (delayed) append; if (delayed) append;
delayed = 0;
// cp_ccom doesn't mess wlist, read only access to wlist->wl_word // cp_ccom doesn't mess wlist, read only access to wlist->wl_word
cp_ccom(wlist, buf, TRUE); cp_ccom(wlist, buf, TRUE);
wl_free(wlist); wl_free(wlist);

Loading…
Cancel
Save