diff options
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | src/ast.c | 4 | ||||
-rw-r--r-- | src/draw.c | 1 | ||||
-rw-r--r-- | src/lexer.l | 7 | ||||
-rw-r--r-- | src/main.c | 5 | ||||
-rw-r--r-- | src/parser.y | 3 | ||||
-rw-r--r-- | src/symbol-table.c | 3 |
7 files changed, 16 insertions, 9 deletions
diff --git a/Makefile.am b/Makefile.am index adb07ca..84eb618 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,7 +7,7 @@ EXTRA_DIST = autogen.sh Makefile.simple bin_PROGRAMS = parser noinst_LIBRARIES = libparser.a -AM_CPPFLAGS = -I$(top_srcdir)/src +AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_builddir)/src parser_CFLAGS = $(WARN_CFLAGS) parser_SOURCES = \ @@ -2,10 +2,12 @@ # include "config.h" #endif +#include "ast.h" + #include <stdarg.h> #include <stdio.h> #include <stdlib.h> -#include "ast.h" + extern int line_number; @@ -4,6 +4,7 @@ #endif #include "ast.h" + #include <assert.h> #include <stdbool.h> #include <stdlib.h> diff --git a/src/lexer.l b/src/lexer.l index 9d0b9ee..6ed99dc 100644 --- a/src/lexer.l +++ b/src/lexer.l @@ -1,11 +1,12 @@ %option noyywrap %{ +#include "ast.h" +#include "libparser_a-parser.h" +#include "symbol-table.h" + #include <assert.h> #include <stdlib.h> #include <string.h> -#include "ast.h" -#include "symbol-table.h" -#include "src/libparser_a-parser.h" #define SIZE_OF_ARR(x) (sizeof(x)/sizeof(x[0])) @@ -2,10 +2,11 @@ # include "config.h" #endif +#include "ast.h" +#include "libparser_a-parser.h" + #include <stdio.h> #include <stdlib.h> -#include "ast.h" -#include "src/libparser_a-parser.h" extern FILE *yyin; extern AST_NODE *prog; diff --git a/src/parser.y b/src/parser.y index c705907..2c126c0 100644 --- a/src/parser.y +++ b/src/parser.y @@ -3,10 +3,11 @@ # include "config.h" #endif +#include "ast.h" + #include <stdio.h> #include <stdlib.h> #include <string.h> -#include "ast.h" extern int yylex(void); static void yyerror(const char *mesg); diff --git a/src/symbol-table.c b/src/symbol-table.c index 2e18839..008172f 100644 --- a/src/symbol-table.c +++ b/src/symbol-table.c @@ -2,12 +2,13 @@ # include "config.h" #endif +#include "symbol-table.h" + #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <math.h> -#include "symbol-table.h" #define TABLE_SIZE 256 |