diff options
-rw-r--r-- | makefile | 8 | ||||
-rw-r--r-- | pc.y | 2 | ||||
-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
@@ -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 @@ -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" @@ -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; |