projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed bug with reanimating killed player by CE condition
[rocksndiamonds.git]
/
src
/
libgame
/
types.h
diff --git
a/src/libgame/types.h
b/src/libgame/types.h
index acc2c236f35a3f06ba434e90c973015bb9bcaa63..646bb3e9afed604cf118fcd577c38982a0b9ff51 100644
(file)
--- a/
src/libgame/types.h
+++ b/
src/libgame/types.h
@@
-18,9
+18,9
@@
#include <string.h>
#include <sys/types.h>
#include <string.h>
#include <sys/types.h>
-typedef int boolean;
#if !defined(PLATFORM_WIN32)
#if !defined(PLATFORM_WIN32)
+typedef int boolean;
typedef unsigned char byte;
#endif
typedef unsigned char byte;
#endif
@@
-64,8
+64,7
@@
typedef unsigned char byte;
#define EVEN(a) (((a) & 1) == 0)
#endif
#define EVEN(a) (((a) & 1) == 0)
#endif
-#define SIZEOF_ARRAY(array, type) (sizeof(array) / sizeof(type))
-#define SIZEOF_ARRAY_INT(array) SIZEOF_ARRAY(array, int)
+#define ARRAY_SIZE(array) (sizeof(array) / sizeof(array[0]))
struct ListNode
struct ListNode
@@
-77,4
+76,4
@@
struct ListNode
};
typedef struct ListNode ListNode;
};
typedef struct ListNode ListNode;
-#endif /
* TYPES_H */
+#endif /
/ TYPES_H