summaryrefslogtreecommitdiff
path: root/igen/misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'igen/misc.h')
-rw-r--r--igen/misc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/igen/misc.h b/igen/misc.h
index 9216250..dc92cd8 100644
--- a/igen/misc.h
+++ b/igen/misc.h
@@ -1,6 +1,9 @@
#ifndef MISC_H
#define MISC_H
+#define min(a, b) (((a) < (b)) ? (a) : (b))
+#define max(a, b) (((a) > (b)) ? (a) : (b))
+
extern char *read_file(const char *filename, long *size);
extern char *get_line(char **str);
extern char *make_str(const char *str);