summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2018-08-06 01:03:06 +1200
committerDavid Phillips <david@sighup.nz>2018-08-06 01:03:06 +1200
commit5652b840200cada7686196cffc1c7c62b2b91ed9 (patch)
treeb0df69a486da1b508741721d584122eaa1c00569
parent71dc99170a8dbc126f762f42500567a438420a21 (diff)
downloadhence-5652b840200cada7686196cffc1c7c62b2b91ed9.tar.xz
Prefix header guards
-rw-r--r--common.h4
-rw-r--r--error.h5
-rw-r--r--gate.h4
-rw-r--r--logic.h4
-rw-r--r--parse.h5
5 files changed, 16 insertions, 6 deletions
diff --git a/common.h b/common.h
index 069bc81..2873009 100644
--- a/common.h
+++ b/common.h
@@ -1,5 +1,5 @@
-#ifndef COMMON_H
-#define COMMON_H
+#ifndef HENCE_COMMON_H
+#define HENCE_COMMON_H
#include <stdio.h>
#include <stddef.h>
diff --git a/error.h b/error.h
index e4f5351..7c75263 100644
--- a/error.h
+++ b/error.h
@@ -1,4 +1,9 @@
+#ifndef HENCE_ERROR_H
+#define HENCE_ERROR_H
+
#include <stdio.h>
#define emit_error(...) fprintf(stderr, "Error: " __VA_ARGS__)
#define emit_info(...) fprintf(stdout, "Info : " __VA_ARGS__)
+
+#endif
diff --git a/gate.h b/gate.h
index e0e4b61..8be32a6 100644
--- a/gate.h
+++ b/gate.h
@@ -1,5 +1,5 @@
-#ifndef GATE_H
-#define GATE_H
+#ifndef HENCE_GATE_H
+#define HENCE_GATE_H
#include <stddef.h>
diff --git a/logic.h b/logic.h
index 9d160d7..258be95 100644
--- a/logic.h
+++ b/logic.h
@@ -1,5 +1,5 @@
-#ifndef LOGIC_H
-#define LOGIC_H
+#ifndef HENCE_LOGIC_H
+#define HENCE_LOGIC_H
enum BINARY {
LOGIC_HIGH,
diff --git a/parse.h b/parse.h
index 95a1fa8..681233e 100644
--- a/parse.h
+++ b/parse.h
@@ -1,3 +1,8 @@
+#ifndef HENCE_PARSE_H
+#define HENCE_PARSE_H
+
#include <stdio.h>
int parse(const char*, FILE*, struct token *);
+
+#endif