projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
white space changes
[rocksndiamonds.git]
/
src
/
libgame
/
types.h
diff --git
a/src/libgame/types.h
b/src/libgame/types.h
index 0dfed15a1ba29280b6cac09091287218d5825926..0c935a21efd2d6e78e4304559643a74b251312d9 100644
(file)
--- a/
src/libgame/types.h
+++ b/
src/libgame/types.h
@@
-4,7
+4,7
@@
// (c) 1995-2014 by Artsoft Entertainment
// Holger Schemel
// info@artsoft.org
// (c) 1995-2014 by Artsoft Entertainment
// Holger Schemel
// info@artsoft.org
-// http://www.artsoft.org/
+// http
s
://www.artsoft.org/
// ----------------------------------------------------------------------------
// types.h
// ============================================================================
// ----------------------------------------------------------------------------
// 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_WINDOWS)
+typedef int boolean;
typedef unsigned char byte;
#endif
typedef unsigned char byte;
#endif
@@
-41,11
+41,11
@@
typedef unsigned char byte;
#define AUTO -1
#ifndef MIN
#define AUTO -1
#ifndef MIN
-#define MIN(a,
b)
((a) < (b) ? (a) : (b))
+#define MIN(a,
b)
((a) < (b) ? (a) : (b))
#endif
#ifndef MAX
#endif
#ifndef MAX
-#define MAX(a,
b)
((a) > (b) ? (a) : (b))
+#define MAX(a,
b)
((a) > (b) ? (a) : (b))
#endif
#ifndef ABS
#endif
#ifndef ABS
@@
-64,16
+64,23
@@
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
{
char *key;
void *content;
struct ListNode
{
char *key;
void *content;
+ struct ListNode *prev;
struct ListNode *next;
};
typedef struct ListNode ListNode;
struct ListNode *next;
};
typedef struct ListNode ListNode;
-#endif /* TYPES_H */
+struct DelayCounter
+{
+ unsigned int value;
+ unsigned int count;
+};
+typedef struct DelayCounter DelayCounter;
+
+#endif // TYPES_H