diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2019-07-27 12:55:31 -0400 |
---|---|---|
committer | Tucker Evans <tuckerevans24@gmail.com> | 2019-07-27 12:55:31 -0400 |
commit | 0e835d9b8f97087810dddb9743aa84b6431ff3a7 (patch) | |
tree | db1b9e4b40cff6240fa15b903d539980ab977494 | |
parent | e0e828e2c2f2032d1c9616950d0208f2aab6fcb8 (diff) |
Rename hash.* -> scope.*
-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; |