/************** Machine (and compiler) dependent definitions. ************** * * Define appropriate types for the following ranges of integer * variables. These are processor & compiler dependent, but the * distributed definitions will probably work on most systems. */ /* MACHINE TYPE DEFINED TYPE VALUE RANGE */ typedef unsigned char int8; /* 0 .. 255 */ typedef short int16; /* -10,000 .. 10,000 */ typedef long int32; /* -100,000 .. 100,000 */ typedef unsigned long uint32; /* 0 .. 2^31-1 */ /* * Define STRCSPN if the strcspn() function is not available. */ /* #define STRCSPN /* */ /* * Define NO_SIGINTERRUPT on BSD based systems which don't have * a siginterrupt() function, but provides an SV_INTERRUPT flag * in . */ /* #define NO_SIGINTERRUPT /* */ #ifdef NETWORK_DATABASE /* * Define NETWORK_BYTE_ORDER if the machine's int32's are * already in network byte order, i.e. m68k based. */ #define NETWORK_BYTE_ORDER /* */ /* * OTHERWISE provide the functions/macros ntohl/htonl to * convert longs from and to network byte order */ #ifndef NETWORK_BYTE_ORDER /* * Include appropriate files or define macroes or functions (include them * in data.c) to convert longs and shorts to and from network byte order. */ /* * This will work on most BSD based systems... */ #include /* * Otherwise, define something appropriate below */ #define htonl(l) ... /* host long to network long */ #define ntohl(l) ... /* network long to host long */ #endif /* not NETWORK BYTE ORDER */ #endif /* NETWORK DATABASE */