aboutsummaryrefslogtreecommitdiff
path: root/tree.c
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-07-23 21:59:38 -0400
committerTucker Evans <tuckerevans24@gmail.com>2019-07-23 21:59:38 -0400
commit596bc33348e2daa5af8a0168f015e850aeccf0fc (patch)
tree498d02eb211e88a43d1e9ceff08d8e56ef94a5b4 /tree.c
parentd8ef3bcc3d410142e359771bbef0ce0bbdc78308 (diff)
Fix node_t is now node
Diffstat (limited to 'tree.c')
-rw-r--r--tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tree.c b/tree.c
index eff6285..0301ec3 100644
--- a/tree.c
+++ b/tree.c
@@ -3,10 +3,10 @@
#include <string.h>
#include <assert.h>
+#include "node.h"
#include "tree.h"
#include "y.tab.h"
-
-extern void yyerror(char*);
+#include "pc.h"
/* parse tree funcs */
ptree* mktree(type, l, r)
@@ -47,7 +47,7 @@ float n;
return p;
}
-ptree * mkop(type, sub, l, r)
+ptree* mkop(type, sub, l, r)
int type, sub;
ptree *l, *r;
{