Browse Source

lexical #10/19, split off `append' from `newword'

rlar 14 years ago
parent
commit
d61f3c10a0
  1. 7
      src/frontend/parser/lexical.c

7
src/frontend/parser/lexical.c

@ -74,7 +74,7 @@ static int numeofs = 0;
* have no business being in the string. * have no business being in the string.
*/ */
#define newword cw->wl_word = copy(buf); \
#define append \
{ wordlist *aux = wl_cons(NULL, NULL); \ { wordlist *aux = wl_cons(NULL, NULL); \
if (cw) /* which is true here */ \ if (cw) /* which is true here */ \
cw->wl_next = aux; \ cw->wl_next = aux; \
@ -82,7 +82,10 @@ static int numeofs = 0;
cw = aux; \ cw = aux; \
if (!wlist) /* which is false here */ \ if (!wlist) /* which is false here */ \
wlist = cw; \ wlist = cw; \
} \
}
#define newword cw->wl_word = copy(buf); \
append; \
bzero(buf, NEW_BSIZE_SP); \ bzero(buf, NEW_BSIZE_SP); \
i = 0; i = 0;

Loading…
Cancel
Save