Use constants instead of enum since value (0xffff0000) overflow INT_MAX on some platf...
authorLaurent Monin <geeqie@norz.org>
Wed, 20 Aug 2008 22:26:34 +0000 (22:26 +0000)
committerLaurent Monin <geeqie@norz.org>
Wed, 20 Aug 2008 22:26:34 +0000 (22:26 +0000)
src/editors.h

index 0b88acf..c98fa0c 100644 (file)
 #ifndef EDITORS_H
 #define EDITORS_H
 
-enum {
-       EDITOR_KEEP_FS            = 0x00000001,
-       EDITOR_VERBOSE            = 0x00000002,
-       EDITOR_VERBOSE_MULTI      = 0x00000004,
 
-       EDITOR_DEST               = 0x00000100,
-       EDITOR_FOR_EACH           = 0x00000200,
-       EDITOR_SINGLE_COMMAND     = 0x00000400,
+#define        EDITOR_KEEP_FS            0x00000001
+#define        EDITOR_VERBOSE            0x00000002
+#define        EDITOR_VERBOSE_MULTI      0x00000004
 
-       EDITOR_ERROR_EMPTY        = 0x00020000,
-       EDITOR_ERROR_SYNTAX       = 0x00040000,
-       EDITOR_ERROR_INCOMPATIBLE = 0x00080000,
-       EDITOR_ERROR_NO_FILE      = 0x00100000,
-       EDITOR_ERROR_CANT_EXEC    = 0x00200000,
-       EDITOR_ERROR_STATUS       = 0x00400000,
-       EDITOR_ERROR_SKIPPED      = 0x00800000,
+#define        EDITOR_DEST               0x00000100
+#define        EDITOR_FOR_EACH           0x00000200
+#define        EDITOR_SINGLE_COMMAND     0x00000400
 
-       EDITOR_ERROR_MASK         = 0xffff0000
+#define        EDITOR_ERROR_EMPTY        0x00020000
+#define        EDITOR_ERROR_SYNTAX       0x00040000
+#define        EDITOR_ERROR_INCOMPATIBLE 0x00080000
+#define        EDITOR_ERROR_NO_FILE      0x00100000
+#define        EDITOR_ERROR_CANT_EXEC    0x00200000
+#define        EDITOR_ERROR_STATUS       0x00400000
+#define        EDITOR_ERROR_SKIPPED      0x00800000
+
+#define        EDITOR_ERROR_MASK         0xffff0000
 
-};
 
 /* return values from callback function */
 enum {