1 /***********************************************************
2 * Artsoft Retro-Game Library *
3 *----------------------------------------------------------*
4 * (c) 1994-2006 Artsoft Entertainment *
6 * Detmolder Strasse 189 *
9 * e-mail: info@artsoft.org *
10 *----------------------------------------------------------*
12 ***********************************************************/
21 #include <sys/types.h>
25 #if !defined(PLATFORM_WIN32)
26 typedef unsigned char byte;
46 #define MIN(a,b) ((a) < (b) ? (a) : (b))
50 #define MAX(a,b) ((a) > (b) ? (a) : (b))
54 #define ABS(a) ((a) < 0 ? -(a) : (a))
58 #define SIGN(a) ((a) < 0 ? -1 : ((a) > 0 ? 1 : 0))
62 #define ODD(a) (((a) & 1) == 1)
66 #define EVEN(a) (((a) & 1) == 0)
69 #define SIZEOF_ARRAY(array, type) (sizeof(array) / sizeof(type))
70 #define SIZEOF_ARRAY_INT(array) SIZEOF_ARRAY(array, int)
77 struct ListNode *next;
79 typedef struct ListNode ListNode;