aboutsummaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-09 21:21:30 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-09 21:21:30 +0200
commit78e0601e4ee68177ef597e75d08da786b0cabd3d (patch)
tree51243a7e083e7d17d825ca50c448327d9cbf547b /util.h
parent98646851ade5386e3f72bfda4d94db20b65fde78 (diff)
downloadvis-78e0601e4ee68177ef597e75d08da786b0cabd3d.tar.gz
vis-78e0601e4ee68177ef597e75d08da786b0cabd3d.tar.xz
Rename vis.[ch] to editor.[ch] and main.c to vis.c
Diffstat (limited to 'util.h')
-rw-r--r--util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/util.h b/util.h
index 2992bea..b2446a7 100644
--- a/util.h
+++ b/util.h
@@ -1,3 +1,6 @@
+#ifndef UTIL_H
+#define UTIL_H
+
#define LENGTH(x) ((int)(sizeof (x) / sizeof *(x)))
#define MIN(a, b) ((a) > (b) ? (b) : (a))
#define MAX(a, b) ((a) < (b) ? (b) : (a))
@@ -5,3 +8,5 @@
/* is c the start of a utf8 sequence? */
#define isutf8(c) (((c)&0xC0)!=0x80)
#define ISASCII(ch) ((unsigned char)ch < 0x80)
+
+#endif