aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--makefile8
-rw-r--r--pc.y2
-rw-r--r--scope.c (renamed from hash.c)4
-rw-r--r--scope.h (renamed from hash.h)0
4 files changed, 8 insertions, 6 deletions
diff --git a/makefile b/makefile
index 9a2f51a..8dd5899 100644
--- a/makefile
+++ b/makefile
@@ -3,8 +3,8 @@ FLAGS = -g
YACC = yacc
LEX = lex
-mypc: y.tab.o lex.yy.o tree.o hash.o node.o pc.o
- $(CC) $(FLAGS) -o mypc main.o tree.o hash.o node.o y.tab.o lex.yy.o -lfl -ly
+mypc: y.tab.o lex.yy.o tree.o scope.o node.o pc.o
+ $(CC) $(FLAGS) -o mypc main.o tree.o scope.o node.o y.tab.o lex.yy.o -lfl -ly
pc.o: main.c pc.h
$(CC) $(FLAGS) -c main.c
@@ -12,8 +12,8 @@ pc.o: main.c pc.h
tree.o: tree.c tree.h
$(CC) $(FLAGS) -c tree.c
-hash.o: hash.c hash.h
- $(CC) $(FLAGS) -c hash.c
+scope.o: scope.c scope.h
+ $(CC) $(FLAGS) -c scope.c
node.o: node.c node.h
$(CC) $(FLAGS) -c node.c
diff --git a/pc.y b/pc.y
index 495f64a..e8f2baa 100644
--- a/pc.y
+++ b/pc.y
@@ -2,6 +2,8 @@
#include <stdlib.h>
#include <stddef.h>
+#include "node.h"
+#include "scope.h"
#include "tree.h"
#include "y.tab.h"
#include "pc.h"
diff --git a/hash.c b/scope.c
index 21ddb1a..32167fc 100644
--- a/hash.c
+++ b/scope.c
@@ -1,10 +1,10 @@
#include <stdio.h>
-#include <stdilb.h>
+#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include "node.h"
-#include "hash.h"
+#include "scope.h"
scope* mkscope(prev)
scope* prev;
diff --git a/hash.h b/scope.h
index 8a8cdb1..8a8cdb1 100644
--- a/hash.h
+++ b/scope.h