From 9b0c69cd928b45fc84486a11af92c2456a7e07f0 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 11 Nov 1994 12:46:48 +0000 Subject: [PATCH] Moved the NULLNODE declaration. --- cupl.h | 3 +++ cupl.y | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cupl.h b/cupl.h index e8b5d52..54835d9 100644 --- a/cupl.h +++ b/cupl.h @@ -63,6 +63,8 @@ typedef struct edon } node; +#define NULLNODE (node *)NULL + #define for_cdr(x, t) for (x = (t); x; x = x->u.n.right) /* this structure represents a CUPL value */ @@ -104,6 +106,7 @@ extern lvar *idlist; #define NOMEM "out of memory\n" /* miscellaneous */ +extern node *cons(int, node *, node *); extern char *tokdump(int value); extern void yyerror(const char *errmsg); extern void interpret(node *tree); diff --git a/cupl.y b/cupl.y index 9aa551f..4b2dde9 100644 --- a/cupl.y +++ b/cupl.y @@ -24,8 +24,6 @@ author first. #include #include -#define NULLNODE (node *)NULL - #ifdef PARSEDEBUG static int statement_count; #endif /* PARSEDEBUG */ -- 2.43.0