summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2015-10-19 02:40:12 +0800
committerTing-Wei Lan <lantw44@gmail.com>2015-10-19 02:40:12 +0800
commit274a987bc3d8f03cd9a04fa7da93c5e54fc2c10c (patch)
treed4c560d6966dd46cbc70ab1dbf915837a27e440d
parente9165b8926ba90e43392d80bf84a32658f9f5a44 (diff)
downloadcompiler2015-274a987bc3d8f03cd9a04fa7da93c5e54fc2c10c.tar
compiler2015-274a987bc3d8f03cd9a04fa7da93c5e54fc2c10c.tar.gz
compiler2015-274a987bc3d8f03cd9a04fa7da93c5e54fc2c10c.tar.bz2
compiler2015-274a987bc3d8f03cd9a04fa7da93c5e54fc2c10c.tar.lz
compiler2015-274a987bc3d8f03cd9a04fa7da93c5e54fc2c10c.tar.xz
compiler2015-274a987bc3d8f03cd9a04fa7da93c5e54fc2c10c.tar.zst
compiler2015-274a987bc3d8f03cd9a04fa7da93c5e54fc2c10c.zip
Rename header.h to symbol-table.h
-rw-r--r--Makefile.simple2
-rw-r--r--lexer.l2
-rw-r--r--symbol-table.c (renamed from symboltable.c)2
-rw-r--r--symbol-table.h (renamed from header.h)0
4 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.simple b/Makefile.simple
index e5051ed..2f45421 100644
--- a/Makefile.simple
+++ b/Makefile.simple
@@ -1,5 +1,5 @@
targets = scanner
-scanner_objects = lexer.o symboltable.o
+scanner_objects = lexer.o symbol-table.o
.PHONY: all clean
diff --git a/lexer.l b/lexer.l
index d7be3c8..81524b9 100644
--- a/lexer.l
+++ b/lexer.l
@@ -1,7 +1,7 @@
%option noyywrap
%{
#include <stdio.h>
-#include "header.h"
+#include "symbol-table.h"
int linenumber;
symtab * lookup();
symtab * ptr;
diff --git a/symboltable.c b/symbol-table.c
index 0006eb2..c9084a4 100644
--- a/symboltable.c
+++ b/symbol-table.c
@@ -3,7 +3,7 @@
#include<string.h>
#include<ctype.h>
#include<math.h>
-#include"header.h"
+#include"symbol-table.h"
#define TABLE_SIZE 256
diff --git a/header.h b/symbol-table.h
index fd9a8aa..fd9a8aa 100644
--- a/header.h
+++ b/symbol-table.h