Move MIN() to util.h - noice - small file browser (mirror / fork from 2f30.org) | |
git clone git://git.codemadness.org/noice | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 237f8a910e96ca9b6a7f4c9438010e7995797ac1 | |
parent a4c4570b0b249bebe74951f3ca8887ea6c644c12 | |
Author: sin <[email protected]> | |
Date: Fri, 23 Aug 2019 10:59:03 +0100 | |
Move MIN() to util.h | |
Diffstat: | |
M noice.c | 2 -- | |
M util.h | 2 ++ | |
2 files changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/noice.c b/noice.c | |
@@ -18,8 +18,6 @@ | |
#include "util.h" | |
-#undef MIN | |
-#define MIN(x, y) ((x) < (y) ? (x) : (y)) | |
#define ISODD(x) ((x) & 1) | |
#define CONTROL(c) ((c) ^ 0x40) | |
#define META(c) ((c) ^ 0x80) | |
diff --git a/util.h b/util.h | |
@@ -1,4 +1,6 @@ | |
/* See LICENSE file for copyright and license details. */ | |
+#undef MIN | |
+#define MIN(x, y) ((x) < (y) ? (x) : (y)) | |
#define LEN(x) (sizeof(x) / sizeof(*(x))) | |
#define NR_ARGS 32 | |