projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removed function (used only once)
[rocksndiamonds.git]
/
src
/
libgame
/
types.h
diff --git
a/src/libgame/types.h
b/src/libgame/types.h
index 15b25ce8da23c4449a74e2506dc34bca1f0203a0..f7d8ad462e42b5ce198adfb7c529145d56887820 100644
(file)
--- a/
src/libgame/types.h
+++ b/
src/libgame/types.h
@@
-32,13
+32,23
@@
typedef unsigned char byte;
#undef FALSE
#endif
#undef FALSE
#endif
-#ifdef AUTO
-#undef AUTO
+#ifdef
STATE_
AUTO
+#undef
STATE_
AUTO
#endif
#endif
+#ifdef STATE_ASK
+#undef STATE_ASK
+#endif
+
+// values for boolean data type
#define TRUE 1
#define FALSE 0
#define TRUE 1
#define FALSE 0
-#define AUTO -1
+
+// values for 3-state data type (for "yes/no/auto" or "yes/no/ask")
+#define STATE_TRUE 1
+#define STATE_FALSE 0
+#define STATE_AUTO -1
+#define STATE_ASK -1
#ifndef MIN
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#ifndef MIN
#define MIN(a, b) ((a) < (b) ? (a) : (b))