aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorc+12023-10-29 17:22:21 -0400
committerc+12023-10-29 17:22:21 -0400
commit9805db320de71e6cb9943fb8d19f69be7a2c4807 (patch)
tree78b1364b948f3abd42a5ee90395852814bce2a1d /src/include
parent788b8af6769f58f41e047ec2fdccb1a6fba35c4f (diff)
fixed #include recursion
Diffstat (limited to 'src/include')
-rw-r--r--src/include/pp.h3
-rw-r--r--src/include/source.h4
-rw-r--r--src/include/tree.h2
-rw-r--r--src/include/util.h3
4 files changed, 3 insertions, 9 deletions
diff --git a/src/include/pp.h b/src/include/pp.h
index d82907c..4ab4f94 100644
--- a/src/include/pp.h
+++ b/src/include/pp.h
@@ -1,9 +1,6 @@
#ifndef PP_H
#define PP_H
-#include <stdlib.h>
-#include <string.h>
-
#include "util.h"
#include "syntax.h"
diff --git a/src/include/source.h b/src/include/source.h
index ff9f150..1fe9c41 100644
--- a/src/include/source.h
+++ b/src/include/source.h
@@ -1,9 +1,7 @@
#ifndef SOURCE_H
#define SOURCE_H
-#include <stdlib.h>
-#include <string.h>
-#include <stdio.h>
+#include "util.h"
char* source_get(char* arg);
char* source_get_from_stdin();
diff --git a/src/include/tree.h b/src/include/tree.h
index d19f1f7..d529bff 100644
--- a/src/include/tree.h
+++ b/src/include/tree.h
@@ -1,7 +1,7 @@
#ifndef TREE_H
#define TREE_H
-#include <stdlib.h>
+#include "util.h"
typedef struct TREE {
enum TREE_TYPE {
diff --git a/src/include/util.h b/src/include/util.h
index cfc85c2..854d18d 100644
--- a/src/include/util.h
+++ b/src/include/util.h
@@ -1,12 +1,11 @@
#ifndef UTIL_H
#define UTIL_H
+#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
-#include <stdlib.h>
#include <stdio.h>
-
/* log some debug information */
void log_dbg(const char*, ...);
/* log some information */