1 /***********************************************************
2 * Artsoft Retro-Game Library *
3 *----------------------------------------------------------*
4 * (c) 1994-2002 Artsoft Entertainment *
6 * Detmolder Strasse 189 *
9 * e-mail: info@artsoft.org *
10 *----------------------------------------------------------*
12 ***********************************************************/
20 #include <sys/types.h>
22 typedef unsigned char boolean;
24 #if !defined(PLATFORM_WIN32)
25 typedef unsigned char byte;
34 #define MIN(a,b) ((a) < (b) ? (a) : (b))
38 #define MAX(a,b) ((a) > (b) ? (a) : (b))
42 #define ABS(a) ((a) < 0 ? -(a) : (a))
46 #define SIGN(a) ((a) < 0 ? -1 : ((a)>0 ? 1 : 0))
49 #define SIZEOF_ARRAY(array, type) (sizeof(array) / sizeof(type))
50 #define SIZEOF_ARRAY_INT(array) SIZEOF_ARRAY(array, int)
57 struct ListNode *next;
59 typedef struct ListNode ListNode;