From db5b6bc58c7d8307b8874b37793074f789eb626a Mon Sep 17 00:00:00 2001 From: dos-reis Date: Thu, 22 May 2008 01:08:03 +0000 Subject: * hyper/lex.c: Don't include hyper.h, hterror.h and sockio.h. Include node.h. * hyper/hyper.h: Don't include X11 headers. Include node.h. Mode node data structures to node.h. * hyper/cond.c: Don't include hterror.h. Include lex.h * hyper/Makefile.in (HEADERS): Include node.h. Remove hterror.h. (hypertex_SOURCES): Remove hterror.c (htadd_SOURCES): Likewise. * hyper/node.h: New. * hyper/hterror.h: Remove. * hyper/hterror.c (token_name): Move to hyper/lex.c. (print_token): Likewise. (print_next_ten_tokens): Likewise. (print_page_and_filename): Likewise. (jump): Likewise. (ebuffer): Likewise. (htperror): Move to parse-types.c Remove file. --- src/hyper/mem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/hyper/mem.c') diff --git a/src/hyper/mem.c b/src/hyper/mem.c index feed98df..554b7ff2 100644 --- a/src/hyper/mem.c +++ b/src/hyper/mem.c @@ -340,7 +340,7 @@ alloc_ifnode(void) { IfNode *tempif; - tempif = (IfNode *) halloc(sizeof(struct if_node), "IfNode"); + tempif = (IfNode *) halloc(sizeof(IfNode), "IfNode"); tempif->thennode = tempif->elsenode = tempif->cond = NULL; return tempif; } @@ -350,7 +350,7 @@ alloc_condnode(void) { CondNode *temp; - temp = (CondNode *) halloc(sizeof(struct cond_node), "Cond Node"); + temp = (CondNode *) halloc(sizeof(CondNode), "Cond Node"); temp->cond = temp->label = NULL; return temp; } -- cgit v1.2.3