Revision: 1071
http://geeqie.svn.sourceforge.net/geeqie/?rev=1071&view=rev
Author: zas_
Date: 2008-08-20 22:26:34 +0000 (Wed, 20 Aug 2008)
Log Message:
-----------
Use constants instead of enum since value (0xffff0000) overflow INT_MAX on some
platforms (seen on Solaris 10 SPARC system using the native Sun version 5.9
compilers). Reported by Jeffery Small.
Modified Paths:
--------------
trunk/src/editors.h
Modified: trunk/src/editors.h
===================================================================
--- trunk/src/editors.h 2008-08-20 22:19:35 UTC (rev 1070)
+++ trunk/src/editors.h 2008-08-20 22:26:34 UTC (rev 1071)
@@ -14,27 +14,26 @@
#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 {
EDITOR_CB_CONTINUE = 0, /* continue multiple editor execution on
remaining files*/
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn