]> thyrsus.com Git - cupl.git/commitdiff
Moved the NULLNODE declaration.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 11 Nov 1994 12:46:48 +0000 (12:46 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 11 Nov 1994 12:46:48 +0000 (12:46 +0000)
cupl.h
cupl.y

diff --git a/cupl.h b/cupl.h
index e8b5d52edb9297fd2f3fb8c71210055d39bb4a43..54835d9b8acf7f24c04540bf9efe0f50a5f71f53 100644 (file)
--- 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 9aa551fe02441947e3eb01d3ec105ae86596bce8..4b2dde9357340118cecbe56228617bd4523a9a4e 100644 (file)
--- a/cupl.y
+++ b/cupl.y
@@ -24,8 +24,6 @@ author first.
 #include <string.h>
 #include <setjmp.h>
 
-#define        NULLNODE        (node *)NULL
-
 #ifdef PARSEDEBUG
 static int statement_count;
 #endif /* PARSEDEBUG */