#define BYTE unsigned char #define WORD unsigned short #define DWORD unsigned int #define TRUE 1 #define FALSE 0 #define BOOL int #define max(a,b) (((a)>(b))?(a):(b)) #define min(a,b) (((a)>(b))?(b):(a))