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 ***********************************************************/
21 #include <sys/types.h>
25 #if !defined(PLATFORM_WIN32)
26 typedef unsigned char byte;
35 #define MIN(a,b) ((a) < (b) ? (a) : (b))
39 #define MAX(a,b) ((a) > (b) ? (a) : (b))
43 #define ABS(a) ((a) < 0 ? -(a) : (a))
47 #define SIGN(a) ((a) < 0 ? -1 : ((a) > 0 ? 1 : 0))
50 #define SIZEOF_ARRAY(array, type) (sizeof(array) / sizeof(type))
51 #define SIZEOF_ARRAY_INT(array) SIZEOF_ARRAY(array, int)
58 struct ListNode *next;
60 typedef struct ListNode ListNode;