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;
23 typedef unsigned char byte;
31 #define MIN(a,b) ((a) < (b) ? (a) : (b))
35 #define MAX(a,b) ((a) > (b) ? (a) : (b))
39 #define ABS(a) ((a) < 0 ? -(a) : (a))
43 #define SIGN(a) ((a) < 0 ? -1 : ((a)>0 ? 1 : 0))
46 #define SIZEOF_ARRAY(array, type) (sizeof(array) / sizeof(type))
47 #define SIZEOF_ARRAY_INT(array) SIZEOF_ARRAY(array, int)
54 struct ListNode *next;
56 typedef struct ListNode ListNode;