From 1f3c841fe4dca5a56b9f16ff01d39d8237f0f910 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 12 Oct 2009 23:29:15 +0000 Subject: [PATCH] Use defines instead of an enum (mostly useful for utilbox) --- src/file.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/file.c b/src/file.c index 0b2e422..4a5eccb 100644 --- a/src/file.c +++ b/src/file.c @@ -24,7 +24,11 @@ /* prefs */ typedef int Prefs; -enum { PREFS_d = 6, PREFS_h = 1, PREFS_m = 2, PREFS_M = 4, PREFS_i = 8 }; +#define PREFS_h 1 +#define PREFS_m 2 +#define PREFS_M 4 +#define PREFS_d 6 +#define PREFS_i 8 /* file */