From: Eric S. Raymond Date: Fri, 11 Nov 1994 12:46:48 +0000 (+0000) Subject: Moved the NULLNODE declaration. X-Git-Tag: 1-2~45 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=9b0c69cd928b45fc84486a11af92c2456a7e07f0;p=cupl.git Moved the NULLNODE declaration. --- 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 */