From f36772419ad5ad0cfa006d5ac85f99c13a194b54 Mon Sep 17 00:00:00 2001 From: rlar Date: Tue, 31 Jul 2012 20:42:57 +0200 Subject: [PATCH] Revert "cleanup, use wl_cons()" This reverts parts of commit 7a7250cdbdbd9f151d15fbe2142bde3a2dd81ca0. There is a cleaner way to rewrite lexical.c --- src/frontend/parser/lexical.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontend/parser/lexical.c b/src/frontend/parser/lexical.c index 44a4cf0b7..4b4159a74 100644 --- a/src/frontend/parser/lexical.c +++ b/src/frontend/parser/lexical.c @@ -75,8 +75,10 @@ static int numeofs = 0; */ #define newword cw->wl_word = copy(buf); \ - wl_append(cw, wl_cons(NULL, NULL)); \ + cw->wl_next = alloc(struct wordlist); \ + cw->wl_next->wl_prev = cw; \ cw = cw->wl_next; \ + cw->wl_next = NULL; \ bzero(buf, NEW_BSIZE_SP); \ i = 0;