#ifndef __JBW__ #define __JBW__ #define BEL 7 #define BS 8 #define HT 9 #define LF 10 #define FF 12 #define CR 13 #define NULL 0 #define TRUE (1==1) #define FALSE (!TRUE) #define OFF FALSE #define ON TRUE #define IsWhite(c) ((c) == ' ' || (c) == '\t' || (c) == '\n') #define IsUpper(c) ((c) >= 'A' && (c) <= 'Z') #define IsLower(c) ((c) >= 'a' && (c) <= 'z') #define IsDigit(c) ((c) >= '0' && (c) <= '9') #define IsAlpha(c) (IsLower(c) || IsUpper(c) || (c) == '_') #define IsAlNum(c) (IsAlpha(c) || IsDigit(c)) #define IsHxDig(c) (IsDigit(c) || ((c) >= 'A' && (c) <= 'F') || ((c) >= 'a' && (c) <= 'f')) #define farnew(t,n) ((t far *) farmalloc(sizeof(t) * (n))) #define ArrayCount(a) (sizeof(a)/sizeof((a)[0])) #define MAX_TIMER 0x1800B0L typedef unsigned char BYTE; typedef unsigned int WORD; typedef unsigned long DWORD; typedef int Boolean; typedef unsigned char byte; typedef unsigned int word; typedef unsigned long dword; typedef void (far _loadds MouseFunType)(void); #define Lo(d) (((int *) &d)[0]) #define Hi(d) (((int *) &d)[1]) #define LoWord(d) ((word) Lo(d)) #define HiWord(d) ((word) Hi(d)) #define K(n) (1024*(n)) #define MASK(n) ((1<