1 /* 2 * Some standard defines which are the same for all machines - hopefully! 3 * 4 * rcs messing up..hohum! (twiddle, keep adding here till I sort it!) 5 * 6 * $Id: zcc.h,v 1.43 2016-11-06 05:14:02 aralbrec Exp $ 7 */ 8 9 #include "../config.h" 10 11 /* Some machine specific definitions (paths etc!) */ 12 13 char *version = "v" Z88DK_VERSION "\n"; 14 15 #if defined(MSDOS) 16 /* Both predefined by Borland's Turbo C/C++ and Borland C/C++ */ 17 #define PREFIX "c:\\z88dk" 18 #include <stdarg.h> 19 int snprintf(char * buffer, size_t bufsize, const char * format, ...); 20 #endif 21 22 #ifdef _WIN32 23 /* Predefined in 32-bit MS Visual C/C++ and Borland Builder C/C++ */ 24 #undef PREFIX 25 #define PREFIX "c:/z88dk" 26 #endif 27 28 #if _MSC_VER >= 1200 29 /* Predefined by Microsoft Visual C++ 6.0 */ 30 #define snprintf _snprintf 31 #endif 32 33 34 35 36 #define CFILE 1 37 #define CPPFILE 2 38 #define OPTFILE 3 39 #define SFILE 4 40 #define ASMFILE 5 41 #define OBJFILE 6 42 #define M4FILE 7 43 #define HDRFILE 8 44 #define INCFILE 9 45 #define LLFILE 10 46 47 #define NO 0 48 #define YES 1 49 50 51 #define LINEMAX 1024 /* Max number of chars to read from config file*/ 52 53 /* Name of the file that linking tweaks are written to */ 54 #define DEFFILE "zcc_opt.def" 55 56 /* Name of the file that contains a list of all input files used to make a library or binary */ 57 #define PROJFILE "zcc_proj.lst" 58 59 /* An excessively high maximum number of rule files */ 60 #define MAX_COPT_RULE_FILES 100 61 62 63 enum iostyle { outimplied=1, outspecified, filter, outspecified_flag, filter_outspecified_flag }; 64 65