/*--------------------------*/ /* Standard C library RQST */ /*--------------------------*/ /* Uncomment this if you use the library CLIB.REL and no more typing clib[s] or clib/s on the linker command line #asm .request CLIB #endasm */ /* * This is the trick. Make sure that this goes at the top of the file. * I put it in the STDIO.H file and define ZCPR3 if I want it included. * This way I can make any program a utility by simply defining ZCPR3. */ /*--------------------------*/ /* ZCPR3 Utility Initialize */ /*--------------------------*/ #ifdef ZCPR3 #asm CSEG db 'Z3ENV' db 1 Z3EADR:: dw 0fb00h ; This is the address from Z3BASE.LIB ; For your environment. #endasm char *envptr; /* Needed for now until syslib and zlib */ #endif /* are done. */ /*--------------------------*/ /* Standard C80 definitions */ /*--------------------------*/ #define TRUE 1 #define YES TRUE #define OK TRUE #define FALSE 0 #define NO FALSE #define Boolean char #define boolean char #define bool char #define uns unsigned extern boolean Cmode; /* True => line at a time console input */ /* FALSE => char at a time console input */ #define ALLOC_ERR -1 #define ERROR 0 #define ERR ERROR /*--------------------------*/ /* File definitions */ /*--------------------------*/ #define FILE int extern int fin,fout; extern int stdin,stdout; extern FILE *fopen(); #define open fopen #define close fclose #define creat create #define STDIN stdin #define STDOUT stdout #define stderr 0 #define STDERR 0 #define EOF -1 #define CPMEOF 26 /*-------------------------*/ /* String definitions */ /*-------------------------*/ #define NEWLINE '\n' #define NIL 0 #define NULL '\0' #define EOS NULL #define BLANK 32 #define TAB 09