|
|
1.1 root 1: /* usuals.h - The usual typedefs, etc.
2: */
3: #ifndef USUALS /* Assures no redefinitions of usual types...*/
4: #define USUALS
5:
6: typedef unsigned char boolean; /* values are TRUE or FALSE */
7: typedef unsigned char byte; /* values are 0-255 */
8: typedef byte *byteptr; /* pointer to byte */
9: typedef char *string; /* pointer to ASCII character string */
10: typedef unsigned short word16; /* values are 0-65535 */
11: typedef unsigned long word32; /* values are 0-4294967295 */
12:
13: #ifndef TRUE
14: #define FALSE 0
15: #define TRUE (!FALSE)
16: #endif /* if TRUE not already defined */
17:
18: #ifndef min /* if min macro not already defined */
19: #define min(a,b) ( (a)<(b) ? (a) : (b) )
20: #define max(a,b) ( (a)>(b) ? (a) : (b) )
21: #endif /* if min macro not already defined */
22:
23: #endif /* if USUALS not already defined */
24:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.