aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Fürmetz <fuermetz@mailbox.org>2017-11-21 14:04:11 +0100
committerLukas Fürmetz <fuermetz@mailbox.org>2017-11-21 21:38:32 +0100
commit53415af332e5e30e4910b05ebdb88d478a387eba (patch)
treefd4c7e4c6b1456b865d131a8a05b74152b4ed8f0
parent40a8656c8749f3f2fc213f8358fd0deda0154ea5 (diff)
Add include guards to header files
-rw-r--r--elisp.h5
-rw-r--r--utf8.h5
-rw-r--r--vterm-module.h5
3 files changed, 15 insertions, 0 deletions
diff --git a/elisp.h b/elisp.h
index 026db90..88edd00 100644
--- a/elisp.h
+++ b/elisp.h
@@ -1,3 +1,6 @@
+#ifndef ELISP_H
+#define ELISP_H
+
#include "vterm.h"
#include <emacs-module.h>
@@ -42,3 +45,5 @@ void erase_buffer(emacs_env *env);
void insert(emacs_env *env, emacs_value string);
void goto_char(emacs_env *env, int pos);
void toggle_cursor(emacs_env *env, bool visible);
+
+#endif /* ELISP_H */
diff --git a/utf8.h b/utf8.h
index 4acf955..8ec5f3e 100644
--- a/utf8.h
+++ b/utf8.h
@@ -1,3 +1,6 @@
+#ifndef UTF8_H
+#define UTF8_H
+
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
@@ -5,3 +8,5 @@
size_t codepoint_to_utf8(const uint32_t codepoint, unsigned char buffer[4]);
bool utf8_to_codepoint(const unsigned char buffer[4], const size_t len,
uint32_t *codepoint);
+
+#endif /* UTF8_H */
diff --git a/vterm-module.h b/vterm-module.h
index 02f32af..25ea860 100644
--- a/vterm-module.h
+++ b/vterm-module.h
@@ -1,3 +1,6 @@
+#ifndef VTERM_MODULE_H
+#define VTERM_MODULE_H
+
#include <emacs-module.h>
#include <inttypes.h>
#include <stdbool.h>
@@ -36,3 +39,5 @@ static emacs_value Fvterm_set_size(emacs_env *env, ptrdiff_t nargs,
static void *event_loop(void *arg);
int emacs_module_init(struct emacs_runtime *ert);
+
+#endif /* VTERM_MODULE_H */