projects
/
neverball
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make sure strncpy always keeps one byte untouched for NUL
[neverball]
/
ball
/
game_common.h
diff --git
a/ball/game_common.h
b/ball/game_common.h
index
ca21fe9
..
ac502a2
100644
(file)
--- a/
ball/game_common.h
+++ b/
ball/game_common.h
@@
-29,10
+29,16
@@
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
-#define GAME_NONE 0
-#define GAME_TIME 1
-#define GAME_GOAL 2
-#define GAME_FALL 3
+enum
+{
+ GAME_NONE = 0,
+
+ GAME_TIME,
+ GAME_GOAL,
+ GAME_FALL,
+
+ GAME_MAX
+};
const char *status_to_str(int);
const char *status_to_str(int);