diff options
Diffstat (limited to 'v4.0/src/TOOLS')
81 files changed, 2882 insertions, 0 deletions
diff --git a/v4.0/src/TOOLS/ASC2HLP.EXE b/v4.0/src/TOOLS/ASC2HLP.EXE new file mode 100644 index 0000000..a5487ff --- /dev/null +++ b/v4.0/src/TOOLS/ASC2HLP.EXE | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/ATTRIB.EXE b/v4.0/src/TOOLS/ATTRIB.EXE new file mode 100644 index 0000000..5afd271 --- /dev/null +++ b/v4.0/src/TOOLS/ATTRIB.EXE | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/BLD/INC/ASSERT.H b/v4.0/src/TOOLS/BLD/INC/ASSERT.H new file mode 100644 index 0000000..3a9809f --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/ASSERT.H | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | /*** | ||
| 2 | *assert.h - define the assert macro | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * Defines the assert(exp) macro. | ||
| 8 | * [ANSI/System V] | ||
| 9 | * | ||
| 10 | *******************************************************************************/ | ||
| 11 | |||
| 12 | |||
| 13 | #ifndef _ASSERT_DEFINED | ||
| 14 | |||
| 15 | #ifndef NDEBUG | ||
| 16 | |||
| 17 | static char _assertstring[] = "Assertion failed: %s, file %s, line %d\n"; | ||
| 18 | |||
| 19 | #define assert(exp) { \ | ||
| 20 | if (!(exp)) { \ | ||
| 21 | fprintf(stderr, _assertstring, #exp, __FILE__, __LINE__); \ | ||
| 22 | fflush(stderr); \ | ||
| 23 | abort(); \ | ||
| 24 | } \ | ||
| 25 | } | ||
| 26 | |||
| 27 | #else | ||
| 28 | |||
| 29 | #define assert(exp) | ||
| 30 | |||
| 31 | #endif /* NDEBUG */ | ||
| 32 | |||
| 33 | #define _ASSERT_DEFINED | ||
| 34 | |||
| 35 | #endif /* _ASSERT_DEFINED */ | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/BIOS.H b/v4.0/src/TOOLS/BLD/INC/BIOS.H new file mode 100644 index 0000000..0844857 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/BIOS.H | |||
| @@ -0,0 +1,181 @@ | |||
| 1 | /*** | ||
| 2 | *bios.h - declarations for bios interface functions and supporting definitions | ||
| 3 | * | ||
| 4 | * Copyright (c) 1987-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This file declares the constants, structures, and functions | ||
| 8 | * used for accessing and using various BIOS interfaces. | ||
| 9 | * | ||
| 10 | *******************************************************************************/ | ||
| 11 | |||
| 12 | |||
| 13 | #ifndef NO_EXT_KEYS /* extensions enabled */ | ||
| 14 | #define _CDECL cdecl | ||
| 15 | #else /* extensions not enabled */ | ||
| 16 | #define _CDECL | ||
| 17 | #endif /* NO_EXT_KEYS */ | ||
| 18 | |||
| 19 | /* manifest constants for BIOS serial communications (RS-232) support */ | ||
| 20 | |||
| 21 | /* serial port services */ | ||
| 22 | |||
| 23 | #define _COM_INIT 0 /* init serial port */ | ||
| 24 | #define _COM_SEND 1 /* send character */ | ||
| 25 | #define _COM_RECEIVE 2 /* receive character */ | ||
| 26 | #define _COM_STATUS 3 /* get serial port status */ | ||
| 27 | |||
| 28 | /* serial port initializers. One and only one constant from each of the | ||
| 29 | * following four groups - character size, stop bit, parity, and baud rate - | ||
| 30 | * must be specified in the initialization byte. | ||
| 31 | */ | ||
| 32 | |||
| 33 | /* character size initializers */ | ||
| 34 | |||
| 35 | #define _COM_CHR7 2 /* 7 bits characters */ | ||
| 36 | #define _COM_CHR8 3 /* 8 bits characters */ | ||
| 37 | |||
| 38 | /* stop bit values - on or off */ | ||
| 39 | |||
| 40 | #define _COM_STOP1 0 /* 1 stop bit */ | ||
| 41 | #define _COM_STOP2 4 /* 2 stop bits */ | ||
| 42 | |||
| 43 | /* parity initializers */ | ||
| 44 | |||
| 45 | #define _COM_NOPARITY 0 /* no parity */ | ||
| 46 | #define _COM_ODDPARITY 8 /* odd parity */ | ||
| 47 | #define _COM_EVENPARITY 24 /* even parity */ | ||
| 48 | |||
| 49 | /* baud rate initializers */ | ||
| 50 | |||
| 51 | #define _COM_110 0 /* 110 baud */ | ||
| 52 | #define _COM_150 32 /* 150 baud */ | ||
| 53 | #define _COM_300 64 /* 300 baud */ | ||
| 54 | #define _COM_600 96 /* 600 baud */ | ||
| 55 | #define _COM_1200 128 /* 1200 baud */ | ||
| 56 | #define _COM_2400 160 /* 2400 baud */ | ||
| 57 | #define _COM_4800 192 /* 4800 baud */ | ||
| 58 | #define _COM_9600 224 /* 9600 baud */ | ||
| 59 | |||
| 60 | |||
| 61 | /* manifest constants for BIOS disk support */ | ||
| 62 | |||
| 63 | /* disk services */ | ||
| 64 | |||
| 65 | #define _DISK_RESET 0 /* reset disk controller */ | ||
| 66 | #define _DISK_STATUS 1 /* get disk status */ | ||
| 67 | #define _DISK_READ 2 /* read disk sectors */ | ||
| 68 | #define _DISK_WRITE 3 /* write disk sectors */ | ||
| 69 | #define _DISK_VERIFY 4 /* verify disk sectors */ | ||
| 70 | #define _DISK_FORMAT 5 /* format disk track */ | ||
| 71 | |||
| 72 | /* struct used to send/receive information to/from the BIOS disk services */ | ||
| 73 | |||
| 74 | #ifndef NO_EXT_KEYS /* extensions must be enabled */ | ||
| 75 | |||
| 76 | #ifndef _DISKINFO_T_DEFINED | ||
| 77 | |||
| 78 | struct diskinfo_t { | ||
| 79 | unsigned drive; | ||
| 80 | unsigned head; | ||
| 81 | unsigned track; | ||
| 82 | unsigned sector; | ||
| 83 | unsigned nsectors; | ||
| 84 | void far *buffer; | ||
| 85 | }; | ||
| 86 | |||
| 87 | #define _DISKINFO_T_DEFINED | ||
| 88 | |||
| 89 | #endif | ||
| 90 | |||
| 91 | #endif /* NO_EXT_KEYS */ | ||
| 92 | |||
| 93 | |||
| 94 | /* manifest constants for BIOS keyboard support */ | ||
| 95 | |||
| 96 | /* keyboard services */ | ||
| 97 | |||
| 98 | #define _KEYBRD_READ 0 /* read next character from keyboard */ | ||
| 99 | #define _KEYBRD_READY 1 /* check for keystroke */ | ||
| 100 | #define _KEYBRD_SHIFTSTATUS 2 /* get current shift key status */ | ||
| 101 | |||
| 102 | |||
| 103 | /* manifest constants for BIOS printer support */ | ||
| 104 | |||
| 105 | /* printer services */ | ||
| 106 | |||
| 107 | #define _PRINTER_WRITE 0 /* write character to printer */ | ||
| 108 | #define _PRINTER_INIT 1 /* intialize printer */ | ||
| 109 | #define _PRINTER_STATUS 2 /* get printer status */ | ||
| 110 | |||
| 111 | |||
| 112 | /* manifest constants for BIOS time of day support */ | ||
| 113 | |||
| 114 | /* time of day services */ | ||
| 115 | |||
| 116 | #define _TIME_GETCLOCK 0 /* get current clock count */ | ||
| 117 | #define _TIME_SETCLOCK 1 /* set current clock count */ | ||
| 118 | |||
| 119 | |||
| 120 | #ifndef _REGS_DEFINED | ||
| 121 | |||
| 122 | /* word registers */ | ||
| 123 | |||
| 124 | struct WORDREGS { | ||
| 125 | unsigned int ax; | ||
| 126 | unsigned int bx; | ||
| 127 | unsigned int cx; | ||
| 128 | unsigned int dx; | ||
| 129 | unsigned int si; | ||
| 130 | unsigned int di; | ||
| 131 | unsigned int cflag; | ||
| 132 | }; | ||
| 133 | |||
| 134 | /* byte registers */ | ||
| 135 | |||
| 136 | struct BYTEREGS { | ||
| 137 | unsigned char al, ah; | ||
| 138 | unsigned char bl, bh; | ||
| 139 | unsigned char cl, ch; | ||
| 140 | unsigned char dl, dh; | ||
| 141 | }; | ||
| 142 | |||
| 143 | /* general purpose registers union - | ||
| 144 | * overlays the corresponding word and byte registers. | ||
| 145 | */ | ||
| 146 | |||
| 147 | union REGS { | ||
| 148 | struct WORDREGS x; | ||
| 149 | struct BYTEREGS h; | ||
| 150 | }; | ||
| 151 | |||
| 152 | /* segment registers */ | ||
| 153 | |||
| 154 | struct SREGS { | ||
| 155 | unsigned int es; | ||
| 156 | unsigned int cs; | ||
| 157 | unsigned int ss; | ||
| 158 | unsigned int ds; | ||
| 159 | }; | ||
| 160 | |||
| 161 | #define _REGS_DEFINED | ||
| 162 | |||
| 163 | #endif /* _REGS_DEFINED */ | ||
| 164 | |||
| 165 | |||
| 166 | /* function prototypes */ | ||
| 167 | |||
| 168 | unsigned _CDECL _bios_equiplist(void); | ||
| 169 | unsigned _CDECL _bios_keybrd(unsigned); | ||
| 170 | unsigned _CDECL _bios_memsize(void); | ||
| 171 | unsigned _CDECL _bios_printer(unsigned, unsigned, unsigned); | ||
| 172 | unsigned _CDECL _bios_serialcom(unsigned, unsigned, unsigned); | ||
| 173 | unsigned _CDECL _bios_timeofday(unsigned, long *); | ||
| 174 | int _CDECL int86(int, union REGS *, union REGS *); | ||
| 175 | int _CDECL int86x(int, union REGS *, union REGS *, struct SREGS *); | ||
| 176 | |||
| 177 | #ifndef NO_EXT_KEYS /* extensions must be enabled */ | ||
| 178 | |||
| 179 | unsigned _CDECL _bios_disk(unsigned, struct diskinfo_t *); | ||
| 180 | |||
| 181 | #endif /* NO_EXT_KEYS */ | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/CONIO.H b/v4.0/src/TOOLS/BLD/INC/CONIO.H new file mode 100644 index 0000000..7941e2e --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/CONIO.H | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | /*** | ||
| 2 | *conio.h - console and port I/O declarations | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This include file contains the function declarations for | ||
| 8 | * the MS C V2.03 compatible console and port I/O routines. | ||
| 9 | * | ||
| 10 | *******************************************************************************/ | ||
| 11 | |||
| 12 | |||
| 13 | #ifndef NO_EXT_KEYS /* extensions enabled */ | ||
| 14 | #define _CDECL cdecl | ||
| 15 | #else /* extensions not enabled */ | ||
| 16 | #define _CDECL | ||
| 17 | #endif /* NO_EXT_KEYS */ | ||
| 18 | |||
| 19 | /* function prototypes */ | ||
| 20 | |||
| 21 | char * _CDECL cgets(char *); | ||
| 22 | int _CDECL cprintf(char *, ...); | ||
| 23 | int _CDECL cputs(char *); | ||
| 24 | int _CDECL cscanf(char *, ...); | ||
| 25 | int _CDECL getch(void); | ||
| 26 | int _CDECL getche(void); | ||
| 27 | int _CDECL inp(unsigned int); | ||
| 28 | unsigned _CDECL inpw(unsigned int); | ||
| 29 | int _CDECL kbhit(void); | ||
| 30 | int _CDECL outp(unsigned int, int); | ||
| 31 | unsigned _CDECL outpw(unsigned int, unsigned int); | ||
| 32 | int _CDECL putch(int); | ||
| 33 | int _CDECL ungetch(int); | ||
| 34 | |||
diff --git a/v4.0/src/TOOLS/BLD/INC/CTYPE.H b/v4.0/src/TOOLS/BLD/INC/CTYPE.H new file mode 100644 index 0000000..c65d021 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/CTYPE.H | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | /*** | ||
| 2 | *ctype.h - character conversion macros and ctype macros | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * Defines macros for character classification/conversion. | ||
| 8 | * [ANSI/System V] | ||
| 9 | * | ||
| 10 | *******************************************************************************/ | ||
| 11 | |||
| 12 | |||
| 13 | #ifndef NO_EXT_KEYS /* extensions enabled */ | ||
| 14 | #define _CDECL cdecl | ||
| 15 | #define _NEAR near | ||
| 16 | #else /* extensions not enabled */ | ||
| 17 | #define _CDECL | ||
| 18 | #define _NEAR | ||
| 19 | #endif /* NO_EXT_KEYS */ | ||
| 20 | |||
| 21 | /* | ||
| 22 | * This declaration allows the user access to the ctype look-up | ||
| 23 | * array _ctype defined in ctype.obj by simply including ctype.h | ||
| 24 | */ | ||
| 25 | |||
| 26 | extern unsigned char _NEAR _CDECL _ctype[]; | ||
| 27 | |||
| 28 | /* set bit masks for the possible character types */ | ||
| 29 | |||
| 30 | #define _UPPER 0x1 /* upper case letter */ | ||
| 31 | #define _LOWER 0x2 /* lower case letter */ | ||
| 32 | #define _DIGIT 0x4 /* digit[0-9] */ | ||
| 33 | #define _SPACE 0x8 /* tab, carriage return, newline, */ | ||
| 34 | /* vertical tab or form feed */ | ||
| 35 | #define _PUNCT 0x10 /* punctuation character */ | ||
| 36 | #define _CONTROL 0x20 /* control character */ | ||
| 37 | #define _BLANK 0x40 /* space char */ | ||
| 38 | #define _HEX 0x80 /* hexadecimal digit */ | ||
| 39 | |||
| 40 | /* the character classification macro definitions */ | ||
| 41 | |||
| 42 | #define isalpha(c) ( (_ctype+1)[c] & (_UPPER|_LOWER) ) | ||
| 43 | #define isupper(c) ( (_ctype+1)[c] & _UPPER ) | ||
| 44 | #define islower(c) ( (_ctype+1)[c] & _LOWER ) | ||
| 45 | #define isdigit(c) ( (_ctype+1)[c] & _DIGIT ) | ||
| 46 | #define isxdigit(c) ( (_ctype+1)[c] & _HEX ) | ||
| 47 | #define isspace(c) ( (_ctype+1)[c] & _SPACE ) | ||
| 48 | #define ispunct(c) ( (_ctype+1)[c] & _PUNCT ) | ||
| 49 | #define isalnum(c) ( (_ctype+1)[c] & (_UPPER|_LOWER|_DIGIT) ) | ||
| 50 | #define isprint(c) ( (_ctype+1)[c] & (_BLANK|_PUNCT|_UPPER|_LOWER|_DIGIT) ) | ||
| 51 | #define isgraph(c) ( (_ctype+1)[c] & (_PUNCT|_UPPER|_LOWER|_DIGIT) ) | ||
| 52 | #define iscntrl(c) ( (_ctype+1)[c] & _CONTROL ) | ||
| 53 | |||
| 54 | #define toupper(c) ( (islower(c)) ? _toupper(c) : (c) ) | ||
| 55 | #define tolower(c) ( (isupper(c)) ? _tolower(c) : (c) ) | ||
| 56 | |||
| 57 | #define _tolower(c) ( (c)-'A'+'a' ) | ||
| 58 | #define _toupper(c) ( (c)-'a'+'A' ) | ||
| 59 | |||
| 60 | #define isascii(c) ( (unsigned)(c) < 0x80 ) | ||
| 61 | #define toascii(c) ( (c) & 0x7f ) | ||
| 62 | |||
| 63 | /* MS C version 2.0 extended ctype macros */ | ||
| 64 | |||
| 65 | #define iscsymf(c) (isalpha(c) || ((c) == '_')) | ||
| 66 | #define iscsym(c) (isalnum(c) || ((c) == '_')) | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/DIRECT.H b/v4.0/src/TOOLS/BLD/INC/DIRECT.H new file mode 100644 index 0000000..2e2ebde --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/DIRECT.H | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | /*** | ||
| 2 | *direct.h - function declarations for directory handling/creation | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This include file contains the function declarations for the library | ||
| 8 | * functions related to directory handling and creation. | ||
| 9 | * | ||
| 10 | *******************************************************************************/ | ||
| 11 | |||
| 12 | |||
| 13 | #ifndef NO_EXT_KEYS /* extensions enabled */ | ||
| 14 | #define _CDECL cdecl | ||
| 15 | #else /* extensions not enabled */ | ||
| 16 | #define _CDECL | ||
| 17 | #endif /* NO_EXT_KEYS */ | ||
| 18 | |||
| 19 | /* function prototypes */ | ||
| 20 | |||
| 21 | int _CDECL chdir(char *); | ||
| 22 | char * _CDECL getcwd(char *, int); | ||
| 23 | int _CDECL mkdir(char *); | ||
| 24 | int _CDECL rmdir(char *); | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/DOS.H b/v4.0/src/TOOLS/BLD/INC/DOS.H new file mode 100644 index 0000000..5539156 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/DOS.H | |||
| @@ -0,0 +1,220 @@ | |||
| 1 | /*** | ||
| 2 | *dos.h - definitions for MS-DOS interface routines | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * Defines the structs and unions used for the direct DOS interface | ||
| 8 | * routines; includes macros to access the segment and offset | ||
| 9 | * values of far pointers, so that they may be used by the routines; and | ||
| 10 | * provides function prototypes for direct DOS interface functions. | ||
| 11 | * | ||
| 12 | *******************************************************************************/ | ||
| 13 | |||
| 14 | |||
| 15 | #ifndef NO_EXT_KEYS /* extensions enabled */ | ||
| 16 | #define _CDECL cdecl | ||
| 17 | #define _NEAR near | ||
| 18 | #else /* extensions not enabled */ | ||
| 19 | #define _CDECL | ||
| 20 | #define _NEAR | ||
| 21 | #endif /* NO_EXT_KEYS */ | ||
| 22 | |||
| 23 | |||
| 24 | #ifndef _REGS_DEFINED | ||
| 25 | |||
| 26 | /* word registers */ | ||
| 27 | |||
| 28 | struct WORDREGS { | ||
| 29 | unsigned int ax; | ||
| 30 | unsigned int bx; | ||
| 31 | unsigned int cx; | ||
| 32 | unsigned int dx; | ||
| 33 | unsigned int si; | ||
| 34 | unsigned int di; | ||
| 35 | unsigned int cflag; | ||
| 36 | }; | ||
| 37 | |||
| 38 | |||
| 39 | /* byte registers */ | ||
| 40 | |||
| 41 | struct BYTEREGS { | ||
| 42 | unsigned char al, ah; | ||
| 43 | unsigned char bl, bh; | ||
| 44 | unsigned char cl, ch; | ||
| 45 | unsigned char dl, dh; | ||
| 46 | }; | ||
| 47 | |||
| 48 | |||
| 49 | /* general purpose registers union - | ||
| 50 | * overlays the corresponding word and byte registers. | ||
| 51 | */ | ||
| 52 | |||
| 53 | union REGS { | ||
| 54 | struct WORDREGS x; | ||
| 55 | struct BYTEREGS h; | ||
| 56 | }; | ||
| 57 | |||
| 58 | |||
| 59 | /* segment registers */ | ||
| 60 | |||
| 61 | struct SREGS { | ||
| 62 | unsigned int es; | ||
| 63 | unsigned int cs; | ||
| 64 | unsigned int ss; | ||
| 65 | unsigned int ds; | ||
| 66 | }; | ||
| 67 | |||
| 68 | #define _REGS_DEFINED | ||
| 69 | |||
| 70 | #endif | ||
| 71 | |||
| 72 | |||
| 73 | /* dosexterror structure */ | ||
| 74 | |||
| 75 | #ifndef _DOSERROR_DEFINED | ||
| 76 | |||
| 77 | struct DOSERROR { | ||
| 78 | int exterror; | ||
| 79 | char class; | ||
| 80 | char action; | ||
| 81 | char locus; | ||
| 82 | }; | ||
| 83 | |||
| 84 | #define _DOSERROR_DEFINED | ||
| 85 | |||
| 86 | #endif | ||
| 87 | |||
| 88 | |||
| 89 | /* _dos_findfirst structure */ | ||
| 90 | |||
| 91 | #ifndef _FIND_T_DEFINED | ||
| 92 | |||
| 93 | struct find_t { | ||
| 94 | char reserved[21]; | ||
| 95 | char attrib; | ||
| 96 | unsigned wr_time; | ||
| 97 | unsigned wr_date; | ||
| 98 | long size; | ||
| 99 | char name[13]; | ||
| 100 | }; | ||
| 101 | |||
| 102 | #define _FIND_T_DEFINED | ||
| 103 | |||
| 104 | #endif | ||
| 105 | |||
| 106 | |||
| 107 | /* _dos_getdate/_dossetdate and _dos_gettime/_dos_settime structures */ | ||
| 108 | |||
| 109 | #ifndef _DATETIME_T_DEFINED | ||
| 110 | |||
| 111 | struct dosdate_t { | ||
| 112 | unsigned char day; /* 1-31 */ | ||
| 113 | unsigned char month; /* 1-12 */ | ||
| 114 | unsigned int year; /* 1980-2099 */ | ||
| 115 | unsigned char dayofweek; /* 0-6, 0=Sunday */ | ||
| 116 | }; | ||
| 117 | |||
| 118 | struct dostime_t { | ||
| 119 | unsigned char hour; /* 0-23 */ | ||
| 120 | unsigned char minute; /* 0-59 */ | ||
| 121 | unsigned char second; /* 0-59 */ | ||
| 122 | unsigned char hsecond; /* 0-99 */ | ||
| 123 | }; | ||
| 124 | |||
| 125 | #define _DATETIME_T_DEFINED | ||
| 126 | |||
| 127 | #endif | ||
| 128 | |||
| 129 | |||
| 130 | /* _dos_getdiskfree structure */ | ||
| 131 | |||
| 132 | #ifndef _DISKFREE_T_DEFINED | ||
| 133 | |||
| 134 | struct diskfree_t { | ||
| 135 | unsigned total_clusters; | ||
| 136 | unsigned avail_clusters; | ||
| 137 | unsigned sectors_per_cluster; | ||
| 138 | unsigned bytes_per_sector; | ||
| 139 | }; | ||
| 140 | |||
| 141 | #define _DISKFREE_T_DEFINED | ||
| 142 | |||
| 143 | #endif | ||
| 144 | |||
| 145 | |||
| 146 | /* manifest constants for _hardresume result parameter */ | ||
| 147 | |||
| 148 | #define _HARDERR_IGNORE 0 /* Ignore the error */ | ||
| 149 | #define _HARDERR_RETRY 1 /* Retry the operation */ | ||
| 150 | #define _HARDERR_ABORT 2 /* Abort program issuing Interrupt 23h */ | ||
| 151 | #define _HARDERR_FAIL 3 /* Fail the system call in progress */ | ||
| 152 | /* _HARDERR_FAIL is not supported on DOS 2.x */ | ||
| 153 | |||
| 154 | /* File attribute constants */ | ||
| 155 | |||
| 156 | #define _A_NORMAL 0x00 /* Normal file - No read/write restrictions */ | ||
| 157 | #define _A_RDONLY 0x01 /* Read only file */ | ||
| 158 | #define _A_HIDDEN 0x02 /* Hidden file */ | ||
| 159 | #define _A_SYSTEM 0x04 /* System file */ | ||
| 160 | #define _A_VOLID 0x08 /* Volume ID file */ | ||
| 161 | #define _A_SUBDIR 0x10 /* Subdirectory */ | ||
| 162 | #define _A_ARCH 0x20 /* Archive file */ | ||
| 163 | |||
| 164 | /* macros to break MS C "far" pointers into their segment and offset | ||
| 165 | * components | ||
| 166 | */ | ||
| 167 | |||
| 168 | #define FP_SEG(fp) (*((unsigned *)&(fp) + 1)) | ||
| 169 | #define FP_OFF(fp) (*((unsigned *)&(fp))) | ||
| 170 | |||
| 171 | |||
| 172 | /* external variable declarations */ | ||
| 173 | |||
| 174 | extern unsigned int _NEAR _CDECL _osversion; | ||
| 175 | |||
| 176 | |||
| 177 | /* function prototypes */ | ||
| 178 | |||
| 179 | int _CDECL bdos(int, unsigned int, unsigned int); | ||
| 180 | void _CDECL _disable(void); | ||
| 181 | unsigned _CDECL _dos_allocmem(unsigned, unsigned *); | ||
| 182 | unsigned _CDECL _dos_close(int); | ||
| 183 | unsigned _CDECL _dos_creat(char *, unsigned, int *); | ||
| 184 | unsigned _CDECL _dos_creatnew(char *, unsigned, int *); | ||
| 185 | unsigned _CDECL _dos_findfirst(char *, unsigned, struct find_t *); | ||
| 186 | unsigned _CDECL _dos_findnext(struct find_t *); | ||
| 187 | unsigned _CDECL _dos_freemem(unsigned); | ||
| 188 | void _CDECL _dos_getdate(struct dosdate_t *); | ||
| 189 | void _CDECL _dos_getdrive(unsigned *); | ||
| 190 | unsigned _CDECL _dos_getdiskfree(unsigned, struct diskfree_t *); | ||
| 191 | unsigned _CDECL _dos_getfileattr(char *, unsigned *); | ||
| 192 | unsigned _CDECL _dos_getftime(int, unsigned *, unsigned *); | ||
| 193 | void _CDECL _dos_gettime(struct dostime_t *); | ||
| 194 | void _CDECL _dos_keep(unsigned, unsigned); | ||
| 195 | unsigned _CDECL _dos_open(char *, unsigned, int *); | ||
| 196 | unsigned _CDECL _dos_setblock(unsigned, unsigned, unsigned *); | ||
| 197 | unsigned _CDECL _dos_setdate(struct dosdate_t *); | ||
| 198 | void _CDECL _dos_setdrive(unsigned, unsigned *); | ||
| 199 | unsigned _CDECL _dos_setfileattr(char *, unsigned); | ||
| 200 | unsigned _CDECL _dos_setftime(int, unsigned, unsigned); | ||
| 201 | unsigned _CDECL _dos_settime(struct dostime_t *); | ||
| 202 | int _CDECL dosexterr(struct DOSERROR *); | ||
| 203 | void _CDECL _enable(void); | ||
| 204 | void _CDECL _hardresume(int); | ||
| 205 | void _CDECL _hardretn(int); | ||
| 206 | int _CDECL intdos(union REGS *, union REGS *); | ||
| 207 | int _CDECL intdosx(union REGS *, union REGS *, struct SREGS *); | ||
| 208 | int _CDECL int86(int, union REGS *, union REGS *); | ||
| 209 | int _CDECL int86x(int, union REGS *, union REGS *, struct SREGS *); | ||
| 210 | void _CDECL segread(struct SREGS *); | ||
| 211 | |||
| 212 | |||
| 213 | #ifndef NO_EXT_KEYS /* extensions enabled */ | ||
| 214 | void _CDECL _chain_intr(void (_CDECL interrupt far *)()); | ||
| 215 | void (_CDECL interrupt far * _CDECL _dos_getvect(unsigned))(); | ||
| 216 | unsigned _CDECL _dos_read(int, void far *, unsigned, unsigned *); | ||
| 217 | void _CDECL _dos_setvect(unsigned, void (_CDECL interrupt far *)()); | ||
| 218 | unsigned _CDECL _dos_write(int, void far *, unsigned, unsigned *); | ||
| 219 | void _CDECL _harderr(void (far *)()); | ||
| 220 | #endif /* NO_EXT_KEYS */ | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/ERRNO.H b/v4.0/src/TOOLS/BLD/INC/ERRNO.H new file mode 100644 index 0000000..0925338 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/ERRNO.H | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | /*** | ||
| 2 | *errno.h - system wide error numbers (set by system calls) | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This file defines the system-wide error numbers (set by | ||
| 8 | * system calls). Conforms to the XENIX standard. Extended | ||
| 9 | * for compatibility with Uniforum standard. | ||
| 10 | * [System V] | ||
| 11 | * | ||
| 12 | *******************************************************************************/ | ||
| 13 | |||
| 14 | #define EZERO 0 | ||
| 15 | #define EPERM 1 | ||
| 16 | #define ENOENT 2 | ||
| 17 | #define ESRCH 3 | ||
| 18 | #define EINTR 4 | ||
| 19 | #define EIO 5 | ||
| 20 | #define ENXIO 6 | ||
| 21 | #define E2BIG 7 | ||
| 22 | #define ENOEXEC 8 | ||
| 23 | #define EBADF 9 | ||
| 24 | #define ECHILD 10 | ||
| 25 | #define EAGAIN 11 | ||
| 26 | #define ENOMEM 12 | ||
| 27 | #define EACCES 13 | ||
| 28 | #define EFAULT 14 | ||
| 29 | #define ENOTBLK 15 | ||
| 30 | #define EBUSY 16 | ||
| 31 | #define EEXIST 17 | ||
| 32 | #define EXDEV 18 | ||
| 33 | #define ENODEV 19 | ||
| 34 | #define ENOTDIR 20 | ||
| 35 | #define EISDIR 21 | ||
| 36 | #define EINVAL 22 | ||
| 37 | #define ENFILE 23 | ||
| 38 | #define EMFILE 24 | ||
| 39 | #define ENOTTY 25 | ||
| 40 | #define ETXTBSY 26 | ||
| 41 | #define EFBIG 27 | ||
| 42 | #define ENOSPC 28 | ||
| 43 | #define ESPIPE 29 | ||
| 44 | #define EROFS 30 | ||
| 45 | #define EMLINK 31 | ||
| 46 | #define EPIPE 32 | ||
| 47 | #define EDOM 33 | ||
| 48 | #define ERANGE 34 | ||
| 49 | #define EUCLEAN 35 | ||
| 50 | #define EDEADLOCK 36 | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/FCNTL.H b/v4.0/src/TOOLS/BLD/INC/FCNTL.H new file mode 100644 index 0000000..08ad549 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/FCNTL.H | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | /*** | ||
| 2 | *fcntl.h - file control options used by open() | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This file defines constants for the file control options used | ||
| 8 | * by the open() function. | ||
| 9 | * [System V] | ||
| 10 | * | ||
| 11 | *******************************************************************************/ | ||
| 12 | |||
| 13 | #define O_RDONLY 0x0000 /* open for reading only */ | ||
| 14 | #define O_WRONLY 0x0001 /* open for writing only */ | ||
| 15 | #define O_RDWR 0x0002 /* open for reading and writing */ | ||
| 16 | #define O_APPEND 0x0008 /* writes done at eof */ | ||
| 17 | |||
| 18 | #define O_CREAT 0x0100 /* create and open file */ | ||
| 19 | #define O_TRUNC 0x0200 /* open and truncate */ | ||
| 20 | #define O_EXCL 0x0400 /* open only if file doesn't already exist */ | ||
| 21 | |||
| 22 | /* O_TEXT files have <cr><lf> sequences translated to <lf> on read()'s, | ||
| 23 | ** and <lf> sequences translated to <cr><lf> on write()'s | ||
| 24 | */ | ||
| 25 | |||
| 26 | #define O_TEXT 0x4000 /* file mode is text (translated) */ | ||
| 27 | #define O_BINARY 0x8000 /* file mode is binary (untranslated) */ | ||
| 28 | |||
| 29 | /* macro to translate the C 2.0 name used to force binary mode for files */ | ||
| 30 | |||
| 31 | #define O_RAW O_BINARY | ||
| 32 | |||
| 33 | /* Open handle inherit bit */ | ||
| 34 | |||
| 35 | #define O_NOINHERIT 0x0080 /* child process doesn't inherit file */ | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/FLOAT.H b/v4.0/src/TOOLS/BLD/INC/FLOAT.H new file mode 100644 index 0000000..2d73f85 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/FLOAT.H | |||
| @@ -0,0 +1,137 @@ | |||
| 1 | /*** | ||
| 2 | *float.h - constants for floating point values | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This file contains defines for a number of implementation dependent | ||
| 8 | * values which are commonly used by sophisticated numerical (floating | ||
| 9 | * point) programs. | ||
| 10 | * [ANSI] | ||
| 11 | * | ||
| 12 | *******************************************************************************/ | ||
| 13 | |||
| 14 | |||
| 15 | #ifndef NO_EXT_KEYS /* extensions enabled */ | ||
| 16 | #define _CDECL cdecl | ||
| 17 | #else /* extensions not enabled */ | ||
| 18 | #define _CDECL | ||
| 19 | #endif /* NO_EXT_KEYS */ | ||
| 20 | |||
| 21 | #define DBL_DIG 15 /* # of decimal digits of precision */ | ||
| 22 | #define DBL_EPSILON 2.2204460492503131e-016 /* smallest such that 1.0+DBL_EPSILON != 1.0 */ | ||
| 23 | #define DBL_MANT_DIG 53 /* # of bits in mantissa */ | ||
| 24 | #define DBL_MAX 1.7976931348623158e+308 /* max value */ | ||
| 25 | #define DBL_MAX_10_EXP 308 /* max decimal exponent */ | ||
| 26 | #define DBL_MAX_EXP 1024 /* max binary exponent */ | ||
| 27 | #define DBL_MIN 2.2250738585072014e-308 /* min positive value */ | ||
| 28 | #define DBL_MIN_10_EXP -307 /* min decimal exponent | ||
| 29 | #define DBL_MIN_EXP -1021 /* min binary exponent */ | ||
| 30 | #define DBL_RADIX 2 /* exponent radix */ | ||
| 31 | #define DBL_ROUNDS 0 /* addition rounding: chops */ | ||
| 32 | |||
| 33 | #define FLT_DIG 6 /* # of decimal digits of precision */ | ||
| 34 | #define FLT_EPSILON 1.192092896e-07 /* smallest such that 1.0+FLT_EPSILON != 1.0 */ | ||
| 35 | #define FLT_GUARD 0 | ||
| 36 | #define FLT_MANT_DIG 24 /* # of bits in mantissa */ | ||
| 37 | #define FLT_MAX 3.402823466e+38 /* max value */ | ||
| 38 | #define FLT_MAX_10_EXP 38 /* max decimal exponent */ | ||
| 39 | #define FLT_MAX_EXP 128 /* max binary exponent */ | ||
| 40 | #define FLT_MIN 1.175494351e-38 /* min positive value */ | ||
| 41 | #define FLT_MIN_10_EXP -37 /* min decimal exponent */ | ||
| 42 | #define FLT_MIN_EXP -125 /* min binary exponent */ | ||
| 43 | #define FLT_NORMALIZE 0 | ||
| 44 | #define FLT_RADIX 2 /* exponent radix */ | ||
| 45 | #define FLT_ROUNDS 0 /* addition rounding: chops */ | ||
| 46 | |||
| 47 | #define LDBL_DIG DBL_DIG /* # of decimal digits of precision */ | ||
| 48 | #define LDBL_EPSILON DBL_EPSILON /* smallest such that 1.0+LDBL_EPSILON != 1.0 */ | ||
| 49 | #define LDBL_MANT_DIG DBL_MANT_DIG /* # of bits in mantissa */ | ||
| 50 | #define LDBL_MAX DBL_MAX /* max value */ | ||
| 51 | #define LDBL_MAX_10_EXP DBL_MAX_10_EXP /* max decimal exponent */ | ||
| 52 | #define LDBL_MAX_EXP DBL_MAX_EXP /* max binary exponent */ | ||
| 53 | #define LDBL_MIN DBL_MIN /* min positive value */ | ||
| 54 | #define LDBL_MIN_10_EXP DBL_MIN_10_EXP /* min deimal exponent | ||
| 55 | #define LDBL_MIN_EXP DBL_MIN_EXP /* min binary exponent */ | ||
| 56 | #define LDBL_RADIX DBL_RADIX /* exponent radix */ | ||
| 57 | #define LDBL_ROUNDS DBL_ROUNDS /* addition rounding: chops */ | ||
| 58 | |||
| 59 | |||
| 60 | /* | ||
| 61 | * 8087/80287 math control information | ||
| 62 | */ | ||
| 63 | |||
| 64 | |||
| 65 | /* User Control Word Mask and bit definitions. | ||
| 66 | * These definitions match the 8087/80287 | ||
| 67 | */ | ||
| 68 | |||
| 69 | #define MCW_EM 0x003f /* interrupt Exception Masks */ | ||
| 70 | #define EM_INVALID 0x0001 /* invalid */ | ||
| 71 | #define EM_DENORMAL 0x0002 /* denormal */ | ||
| 72 | #define EM_ZERODIVIDE 0x0004 /* zero divide */ | ||
| 73 | #define EM_OVERFLOW 0x0008 /* overflow */ | ||
| 74 | #define EM_UNDERFLOW 0x0010 /* underflow */ | ||
| 75 | #define EM_INEXACT 0x0020 /* inexact (precision) */ | ||
| 76 | |||
| 77 | #define MCW_IC 0x1000 /* Infinity Control */ | ||
| 78 | #define IC_AFFINE 0x1000 /* affine */ | ||
| 79 | #define IC_PROJECTIVE 0x0000 /* projective */ | ||
| 80 | |||
| 81 | #define MCW_RC 0x0c00 /* Rounding Control */ | ||
| 82 | #define RC_CHOP 0x0c00 /* chop */ | ||
| 83 | #define RC_UP 0x0800 /* up */ | ||
| 84 | #define RC_DOWN 0x0400 /* down */ | ||
| 85 | #define RC_NEAR 0x0000 /* near */ | ||
| 86 | |||
| 87 | #define MCW_PC 0x0300 /* Precision Control */ | ||
| 88 | #define PC_24 0x0000 /* 24 bits */ | ||
| 89 | #define PC_53 0x0200 /* 53 bits */ | ||
| 90 | #define PC_64 0x0300 /* 64 bits */ | ||
| 91 | |||
| 92 | |||
| 93 | /* initial Control Word value */ | ||
| 94 | |||
| 95 | #define CW_DEFAULT ( IC_AFFINE + RC_NEAR + PC_64 + EM_DENORMAL + EM_UNDERFLOW + EM_INEXACT ) | ||
| 96 | |||
| 97 | |||
| 98 | /* user Status Word bit definitions */ | ||
| 99 | |||
| 100 | #define SW_INVALID 0x0001 /* invalid */ | ||
| 101 | #define SW_DENORMAL 0x0002 /* denormal */ | ||
| 102 | #define SW_ZERODIVIDE 0x0004 /* zero divide */ | ||
| 103 | #define SW_OVERFLOW 0x0008 /* overflow */ | ||
| 104 | #define SW_UNDERFLOW 0x0010 /* underflow */ | ||
| 105 | #define SW_INEXACT 0x0020 /* inexact (precision) */ | ||
| 106 | |||
| 107 | |||
| 108 | /* invalid subconditions (SW_INVALID also set) */ | ||
| 109 | |||
| 110 | #define SW_UNEMULATED 0x0040 /* unemulated instruction */ | ||
| 111 | #define SW_SQRTNEG 0x0080 /* square root of a neg number */ | ||
| 112 | #define SW_STACKOVERFLOW 0x0200 /* FP stack overflow */ | ||
| 113 | #define SW_STACKUNDERFLOW 0x0400 /* FP stack underflow */ | ||
| 114 | |||
| 115 | |||
| 116 | /* Floating point error signals and return codes */ | ||
| 117 | |||
| 118 | #define FPE_INVALID 0x81 | ||
| 119 | #define FPE_DENORMAL 0x82 | ||
| 120 | #define FPE_ZERODIVIDE 0x83 | ||
| 121 | #define FPE_OVERFLOW 0x84 | ||
| 122 | #define FPE_UNDERFLOW 0x85 | ||
| 123 | #define FPE_INEXACT 0x86 | ||
| 124 | |||
| 125 | #define FPE_UNEMULATED 0x87 | ||
| 126 | #define FPE_SQRTNEG 0x88 | ||
| 127 | #define FPE_STACKOVERFLOW 0x8a | ||
| 128 | #define FPE_STACKUNDERFLOW 0x8b | ||
| 129 | |||
| 130 | #define FPE_EXPLICITGEN 0x8c /* raise( SIGFPE ); */ | ||
| 131 | |||
| 132 | /* function prototypes */ | ||
| 133 | |||
| 134 | unsigned int _CDECL _clear87(void); | ||
| 135 | unsigned int _CDECL _control87(unsigned int,unsigned int); | ||
| 136 | void _CDECL _fpreset(void); | ||
| 137 | unsigned int _CDECL _status87(void); | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/GRAPH.H b/v4.0/src/TOOLS/BLD/INC/GRAPH.H new file mode 100644 index 0000000..7b69c51 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/GRAPH.H | |||
| @@ -0,0 +1,216 @@ | |||
| 1 | /*** | ||
| 2 | *graph.h - declare constants and functions for graphics library | ||
| 3 | * | ||
| 4 | * Copyright (c) 1987-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This file declares the graphics library functions and | ||
| 8 | * the manifest constants that are used with them. | ||
| 9 | * | ||
| 10 | *******************************************************************************/ | ||
| 11 | |||
| 12 | /* user-visible declarations for Quick-C Graphics Library */ | ||
| 13 | |||
| 14 | #ifndef _GRAPH_T_DEFINED | ||
| 15 | |||
| 16 | /* structure for _getvideoconfig() as visible to user */ | ||
| 17 | struct videoconfig { | ||
| 18 | short numxpixels; /* number of pixels on X axis */ | ||
| 19 | short numypixels; /* number of pixels on Y axis */ | ||
| 20 | short numtextcols; /* number of text columns available */ | ||
| 21 | short numtextrows; /* number of text rows available */ | ||
| 22 | short numcolors; /* number of actual colors */ | ||
| 23 | short bitsperpixel; /* number of bits per pixel */ | ||
| 24 | short numvideopages; /* number of available video pages */ | ||
| 25 | short mode; /* current video mode */ | ||
| 26 | short adapter; /* active display adapter */ | ||
| 27 | short monitor; /* active display monitor */ | ||
| 28 | short memory; /* adapter video memory in K bytes */ | ||
| 29 | }; | ||
| 30 | |||
| 31 | /* return value of _setlogorg(), etc. */ | ||
| 32 | struct xycoord { | ||
| 33 | short xcoord; | ||
| 34 | short ycoord; | ||
| 35 | }; | ||
| 36 | |||
| 37 | /* structure for text position */ | ||
| 38 | struct rccoord { | ||
| 39 | short row; | ||
| 40 | short col; | ||
| 41 | }; | ||
| 42 | |||
| 43 | #define _GRAPH_T_DEFINED | ||
| 44 | |||
| 45 | #endif | ||
| 46 | |||
| 47 | |||
| 48 | /* SETUP AND CONFIGURATION */ | ||
| 49 | |||
| 50 | short far cdecl _setvideomode(short); | ||
| 51 | |||
| 52 | /* arguments to _setvideomode() */ | ||
| 53 | #define _DEFAULTMODE -1 /* restore screen to original mode */ | ||
| 54 | #define _TEXTBW40 0 /* 40 x 25 text, 16 grey */ | ||
| 55 | #define _TEXTC40 1 /* 40 x 25 text, 16/8 color */ | ||
| 56 | #define _TEXTBW80 2 /* 80 x 25 text, 16 grey */ | ||
| 57 | #define _TEXTC80 3 /* 80 x 25 text, 16/8 color */ | ||
| 58 | #define _MRES4COLOR 4 /* 320 x 200, 4 color */ | ||
| 59 | #define _MRESNOCOLOR 5 /* 320 x 200, 4 grey */ | ||
| 60 | #define _HRESBW 6 /* 640 x 200, BW */ | ||
| 61 | #define _TEXTMONO 7 /* 80 x 25 text, BW */ | ||
| 62 | #define _HERCMONO 8 /* 720 x 348, BW for HGC */ | ||
| 63 | #define _MRES16COLOR 13 /* 320 x 200, 16 color */ | ||
| 64 | #define _HRES16COLOR 14 /* 640 x 200, 16 color */ | ||
| 65 | #define _ERESNOCOLOR 15 /* 640 x 350, BW */ | ||
| 66 | #define _ERESCOLOR 16 /* 640 x 350, 4 or 16 color */ | ||
| 67 | #define _VRES2COLOR 17 /* 640 x 480, BW */ | ||
| 68 | #define _VRES16COLOR 18 /* 640 x 480, 16 color */ | ||
| 69 | #define _MRES256COLOR 19 /* 320 x 200, 256 color */ | ||
| 70 | |||
| 71 | short far cdecl _setactivepage(short); | ||
| 72 | short far cdecl _setvisualpage(short); | ||
| 73 | |||
| 74 | /* videoconfig adapter values */ | ||
| 75 | /* these manifest constants can be used to determine the type of monitor in */ | ||
| 76 | /* use, using either simple comparisons or the bitwise-AND operator (&) */ | ||
| 77 | #define _MDPA 0x0001 /* Monochrome Display Adapter (MDPA) */ | ||
| 78 | #define _CGA 0x0002 /* Color Graphics Adapter (CGA) */ | ||
| 79 | #define _EGA 0x0004 /* Enhanced Graphics Adapter (EGA) */ | ||
| 80 | #define _VGA 0x0008 /* Video Graphics Array (VGA) */ | ||
| 81 | #define _MCGA 0x0010 /* MultiColor Graphics Array (MCGA) */ | ||
| 82 | #define _HGC 0x0020 /* Hercules Graphics Card (HGC) */ | ||
| 83 | |||
| 84 | /* videoconfig monitor values */ | ||
| 85 | /* these manifest constants can be used to determine the type of the active */ | ||
| 86 | /* adapter, using either simple comparisons or the bitwise-AND operator (&) */ | ||
| 87 | #define _MONO 0x0001 /* Monochrome */ | ||
| 88 | #define _COLOR 0x0002 /* Color (or Enhanced emulating color) */ | ||
| 89 | #define _ENHCOLOR 0x0004 /* Enhanced Color */ | ||
| 90 | #define _ANALOG 0x0018 /* Analog */ | ||
| 91 | |||
| 92 | struct videoconfig far * far cdecl _getvideoconfig(struct videoconfig far *); | ||
| 93 | |||
| 94 | |||
| 95 | /* COORDINATE SYSTEMS */ | ||
| 96 | |||
| 97 | struct xycoord far cdecl _setlogorg(short, short); | ||
| 98 | struct xycoord far cdecl _getlogcoord(short, short); | ||
| 99 | struct xycoord far cdecl _getphyscoord(short, short); | ||
| 100 | |||
| 101 | void far cdecl _setcliprgn(short, short, short, short); | ||
| 102 | void far cdecl _setviewport(short, short, short, short); | ||
| 103 | |||
| 104 | |||
| 105 | /* OUTPUT ROUTINES */ | ||
| 106 | |||
| 107 | /* control parameters for Rectangle, Ellipse and Pie */ | ||
| 108 | #define _GBORDER 2 /* draw outline only */ | ||
| 109 | #define _GFILLINTERIOR 3 /* fill using current fill mask */ | ||
| 110 | |||
| 111 | #define _GCLEARSCREEN 0 | ||
| 112 | #define _GVIEWPORT 1 | ||
| 113 | #define _GWINDOW 2 | ||
| 114 | |||
| 115 | void far cdecl _clearscreen(short); | ||
| 116 | |||
| 117 | struct xycoord far cdecl _moveto(short, short); | ||
| 118 | struct xycoord far cdecl _getcurrentposition(void); | ||
| 119 | |||
| 120 | short far cdecl _lineto(short, short); | ||
| 121 | short far cdecl _rectangle(short, short, short, short, short); | ||
| 122 | short far cdecl _ellipse(short, short, short, short, short); | ||
| 123 | short far cdecl _arc(short, short, short, short, short, short, short, short); | ||
| 124 | short far cdecl _pie(short, short, short, short, short, short, short, short, short); | ||
| 125 | |||
| 126 | short far cdecl _setpixel(short, short); | ||
| 127 | short far cdecl _getpixel(short, short); | ||
| 128 | short far cdecl _floodfill(short, short, short); | ||
| 129 | |||
| 130 | |||
| 131 | /* PEN COLOR, LINE STYLE, FILL PATTERN */ | ||
| 132 | |||
| 133 | short far cdecl _setcolor(short); | ||
| 134 | short far cdecl _getcolor(void); | ||
| 135 | |||
| 136 | void far cdecl _setlinestyle(unsigned short); | ||
| 137 | unsigned short far cdecl _getlinestyle(void); | ||
| 138 | |||
| 139 | void far cdecl _setfillmask(unsigned char far *); | ||
| 140 | unsigned char far * far cdecl _getfillmask(unsigned char far *); | ||
| 141 | |||
| 142 | /* COLOR SELECTION */ | ||
| 143 | |||
| 144 | long far cdecl _setbkcolor(long); | ||
| 145 | long far cdecl _getbkcolor(void); | ||
| 146 | |||
| 147 | long far cdecl _remappalette(short, long); | ||
| 148 | short far cdecl _remapallpalette(long far *); | ||
| 149 | short far cdecl _selectpalette(short); | ||
| 150 | |||
| 151 | |||
| 152 | /* TEXT */ | ||
| 153 | #define _GCURSOROFF 0 | ||
| 154 | #define _GCURSORON 1 | ||
| 155 | |||
| 156 | #define _GWRAPOFF 0 | ||
| 157 | #define _GWRAPON 1 | ||
| 158 | |||
| 159 | void far cdecl _settextwindow(short, short, short, short); | ||
| 160 | void far cdecl _outtext(char far *); | ||
| 161 | short far cdecl _wrapon(short); | ||
| 162 | short far cdecl _displaycursor(short); | ||
| 163 | |||
| 164 | struct rccoord far cdecl _settextposition(short, short); | ||
| 165 | struct rccoord far cdecl _gettextposition(void); | ||
| 166 | |||
| 167 | short far cdecl _settextcolor(short); | ||
| 168 | short far cdecl _gettextcolor(void); | ||
| 169 | |||
| 170 | |||
| 171 | /* SCREEN IMAGES */ | ||
| 172 | |||
| 173 | void far cdecl _getimage(short, short, short, short, char far *); | ||
| 174 | void far cdecl _putimage(short, short, char far *, short); | ||
| 175 | long far cdecl _imagesize(short, short, short, short); | ||
| 176 | |||
| 177 | /* "action verbs" for _putimage() */ | ||
| 178 | #define _GPSET 3 | ||
| 179 | #define _GPRESET 2 | ||
| 180 | #define _GAND 1 | ||
| 181 | #define _GOR 0 | ||
| 182 | #define _GXOR 4 | ||
| 183 | |||
| 184 | /* universal color values: */ | ||
| 185 | #define _BLACK 0x000000L | ||
| 186 | #define _BLUE 0x2a0000L | ||
| 187 | #define _GREEN 0x002a00L | ||
| 188 | #define _CYAN 0x2a2a00L | ||
| 189 | #define _RED 0x00002aL | ||
| 190 | #define _MAGENTA 0x2a002aL | ||
| 191 | #define _BROWN 0x00152aL | ||
| 192 | #define _WHITE 0x2a2a2aL | ||
| 193 | #define _GRAY 0x151515L | ||
| 194 | #define _LIGHTBLUE 0x3F1515L | ||
| 195 | #define _LIGHTGREEN 0x153f15L | ||
| 196 | #define _LIGHTCYAN 0x3f3f15L | ||
| 197 | #define _LIGHTRED 0x15153fL | ||
| 198 | #define _LIGHTMAGENTA 0x3f153fL | ||
| 199 | #define _LIGHTYELLOW 0x153f3fL | ||
| 200 | #define _BRIGHTWHITE 0x3f3f3fL | ||
| 201 | |||
| 202 | /* mono mode F color values: */ | ||
| 203 | #define _MODEFOFF 0L | ||
| 204 | #define _MODEFOFFTOON 1L | ||
| 205 | #define _MODEFOFFTOHI 2L | ||
| 206 | #define _MODEFONTOOFF 3L | ||
| 207 | #define _MODEFON 4L | ||
| 208 | #define _MODEFONTOHI 5L | ||
| 209 | #define _MODEFHITOOFF 6L | ||
| 210 | #define _MODEFHITOON 7L | ||
| 211 | #define _MODEFHI 8L | ||
| 212 | |||
| 213 | /* mono mode 7 color values: */ | ||
| 214 | #define _MODE7OFF 0L | ||
| 215 | #define _MODE7ON 1L | ||
| 216 | #define _MODE7HI 2L | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/IO.H b/v4.0/src/TOOLS/BLD/INC/IO.H new file mode 100644 index 0000000..7261295 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/IO.H | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | /*** | ||
| 2 | *io.h - declarations for low-level file handling and I/O functions | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This file contains the function declarations for the low-level | ||
| 8 | * file handling and I/O functions. | ||
| 9 | * | ||
| 10 | *******************************************************************************/ | ||
| 11 | |||
| 12 | |||
| 13 | #ifndef NO_EXT_KEYS /* extensions enabled */ | ||
| 14 | #define _CDECL cdecl | ||
| 15 | #else /* extensions not enabled */ | ||
| 16 | #define _CDECL | ||
| 17 | #endif /* NO_EXT_KEYS */ | ||
| 18 | |||
| 19 | /* function prototypes */ | ||
| 20 | |||
| 21 | int _CDECL access(char *, int); | ||
| 22 | int _CDECL chmod(char *, int); | ||
| 23 | int _CDECL chsize(int, long); | ||
| 24 | int _CDECL close(int); | ||
| 25 | int _CDECL creat(char *, int); | ||
| 26 | int _CDECL dup(int); | ||
| 27 | int _CDECL dup2(int, int); | ||
| 28 | int _CDECL eof(int); | ||
| 29 | long _CDECL filelength(int); | ||
| 30 | int _CDECL isatty(int); | ||
| 31 | int _CDECL locking(int, int, long); | ||
| 32 | long _CDECL lseek(int, long, int); | ||
| 33 | char * _CDECL mktemp(char *); | ||
| 34 | int _CDECL open(char *, int, ...); | ||
| 35 | int _CDECL read(int, char *, unsigned int); | ||
| 36 | int _CDECL remove(const char *); | ||
| 37 | int _CDECL rename(const char *, const char *); | ||
| 38 | int _CDECL setmode(int, int); | ||
| 39 | int _CDECL sopen(char *, int, int, ...); | ||
| 40 | long _CDECL tell(int); | ||
| 41 | int _CDECL umask(int); | ||
| 42 | int _CDECL unlink(const char *); | ||
| 43 | int _CDECL write(int, char *, unsigned int); | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/LIMITS.H b/v4.0/src/TOOLS/BLD/INC/LIMITS.H new file mode 100644 index 0000000..21e907f --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/LIMITS.H | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | /*** | ||
| 2 | *limits.h - implementation dependent values | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * contains defines for a number of implementation dependent values | ||
| 8 | * which are commonly used in C programs. | ||
| 9 | * [ANSI] | ||
| 10 | * | ||
| 11 | *******************************************************************************/ | ||
| 12 | |||
| 13 | #ifndef _CHAR_UNSIGNED | ||
| 14 | #define CHAR_MAX 127 /* maximum char value */ | ||
| 15 | #define CHAR_MIN -127 /* mimimum char value */ | ||
| 16 | #else | ||
| 17 | #define CHAR_MAX 255 | ||
| 18 | #define CHAR_MIN 0 | ||
| 19 | #endif | ||
| 20 | #define SCHAR_MAX 127 /* maximum signed char value */ | ||
| 21 | #define SCHAR_MIN -127 /* minimum signed char value */ | ||
| 22 | #define UCHAR_MAX 255 /* maximum unsigned char value */ | ||
| 23 | #define CHAR_BIT 8 /* number of bits in a char */ | ||
| 24 | #define USHRT_MAX 0xffff /* maximum unsigned short value */ | ||
| 25 | #define SHRT_MAX 32767 /* maximum (signed) short value */ | ||
| 26 | #define SHRT_MIN -32767 /* minimum (signed) short value */ | ||
| 27 | #define UINT_MAX 0xffff /* maximum unsigned int value */ | ||
| 28 | #define ULONG_MAX 0xffffffff /* maximum unsigned long value */ | ||
| 29 | #define INT_MAX 32767 /* maximum (signed) int value */ | ||
| 30 | #define INT_MIN -32767 /* minimum (signed) int value */ | ||
| 31 | #define LONG_MAX 2147483647 /* maximum (signed) long value */ | ||
| 32 | #define LONG_MIN -2147483647 /* minimum (signed) long value */ | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/MALLOC.H b/v4.0/src/TOOLS/BLD/INC/MALLOC.H new file mode 100644 index 0000000..e2aa979 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/MALLOC.H | |||
| @@ -0,0 +1,124 @@ | |||
| 1 | /*** | ||
| 2 | *malloc.h - declarations and definitions for memory allocation functions | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * Contains the function declarations for memory allocation functions; | ||
| 8 | * also defines manifest constants and types used by the heap routines. | ||
| 9 | * [System V] | ||
| 10 | * | ||
| 11 | *******************************************************************************/ | ||
| 12 | |||
| 13 | |||
| 14 | #define _HEAPEMPTY -1 | ||
| 15 | #define _HEAPOK -2 | ||
| 16 | #define _HEAPBADBEGIN -3 | ||
| 17 | #define _HEAPBADNODE -4 | ||
| 18 | #define _HEAPEND -5 | ||
| 19 | #define _HEAPBADPTR -6 | ||
| 20 | #define _FREEENTRY 0 | ||
| 21 | #define _USEDENTRY 1 | ||
| 22 | |||
| 23 | #ifndef _SIZE_T_DEFINED | ||
| 24 | typedef unsigned int size_t; | ||
| 25 | #define _SIZE_T_DEFINED | ||
| 26 | #endif | ||
| 27 | |||
| 28 | #if (!defined(NO_EXT_KEYS)) | ||
| 29 | |||
| 30 | #ifndef _HEAPINFO_DEFINED | ||
| 31 | typedef struct _heapinfo { | ||
| 32 | int far * _pentry; | ||
| 33 | size_t _size; | ||
| 34 | int _useflag; | ||
| 35 | } _HEAPINFO; | ||
| 36 | #define _HEAPINFO_DEFINED | ||
| 37 | #endif | ||
| 38 | |||
| 39 | #else /* NO_EXT_KEYS */ | ||
| 40 | #if (defined(M_I86CM) || defined(M_I86LM) || defined(M_I86HM)) | ||
| 41 | |||
| 42 | #ifndef _HEAPINFO_DEFINED | ||
| 43 | |||
| 44 | typedef struct _heapinfo { | ||
| 45 | int * _pentry; | ||
| 46 | size_t _size; | ||
| 47 | int _useflag; | ||
| 48 | } _HEAPINFO; | ||
| 49 | |||
| 50 | #define _HEAPINFO_DEFINED | ||
| 51 | #endif | ||
| 52 | |||
| 53 | #endif /* M_I86CM || M_I86LM || M_I86HM */ | ||
| 54 | |||
| 55 | #endif /* NO_EXT_KEYS */ | ||
| 56 | |||
| 57 | |||
| 58 | #if (defined(M_I86SM) || defined(M_I86MM)) | ||
| 59 | #define _heapchk _nheapchk | ||
| 60 | #define _heapset _nheapset | ||
| 61 | #define _heapwalk _nheapwalk | ||
| 62 | #endif | ||
| 63 | #if (defined(M_I86CM) || defined(M_I86LM) || defined(M_I86HM)) | ||
| 64 | #define _heapchk _fheapchk | ||
| 65 | #define _heapset _fheapset | ||
| 66 | #define _heapwalk _fheapwalk | ||
| 67 | #endif | ||
| 68 | |||
| 69 | #ifndef NO_EXT_KEYS /* extensions enabled */ | ||
| 70 | #define _CDECL cdecl | ||
| 71 | #define _NEAR near | ||
| 72 | #else /* extensions not enabled */ | ||
| 73 | #define _CDECL | ||
| 74 | #define _NEAR | ||
| 75 | #endif /* NO_EXT_KEYS */ | ||
| 76 | |||
| 77 | |||
| 78 | /* external variable declarations */ | ||
| 79 | extern unsigned int _NEAR _CDECL _amblksiz; | ||
| 80 | |||
| 81 | /* function prototypes */ | ||
| 82 | |||
| 83 | void * _CDECL alloca(size_t); | ||
| 84 | void * _CDECL calloc(size_t, size_t); | ||
| 85 | void * _CDECL _expand(void *, size_t); | ||
| 86 | int _CDECL _fheapchk(void); | ||
| 87 | int _CDECL _fheapset(unsigned int); | ||
| 88 | unsigned int _CDECL _freect(size_t); | ||
| 89 | void _CDECL free(void *); | ||
| 90 | void * _CDECL malloc(size_t); | ||
| 91 | size_t _CDECL _memavl(void); | ||
| 92 | size_t _CDECL _memmax(void); | ||
| 93 | size_t _CDECL _msize(void *); | ||
| 94 | int _CDECL _nheapchk(void); | ||
| 95 | int _CDECL _nheapset(unsigned int); | ||
| 96 | void * _CDECL realloc(void *, size_t); | ||
| 97 | void * _CDECL sbrk(int); | ||
| 98 | size_t _CDECL stackavail(void); | ||
| 99 | |||
| 100 | |||
| 101 | #ifndef NO_EXT_KEYS /* extensions enabled */ | ||
| 102 | |||
| 103 | void cdecl _ffree(void far *); | ||
| 104 | void far * cdecl _fmalloc(size_t); | ||
| 105 | size_t cdecl _fmsize(void far *); | ||
| 106 | #ifndef _QC | ||
| 107 | void huge * cdecl halloc(long, size_t); | ||
| 108 | void cdecl hfree(void huge *); | ||
| 109 | #endif | ||
| 110 | void cdecl _nfree(void near *); | ||
| 111 | void near * cdecl _nmalloc(size_t); | ||
| 112 | size_t cdecl _nmsize(void near *); | ||
| 113 | int cdecl _nheapwalk(struct _heapinfo *); | ||
| 114 | int cdecl _fheapwalk(struct _heapinfo *); | ||
| 115 | |||
| 116 | #else | ||
| 117 | #if (defined(M_I86CM) || defined(M_I86LM) || defined(M_I86HM)) | ||
| 118 | |||
| 119 | int _nheapwalk(struct _heapinfo *); | ||
| 120 | int _fheapwalk(struct _heapinfo *); | ||
| 121 | |||
| 122 | #endif /* M_I86CM || M_I86LM || M_I86HM */ | ||
| 123 | |||
| 124 | #endif /* NO_EXT_KEYS */ | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/MATH.H b/v4.0/src/TOOLS/BLD/INC/MATH.H new file mode 100644 index 0000000..9c0e701 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/MATH.H | |||
| @@ -0,0 +1,112 @@ | |||
| 1 | /*** | ||
| 2 | *math.h - definitions and declarations for math library | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This file contains constant definitions and external subroutine | ||
| 8 | * declarations for the math subroutine library. | ||
| 9 | * [ANSI/System V] | ||
| 10 | * | ||
| 11 | *******************************************************************************/ | ||
| 12 | |||
| 13 | |||
| 14 | #ifndef NO_EXT_KEYS /* extensions enabled */ | ||
| 15 | #define _CDECL cdecl | ||
| 16 | #else /* extensions not enabled */ | ||
| 17 | #define _CDECL | ||
| 18 | #endif /* NO_EXT_KEYS */ | ||
| 19 | |||
| 20 | |||
| 21 | /* definition of exception struct - this struct is passed to the matherr | ||
| 22 | * routine when a floating point exception is detected | ||
| 23 | */ | ||
| 24 | |||
| 25 | #ifndef _EXCEPTION_DEFINED | ||
| 26 | struct exception { | ||
| 27 | int type; /* exception type - see below */ | ||
| 28 | char *name; /* name of function where error occured */ | ||
| 29 | double arg1; /* first argument to function */ | ||
| 30 | double arg2; /* second argument (if any) to function */ | ||
| 31 | double retval; /* value to be returned by function */ | ||
| 32 | } ; | ||
| 33 | #define _EXCEPTION_DEFINED | ||
| 34 | #endif | ||
| 35 | |||
| 36 | |||
| 37 | /* definition of a complex struct to be used by those who use cabs and | ||
| 38 | * want type checking on their argument | ||
| 39 | */ | ||
| 40 | |||
| 41 | #ifndef _COMPLEX_DEFINED | ||
| 42 | struct complex { | ||
| 43 | double x,y; /* real and imaginary parts */ | ||
| 44 | } ; | ||
| 45 | #define _COMPLEX_DEFINED | ||
| 46 | #endif | ||
| 47 | |||
| 48 | |||
| 49 | /* Constant definitions for the exception type passed in the exception struct | ||
| 50 | */ | ||
| 51 | |||
| 52 | #define DOMAIN 1 /* argument domain error */ | ||
| 53 | #define SING 2 /* argument singularity */ | ||
| 54 | #define OVERFLOW 3 /* overflow range error */ | ||
| 55 | #define UNDERFLOW 4 /* underflow range error */ | ||
| 56 | #define TLOSS 5 /* total loss of precision */ | ||
| 57 | #define PLOSS 6 /* partial loss of precision */ | ||
| 58 | |||
| 59 | #define EDOM 33 | ||
| 60 | #define ERANGE 34 | ||
| 61 | |||
| 62 | |||
| 63 | /* definitions of HUGE and HUGE_VAL - respectively the XENIX and ANSI names | ||
| 64 | * for a value returned in case of error by a number of the floating point | ||
| 65 | * math routines | ||
| 66 | */ | ||
| 67 | |||
| 68 | extern double HUGE; | ||
| 69 | #define HUGE_VAL HUGE | ||
| 70 | |||
| 71 | |||
| 72 | |||
| 73 | /* function prototypes */ | ||
| 74 | |||
| 75 | int _CDECL abs(int); | ||
| 76 | double _CDECL acos(double); | ||
| 77 | double _CDECL asin(double); | ||
| 78 | double _CDECL atan(double); | ||
| 79 | double _CDECL atan2(double, double); | ||
| 80 | double _CDECL atof(const char *); | ||
| 81 | double _CDECL cabs(struct complex); | ||
| 82 | double _CDECL ceil(double); | ||
| 83 | double _CDECL cos(double); | ||
| 84 | double _CDECL cosh(double); | ||
| 85 | int _CDECL dieeetomsbin(double *, double *); | ||
| 86 | int _CDECL dmsbintoieee(double *, double *); | ||
| 87 | double _CDECL exp(double); | ||
| 88 | double _CDECL fabs(double); | ||
| 89 | int _CDECL fieeetomsbin(float *, float *); | ||
| 90 | double _CDECL floor(double); | ||
| 91 | double _CDECL fmod(double, double); | ||
| 92 | int _CDECL fmsbintoieee(float *, float *); | ||
| 93 | double _CDECL frexp(double, int *); | ||
| 94 | double _CDECL hypot(double, double); | ||
| 95 | double _CDECL j0(double); | ||
| 96 | double _CDECL j1(double); | ||
| 97 | double _CDECL jn(int, double); | ||
| 98 | long _CDECL labs(long); | ||
| 99 | double _CDECL ldexp(double, int); | ||
| 100 | double _CDECL log(double); | ||
| 101 | double _CDECL log10(double); | ||
| 102 | int _CDECL matherr(struct exception *); | ||
| 103 | double _CDECL modf(double, double *); | ||
| 104 | double _CDECL pow(double, double); | ||
| 105 | double _CDECL sin(double); | ||
| 106 | double _CDECL sinh(double); | ||
| 107 | double _CDECL sqrt(double); | ||
| 108 | double _CDECL tan(double); | ||
| 109 | double _CDECL tanh(double); | ||
| 110 | double _CDECL y0(double); | ||
| 111 | double _CDECL y1(double); | ||
| 112 | double _CDECL yn(int, double); | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/MEMORY.H b/v4.0/src/TOOLS/BLD/INC/MEMORY.H new file mode 100644 index 0000000..519b71d --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/MEMORY.H | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | /*** | ||
| 2 | *memory.h - declarations for buffer (memory) manipulation routines | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This include file contains the function declarations for the | ||
| 8 | * buffer (memory) manipulation routines. | ||
| 9 | * [System V] | ||
| 10 | * | ||
| 11 | *******************************************************************************/ | ||
| 12 | |||
| 13 | |||
| 14 | #ifndef _SIZE_T_DEFINED | ||
| 15 | typedef unsigned int size_t; | ||
| 16 | #define _SIZE_T_DEFINED | ||
| 17 | #endif | ||
| 18 | |||
| 19 | #ifndef NO_EXT_KEYS /* extensions enabled */ | ||
| 20 | #define _CDECL cdecl | ||
| 21 | #else /* extensions not enabled */ | ||
| 22 | #define _CDECL | ||
| 23 | #endif /* NO_EXT_KEYS */ | ||
| 24 | |||
| 25 | |||
| 26 | /* function prototypes */ | ||
| 27 | |||
| 28 | void * _CDECL memccpy(void *, void *, int, unsigned int); | ||
| 29 | void * _CDECL memchr(const void *, int, size_t); | ||
| 30 | int _CDECL memcmp(const void *, const void *, size_t); | ||
| 31 | void * _CDECL memcpy(void *, const void *, size_t); | ||
| 32 | int _CDECL memicmp(void *, void *, unsigned int); | ||
| 33 | void * _CDECL memset(void *, int, size_t); | ||
| 34 | void _CDECL movedata(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int); | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/PROCESS.H b/v4.0/src/TOOLS/BLD/INC/PROCESS.H new file mode 100644 index 0000000..f0c85f3 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/PROCESS.H | |||
| @@ -0,0 +1,65 @@ | |||
| 1 | /*** | ||
| 2 | *process.h - definition and declarations for process control functions | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This file defines the modeflag values for spawnxx calls. Only | ||
| 8 | * P_WAIT and P_OVERLAY are currently implemented on DOS 2 & 3. | ||
| 9 | * P_NOWAIT is also enabled on DOS 4. Also contains the function | ||
| 10 | * argument declarations for all process control related routines. | ||
| 11 | * | ||
| 12 | *******************************************************************************/ | ||
| 13 | |||
| 14 | |||
| 15 | #ifndef NO_EXT_KEYS /* extensions enabled */ | ||
| 16 | #define _CDECL cdecl | ||
| 17 | #define _NEAR near | ||
| 18 | #else /* extensions not enabled */ | ||
| 19 | #define _CDECL | ||
| 20 | #define _NEAR | ||
| 21 | #endif /* NO_EXT_KEYS */ | ||
| 22 | |||
| 23 | |||
| 24 | /* modeflag values for spawnxx routines */ | ||
| 25 | |||
| 26 | extern int _NEAR _CDECL _p_overlay; | ||
| 27 | |||
| 28 | #define P_WAIT 0 | ||
| 29 | #define P_NOWAIT 1 | ||
| 30 | #define P_OVERLAY _p_overlay | ||
| 31 | #define OLD_P_OVERLAY 2 | ||
| 32 | #define P_NOWAITO 3 | ||
| 33 | |||
| 34 | |||
| 35 | /* Action Codes used with Cwait() */ | ||
| 36 | |||
| 37 | #define WAIT_CHILD 0 | ||
| 38 | #define WAIT_GRANDCHILD 1 | ||
| 39 | |||
| 40 | |||
| 41 | /* function prototypes */ | ||
| 42 | |||
| 43 | void _CDECL abort(void); | ||
| 44 | int _CDECL cwait(int *, int, int); | ||
| 45 | int _CDECL execl(char *, char *, ...); | ||
| 46 | int _CDECL execle(char *, char *, ...); | ||
| 47 | int _CDECL execlp(char *, char *, ...); | ||
| 48 | int _CDECL execlpe(char *, char *, ...); | ||
| 49 | int _CDECL execv(char *, char * *); | ||
| 50 | int _CDECL execve(char *, char * *, char * *); | ||
| 51 | int _CDECL execvp(char *, char * *); | ||
| 52 | int _CDECL execvpe(char *, char * *, char * *); | ||
| 53 | void _CDECL exit(int); | ||
| 54 | void _CDECL _exit(int); | ||
| 55 | int _CDECL getpid(void); | ||
| 56 | int _CDECL spawnl(int, char *, char *, ...); | ||
| 57 | int _CDECL spawnle(int, char *, char *, ...); | ||
| 58 | int _CDECL spawnlp(int, char *, char *, ...); | ||
| 59 | int _CDECL spawnlpe(int, char *, char *, ...); | ||
| 60 | int _CDECL spawnv(int, char *, char * *); | ||
| 61 | int _CDECL spawnve(int, char *, char * *, char * *); | ||
| 62 | int _CDECL spawnvp(int, char *, char * *); | ||
| 63 | int _CDECL spawnvpe(int, char *, char * *, char * *); | ||
| 64 | int _CDECL system(const char *); | ||
| 65 | int _CDECL wait(int *); | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/SEARCH.H b/v4.0/src/TOOLS/BLD/INC/SEARCH.H new file mode 100644 index 0000000..88ea976 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/SEARCH.H | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | /*** | ||
| 2 | *search.h - declarations for searcing/sorting routines | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This file contains the declarations for the sorting and | ||
| 8 | * searching routines. | ||
| 9 | * [System V] | ||
| 10 | * | ||
| 11 | *******************************************************************************/ | ||
| 12 | |||
| 13 | |||
| 14 | #ifndef _SIZE_T_DEFINED | ||
| 15 | typedef unsigned int size_t; | ||
| 16 | #define _SIZE_T_DEFINED | ||
| 17 | #endif | ||
| 18 | |||
| 19 | #ifndef NO_EXT_KEYS /* extensions enabled */ | ||
| 20 | #define _CDECL cdecl | ||
| 21 | #else /* extensions not enabled */ | ||
| 22 | #define _CDECL | ||
| 23 | #endif /* NO_EXT_KEYS */ | ||
| 24 | |||
| 25 | |||
| 26 | /* function prototypes */ | ||
| 27 | |||
| 28 | char * _CDECL lsearch(char *, char *, unsigned int *, unsigned int, int (_CDECL *)(void *, void *)); | ||
| 29 | char * _CDECL lfind(char *, char *, unsigned int *, unsigned int, int (_CDECL *)(void *, void *)); | ||
| 30 | void * _CDECL bsearch(const void *, const void *, size_t, size_t, int (_CDECL *)(const void *, const void *)); | ||
| 31 | void _CDECL qsort(void *, size_t, size_t, int (_CDECL *)(const void *, const void *)); | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/SETJMP.H b/v4.0/src/TOOLS/BLD/INC/SETJMP.H new file mode 100644 index 0000000..6f74793 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/SETJMP.H | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | /*** | ||
| 2 | *setjmp.h - definitions/declarations for setjmp/longjmp routines | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This file defines the machine-dependent buffer used by | ||
| 8 | * setjmp/longjmp to save and restore the program state, and | ||
| 9 | * declarations for those routines. | ||
| 10 | * [ANSI/System V] | ||
| 11 | * | ||
| 12 | *******************************************************************************/ | ||
| 13 | |||
| 14 | |||
| 15 | #ifndef NO_EXT_KEYS /* extensions enabled */ | ||
| 16 | #define _CDECL cdecl | ||
| 17 | #else /* extensions not enabled */ | ||
| 18 | #define _CDECL | ||
| 19 | #endif /* NO_EXT_KEYS */ | ||
| 20 | |||
| 21 | |||
| 22 | /* define the buffer type for holding the state information */ | ||
| 23 | |||
| 24 | #define _JBLEN 9 /* bp, di, si, sp, ret addr, ds */ | ||
| 25 | |||
| 26 | #ifndef _JMP_BUF_DEFINED | ||
| 27 | typedef int jmp_buf[_JBLEN]; | ||
| 28 | #define _JMP_BUF_DEFINED | ||
| 29 | #endif | ||
| 30 | |||
| 31 | |||
| 32 | /* function prototypes */ | ||
| 33 | |||
| 34 | int _CDECL setjmp(jmp_buf); | ||
| 35 | void _CDECL longjmp(jmp_buf, int); | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/SHARE.H b/v4.0/src/TOOLS/BLD/INC/SHARE.H new file mode 100644 index 0000000..2a34f71 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/SHARE.H | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | /*** | ||
| 2 | *share.h - defines file sharing modes for sopen | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This file defines the file sharing modes for sopen(). | ||
| 8 | * | ||
| 9 | *******************************************************************************/ | ||
| 10 | |||
| 11 | #define SH_COMPAT 0x00 /* compatibility mode */ | ||
| 12 | #define SH_DENYRW 0x10 /* deny read/write mode */ | ||
| 13 | #define SH_DENYWR 0x20 /* deny write mode */ | ||
| 14 | #define SH_DENYRD 0x30 /* deny read mode */ | ||
| 15 | #define SH_DENYNO 0x40 /* deny none mode */ | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/SIGNAL.H b/v4.0/src/TOOLS/BLD/INC/SIGNAL.H new file mode 100644 index 0000000..18b8f10 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/SIGNAL.H | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | /*** | ||
| 2 | *signal.h - defines signal values and routines | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This file defines the signal values and declares the signal functions. | ||
| 8 | * [ANSI/System V] | ||
| 9 | * | ||
| 10 | *******************************************************************************/ | ||
| 11 | |||
| 12 | |||
| 13 | #ifndef NO_EXT_KEYS /* extensions enabled */ | ||
| 14 | #define _CDECL cdecl | ||
| 15 | #else /* extensions not enabled */ | ||
| 16 | #define _CDECL | ||
| 17 | #endif /* NO_EXT_KEYS */ | ||
| 18 | |||
| 19 | #ifndef _SIG_ATOMIC_T_DEFINED | ||
| 20 | typedef int sig_atomic_t; | ||
| 21 | #define _SIG_ATOMIC_T_DEFINED | ||
| 22 | #endif | ||
| 23 | |||
| 24 | |||
| 25 | #define NSIG 23 /* maximum signal number + 1 */ | ||
| 26 | |||
| 27 | /* signal types */ | ||
| 28 | /* SIGINT, SIGFPE, SIGILL, SIGSEGV, and SIGABRT are recognized on DOS 3.x */ | ||
| 29 | |||
| 30 | #define SIGINT 2 /* interrupt - corresponds to DOS 3.x int 23H */ | ||
| 31 | #define SIGILL 4 /* illegal instruction - invalid function image */ | ||
| 32 | #define SIGFPE 8 /* floating point exception */ | ||
| 33 | #define SIGSEGV 11 /* segment violation */ | ||
| 34 | #define SIGTERM 15 /* Software termination signal from kill */ | ||
| 35 | #define SIGUSR1 16 /* User defined signal 1 */ | ||
| 36 | #define SIGUSR2 17 /* User defined signal 2 */ | ||
| 37 | #define SIGUSR3 20 /* User defined signal 3 */ | ||
| 38 | #define SIGBREAK 21 /* Ctrl-Break sequence */ | ||
| 39 | #define SIGABRT 22 /* abnormal termination triggered by abort call */ | ||
| 40 | |||
| 41 | |||
| 42 | /* signal action codes */ | ||
| 43 | /* SIG_DFL and SIG_IGN are recognized on DOS 3.x */ | ||
| 44 | |||
| 45 | #define SIG_DFL (void (*)())0 /* default signal action */ | ||
| 46 | #define SIG_IGN (void (*)())1 /* ignore */ | ||
| 47 | #define SIG_SGE (void (*)())3 /* signal gets error */ | ||
| 48 | #define SIG_ACK (void (*)())4 /* error if handler not setup */ | ||
| 49 | |||
| 50 | |||
| 51 | /* signal error value (returned by signal call on error) */ | ||
| 52 | |||
| 53 | #define SIG_ERR (void (*)())-1 /* signal error value */ | ||
| 54 | |||
| 55 | |||
| 56 | /* function prototypes */ | ||
| 57 | |||
| 58 | void (_CDECL * _CDECL signal(int, void (_CDECL *)()))(); | ||
| 59 | int _CDECL raise(int); | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/STDARG.H b/v4.0/src/TOOLS/BLD/INC/STDARG.H new file mode 100644 index 0000000..d261cfa --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/STDARG.H | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | /*** | ||
| 2 | *stdarg.h - defines ANSI-style macros for variable argument functions | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This file defines ANSI-style macros for accessing arguments | ||
| 8 | * of functions which take a variable number of arguments. | ||
| 9 | * [ANSI] | ||
| 10 | * | ||
| 11 | *******************************************************************************/ | ||
| 12 | |||
| 13 | #ifndef _VA_LIST_DEFINED | ||
| 14 | typedef char *va_list; | ||
| 15 | #define _VA_LIST_DEFINED | ||
| 16 | #endif | ||
| 17 | |||
| 18 | #define va_start(ap,v) ap = (va_list)&v + sizeof(v) | ||
| 19 | #define va_arg(ap,t) ((t *)(ap += sizeof(t)))[-1] | ||
| 20 | #define va_end(ap) ap = NULL | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/STDDEF.H b/v4.0/src/TOOLS/BLD/INC/STDDEF.H new file mode 100644 index 0000000..b9637b0 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/STDDEF.H | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | /*** | ||
| 2 | *stddef.h - definitions/declarations for common constants, types, variables | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This file contains definitions and declarations for some commonly | ||
| 8 | * used constants, types, and variables. | ||
| 9 | * [ANSI] | ||
| 10 | * | ||
| 11 | *******************************************************************************/ | ||
| 12 | |||
| 13 | |||
| 14 | #ifndef NO_EXT_KEYS /* extensions enabled */ | ||
| 15 | #define _CDECL cdecl | ||
| 16 | #define _NEAR near | ||
| 17 | #else /* extensions not enabled */ | ||
| 18 | #define _CDECL | ||
| 19 | #define _NEAR | ||
| 20 | #endif /* NO_EXT_KEYS */ | ||
| 21 | |||
| 22 | |||
| 23 | /* define NULL pointer value */ | ||
| 24 | |||
| 25 | #if (defined(M_I86SM) || defined(M_I86MM)) | ||
| 26 | #define NULL 0 | ||
| 27 | #elif (defined(M_I86CM) || defined(M_I86LM) || defined(M_I86HM)) | ||
| 28 | #define NULL 0L | ||
| 29 | #endif | ||
| 30 | |||
| 31 | |||
| 32 | /* declare reference to errno */ | ||
| 33 | |||
| 34 | extern int _NEAR _CDECL errno; | ||
| 35 | |||
| 36 | |||
| 37 | /* define the implementation dependent size types */ | ||
| 38 | |||
| 39 | #ifndef _PTRDIFF_T_DEFINED | ||
| 40 | typedef int ptrdiff_t; | ||
| 41 | #define _PTRDIFF_T_DEFINED | ||
| 42 | #endif | ||
| 43 | |||
| 44 | #ifndef _SIZE_T_DEFINED | ||
| 45 | typedef unsigned int size_t; | ||
| 46 | #define _SIZE_T_DEFINED | ||
| 47 | #endif | ||
| 48 | |||
diff --git a/v4.0/src/TOOLS/BLD/INC/STDIO.H b/v4.0/src/TOOLS/BLD/INC/STDIO.H new file mode 100644 index 0000000..0c7f7b3 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/STDIO.H | |||
| @@ -0,0 +1,165 @@ | |||
| 1 | /*** | ||
| 2 | *stdio.h - definitions/declarations for standard I/O routines | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This file defines the structures, values, macros, and functions | ||
| 8 | * used by the level 2 I/O ("standard I/O") routines. | ||
| 9 | * [ANSI/System V] | ||
| 10 | * | ||
| 11 | *******************************************************************************/ | ||
| 12 | |||
| 13 | |||
| 14 | #ifndef _SIZE_T_DEFINED | ||
| 15 | typedef unsigned int size_t; | ||
| 16 | #define _SIZE_T_DEFINED | ||
| 17 | #endif | ||
| 18 | |||
| 19 | #ifndef _VA_LIST_DEFINED | ||
| 20 | typedef char *va_list; | ||
| 21 | #define _VA_LIST_DEFINED | ||
| 22 | #endif | ||
| 23 | |||
| 24 | #ifndef NO_EXT_KEYS /* extensions enabled */ | ||
| 25 | #define _CDECL cdecl | ||
| 26 | #define _NEAR near | ||
| 27 | #else /* extensions not enabled */ | ||
| 28 | #define _CDECL | ||
| 29 | #define _NEAR | ||
| 30 | #endif /* NO_EXT_KEYS */ | ||
| 31 | |||
| 32 | |||
| 33 | /* buffered I/O macros */ | ||
| 34 | |||
| 35 | #define BUFSIZ 512 | ||
| 36 | #define _NFILE 20 | ||
| 37 | #define EOF (-1) | ||
| 38 | |||
| 39 | #ifndef _FILE_DEFINED | ||
| 40 | #define FILE struct _iobuf | ||
| 41 | #define _FILE_DEFINED | ||
| 42 | #endif | ||
| 43 | |||
| 44 | /* P_tmpnam: Directory where temporary files may be created. | ||
| 45 | * L_tmpnam size = size of P_tmpdir | ||
| 46 | * + 1 (in case P_tmpdir does not end in "\\") | ||
| 47 | * + 6 (for the temp number string) | ||
| 48 | * + 1 (for the null terminator) | ||
| 49 | */ | ||
| 50 | |||
| 51 | #define P_tmpdir "\\" | ||
| 52 | #define L_tmpnam sizeof(P_tmpdir)+8 | ||
| 53 | |||
| 54 | #define SEEK_CUR 1 | ||
| 55 | #define SEEK_END 2 | ||
| 56 | #define SEEK_SET 0 | ||
| 57 | |||
| 58 | #define SYS_OPEN 20 | ||
| 59 | #define TMP_MAX 32767 | ||
| 60 | |||
| 61 | |||
| 62 | /* define NULL pointer value */ | ||
| 63 | |||
| 64 | #if (defined(M_I86SM) || defined(M_I86MM)) | ||
| 65 | #define NULL 0 | ||
| 66 | #elif (defined(M_I86CM) || defined(M_I86LM) || defined(M_I86HM)) | ||
| 67 | #define NULL 0L | ||
| 68 | #endif | ||
| 69 | |||
| 70 | |||
| 71 | /* define file control block */ | ||
| 72 | |||
| 73 | #ifndef _IOB_DEFINED | ||
| 74 | extern FILE { | ||
| 75 | char *_ptr; | ||
| 76 | int _cnt; | ||
| 77 | char *_base; | ||
| 78 | char _flag; | ||
| 79 | char _file; | ||
| 80 | } _NEAR _CDECL _iob[]; | ||
| 81 | #define _IOB_DEFINED | ||
| 82 | #endif | ||
| 83 | |||
| 84 | #define fpos_t long /* file position variable */ | ||
| 85 | |||
| 86 | #define stdin (&_iob[0]) | ||
| 87 | #define stdout (&_iob[1]) | ||
| 88 | #define stderr (&_iob[2]) | ||
| 89 | #define stdaux (&_iob[3]) | ||
| 90 | #define stdprn (&_iob[4]) | ||
| 91 | |||
| 92 | #define _IOREAD 0x01 | ||
| 93 | #define _IOWRT 0x02 | ||
| 94 | |||
| 95 | #define _IOFBF 0x0 | ||
| 96 | #define _IOLBF 0x40 | ||
| 97 | #define _IONBF 0x04 | ||
| 98 | |||
| 99 | #define _IOMYBUF 0x08 | ||
| 100 | #define _IOEOF 0x10 | ||
| 101 | #define _IOERR 0x20 | ||
| 102 | #define _IOSTRG 0x40 | ||
| 103 | #define _IORW 0x80 | ||
| 104 | |||
| 105 | #define getc(f) (--(f)->_cnt >= 0 ? 0xff & *(f)->_ptr++ : _filbuf(f)) | ||
| 106 | #define putc(c,f) (--(f)->_cnt >= 0 ? 0xff & (*(f)->_ptr++ = (char)(c)) \ | ||
| 107 | : _flsbuf((c),(f))) | ||
| 108 | #define getchar() getc(stdin) | ||
| 109 | #define putchar(c) putc((c),stdout) | ||
| 110 | |||
| 111 | #define feof(f) ((f)->_flag & _IOEOF) | ||
| 112 | #define ferror(f) ((f)->_flag & _IOERR) | ||
| 113 | #define fileno(f) ((f)->_file) | ||
| 114 | |||
| 115 | |||
| 116 | /* function prototypes */ | ||
| 117 | |||
| 118 | int _CDECL _filbuf(FILE *); | ||
| 119 | int _CDECL _flsbuf(int, FILE *); | ||
| 120 | void _CDECL clearerr(FILE *); | ||
| 121 | int _CDECL fclose(FILE *); | ||
| 122 | int _CDECL fcloseall(void); | ||
| 123 | FILE * _CDECL fdopen(int, char *); | ||
| 124 | int _CDECL fflush(FILE *); | ||
| 125 | int _CDECL fgetc(FILE *); | ||
| 126 | int _CDECL fgetchar(void); | ||
| 127 | int _CDECL fgetpos(FILE *, fpos_t *); | ||
| 128 | char * _CDECL fgets(char *, int, FILE *); | ||
| 129 | int _CDECL flushall(void); | ||
| 130 | FILE * _CDECL fopen(const char *, const char *); | ||
| 131 | int _CDECL fprintf(FILE *, const char *, ...); | ||
| 132 | int _CDECL fputc(int, FILE *); | ||
| 133 | int _CDECL fputchar(int); | ||
| 134 | int _CDECL fputs(const char *, FILE *); | ||
| 135 | size_t _CDECL fread(void *, size_t, size_t, FILE *); | ||
| 136 | FILE * _CDECL freopen(const char *, const char *, FILE *); | ||
| 137 | int _CDECL fscanf(FILE *, const char *, ...); | ||
| 138 | int _CDECL fsetpos(FILE *, const fpos_t *); | ||
| 139 | int _CDECL fseek(FILE *, long, int); | ||
| 140 | long _CDECL ftell(FILE *); | ||
| 141 | size_t _CDECL fwrite(const void *, size_t, size_t, FILE *); | ||
| 142 | char * _CDECL gets(char *); | ||
| 143 | int _CDECL getw(FILE *); | ||
| 144 | void _CDECL perror(const char *); | ||
| 145 | int _CDECL printf(const char *, ...); | ||
| 146 | int _CDECL puts(const char *); | ||
| 147 | int _CDECL putw(int, FILE *); | ||
| 148 | int _CDECL remove(const char *); | ||
| 149 | int _CDECL rename(const char *, const char *); | ||
| 150 | void _CDECL rewind(FILE *); | ||
| 151 | int _CDECL rmtmp(void); | ||
| 152 | int _CDECL scanf(const char *, ...); | ||
| 153 | void _CDECL setbuf(FILE *, char *); | ||
| 154 | int _CDECL setvbuf(FILE *, char *, int, size_t); | ||
| 155 | int _CDECL sprintf(char *, const char *, ...); | ||
| 156 | int _CDECL sscanf(const char *, const char *, ...); | ||
| 157 | char * _CDECL tempnam(char *, char *); | ||
| 158 | FILE * _CDECL tmpfile(void); | ||
| 159 | char * _CDECL tmpnam(char *); | ||
| 160 | int _CDECL ungetc(int, FILE *); | ||
| 161 | int _CDECL unlink(const char *); | ||
| 162 | int _CDECL vfprintf(FILE *, const char *, va_list); | ||
| 163 | int _CDECL vprintf(const char *, va_list); | ||
| 164 | int _CDECL vsprintf(char *, const char *, va_list); | ||
| 165 | |||
diff --git a/v4.0/src/TOOLS/BLD/INC/STDLIB.H b/v4.0/src/TOOLS/BLD/INC/STDLIB.H new file mode 100644 index 0000000..5fb67d7 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/STDLIB.H | |||
| @@ -0,0 +1,151 @@ | |||
| 1 | /*** | ||
| 2 | *stdlib.h - declarations/definitions for commonly used library functions | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This include file contains the function declarations for | ||
| 8 | * commonly used library functions which either don't fit somewhere | ||
| 9 | * else, or, like toupper/tolower, can't be declared in the normal | ||
| 10 | * place (ctype.h in the case of toupper/tolower) for other reasons. | ||
| 11 | * [ANSI] | ||
| 12 | * | ||
| 13 | *******************************************************************************/ | ||
| 14 | |||
| 15 | |||
| 16 | #ifndef _SIZE_T_DEFINED | ||
| 17 | typedef unsigned int size_t; | ||
| 18 | #define _SIZE_T_DEFINED | ||
| 19 | #endif | ||
| 20 | |||
| 21 | #ifndef NO_EXT_KEYS /* extensions enabled */ | ||
| 22 | #define _CDECL cdecl | ||
| 23 | #define _NEAR near | ||
| 24 | #else /* extensions not enabled */ | ||
| 25 | #define _CDECL | ||
| 26 | #define _NEAR | ||
| 27 | #endif /* NO_EXT_KEYS */ | ||
| 28 | |||
| 29 | |||
| 30 | /* definition of the return type for the onexit() function */ | ||
| 31 | |||
| 32 | #ifndef _ONEXIT_T_DEFINED | ||
| 33 | typedef int (_CDECL * _CDECL onexit_t)(); | ||
| 34 | #define _ONEXIT_T_DEFINED | ||
| 35 | #endif | ||
| 36 | |||
| 37 | |||
| 38 | /* Data structure definitions for div and ldiv runtimes. */ | ||
| 39 | |||
| 40 | #ifndef _DIV_T_DEFINED | ||
| 41 | |||
| 42 | typedef struct { | ||
| 43 | int quot; | ||
| 44 | int rem; | ||
| 45 | } div_t; | ||
| 46 | |||
| 47 | typedef struct { | ||
| 48 | long quot; | ||
| 49 | long rem; | ||
| 50 | } ldiv_t; | ||
| 51 | |||
| 52 | #define _DIV_T_DEFINED | ||
| 53 | #endif | ||
| 54 | |||
| 55 | /* Maximum value that can be returned by the rand function. */ | ||
| 56 | |||
| 57 | #define RAND_MAX 0x7fff | ||
| 58 | |||
| 59 | |||
| 60 | /* min and max macros */ | ||
| 61 | |||
| 62 | #define max(a,b) (((a) > (b)) ? (a) : (b)) | ||
| 63 | #define min(a,b) (((a) < (b)) ? (a) : (b)) | ||
| 64 | |||
| 65 | |||
| 66 | /* sizes for buffers used by the _makepath() and _splitpath() functions. | ||
| 67 | * note that the sizes include space for 0-terminator | ||
| 68 | */ | ||
| 69 | |||
| 70 | #define _MAX_PATH 144 /* max. length of full pathname */ | ||
| 71 | #define _MAX_DRIVE 3 /* max. length of drive component */ | ||
| 72 | #define _MAX_DIR 130 /* max. length of path component */ | ||
| 73 | #define _MAX_FNAME 9 /* max. length of file name component */ | ||
| 74 | #define _MAX_EXT 5 /* max. length of extension component */ | ||
| 75 | |||
| 76 | /* external variable declarations */ | ||
| 77 | |||
| 78 | extern int _NEAR _CDECL errno; /* XENIX style error number */ | ||
| 79 | extern int _NEAR _CDECL _doserrno; /* MS-DOS system error value */ | ||
| 80 | extern char * _NEAR _CDECL sys_errlist[]; /* perror error message table */ | ||
| 81 | extern int _NEAR _CDECL sys_nerr; /* # of entries in sys_errlist table */ | ||
| 82 | |||
| 83 | extern char ** _NEAR _CDECL environ; /* pointer to environment table */ | ||
| 84 | |||
| 85 | extern unsigned int _NEAR _CDECL _psp; /* Program Segment Prefix */ | ||
| 86 | |||
| 87 | extern int _NEAR _CDECL _fmode; /* default file translation mode */ | ||
| 88 | |||
| 89 | /* DOS major/minor version numbers */ | ||
| 90 | |||
| 91 | extern unsigned char _NEAR _CDECL _osmajor; | ||
| 92 | extern unsigned char _NEAR _CDECL _osminor; | ||
| 93 | |||
| 94 | #define DOS_MODE 0 /* Real Address Mode */ | ||
| 95 | #define OS2_MODE 1 /* Protected Address Mode */ | ||
| 96 | |||
| 97 | extern unsigned char _NEAR _CDECL _osmode; | ||
| 98 | |||
| 99 | |||
| 100 | /* function prototypes */ | ||
| 101 | |||
| 102 | double _CDECL atof(const char *); | ||
| 103 | double _CDECL strtod(const char *, char * *); | ||
| 104 | ldiv_t _CDECL ldiv(long, long); | ||
| 105 | |||
| 106 | void _CDECL abort(void); | ||
| 107 | int _CDECL abs(int); | ||
| 108 | int _CDECL atexit(void (_CDECL *)(void)); | ||
| 109 | int _CDECL atoi(const char *); | ||
| 110 | long _CDECL atol(const char *); | ||
| 111 | void * _CDECL bsearch(const void *, const void *, size_t, size_t, int (_CDECL *)(const void *, const void *)); | ||
| 112 | void * _CDECL calloc(size_t, size_t); | ||
| 113 | div_t _CDECL div(int, int); | ||
| 114 | char * _CDECL ecvt(double, int, int *, int *); | ||
| 115 | void _CDECL exit(int); | ||
| 116 | void _CDECL _exit(int); | ||
| 117 | char * _CDECL fcvt(double, int, int *, int *); | ||
| 118 | void _CDECL free(void *); | ||
| 119 | char * _CDECL gcvt(double, int, char *); | ||
| 120 | char * _CDECL getenv(const char *); | ||
| 121 | char * _CDECL itoa(int, char *, int); | ||
| 122 | long _CDECL labs(long); | ||
| 123 | unsigned long _CDECL _lrotl(unsigned long, int); | ||
| 124 | unsigned long _CDECL _lrotr(unsigned long, int); | ||
| 125 | char * _CDECL ltoa(long, char *, int); | ||
| 126 | void _CDECL _makepath(char *, char *, char *, char *, char *); | ||
| 127 | void * _CDECL malloc(size_t); | ||
| 128 | onexit_t _CDECL onexit(onexit_t); | ||
| 129 | void _CDECL perror(const char *); | ||
| 130 | int _CDECL putenv(char *); | ||
| 131 | void _CDECL qsort(void *, size_t, size_t, int (_CDECL *)(const void *, const void *)); | ||
| 132 | unsigned int _CDECL _rotl(unsigned int, int); | ||
| 133 | unsigned int _CDECL _rotr(unsigned int, int); | ||
| 134 | int _CDECL rand(void); | ||
| 135 | void * _CDECL realloc(void *, size_t); | ||
| 136 | void _CDECL _searchenv(char *, char *, char *); | ||
| 137 | void _CDECL _splitpath(char *, char *, char *, char *, char *); | ||
| 138 | void _CDECL srand(unsigned int); | ||
| 139 | long _CDECL strtol(const char *, char * *, int); | ||
| 140 | unsigned long _CDECL strtoul(const char *, char * *, int); | ||
| 141 | void _CDECL swab(char *, char *, int); | ||
| 142 | int _CDECL system(const char *); | ||
| 143 | char * _CDECL ultoa(unsigned long, char *, int); | ||
| 144 | |||
| 145 | #ifndef tolower /* tolower has been undefined - use function */ | ||
| 146 | int _CDECL tolower(int); | ||
| 147 | #endif /* tolower */ | ||
| 148 | |||
| 149 | #ifndef toupper /* toupper has been undefined - use function */ | ||
| 150 | int _CDECL toupper(int); | ||
| 151 | #endif /* toupper */ | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/STRING.H b/v4.0/src/TOOLS/BLD/INC/STRING.H new file mode 100644 index 0000000..8340688 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/STRING.H | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | /*** | ||
| 2 | *string.h - declarations for string manipulation functions | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This file contains the function declarations for the string | ||
| 8 | * manipulation functions. | ||
| 9 | * [ANSI/System V] | ||
| 10 | * | ||
| 11 | *******************************************************************************/ | ||
| 12 | |||
| 13 | |||
| 14 | #ifndef _SIZE_T_DEFINED | ||
| 15 | typedef unsigned int size_t; | ||
| 16 | #define _SIZE_T_DEFINED | ||
| 17 | #endif | ||
| 18 | |||
| 19 | #ifndef NO_EXT_KEYS /* extensions enabled */ | ||
| 20 | #define _CDECL cdecl | ||
| 21 | #else /* extensions not enabled */ | ||
| 22 | #define _CDECL | ||
| 23 | #endif /* NO_EXT_KEYS */ | ||
| 24 | |||
| 25 | |||
| 26 | /* function prototypes */ | ||
| 27 | |||
| 28 | void * _CDECL memccpy(void *, void *, int, unsigned int); | ||
| 29 | void * _CDECL memchr(const void *, int, size_t); | ||
| 30 | int _CDECL memcmp(const void *, const void *, size_t); | ||
| 31 | int _CDECL memicmp(void *, void *, unsigned int); | ||
| 32 | void * _CDECL memcpy(void *, const void *, size_t); | ||
| 33 | void * _CDECL memmove(void *, const void *, size_t); | ||
| 34 | void * _CDECL memset(void *, int, size_t); | ||
| 35 | void _CDECL movedata(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int); | ||
| 36 | |||
| 37 | char * _CDECL strcat(char *, const char *); | ||
| 38 | char * _CDECL strchr(const char *, int); | ||
| 39 | int _CDECL strcmp(const char *, const char *); | ||
| 40 | int _CDECL strcmpi(const char *, const char *); | ||
| 41 | int _CDECL stricmp(const char *, const char *); | ||
| 42 | char * _CDECL strcpy(char *, const char *); | ||
| 43 | size_t _CDECL strcspn(const char *, const char *); | ||
| 44 | char * _CDECL strdup(const char *); | ||
| 45 | char * _CDECL _strerror(char *); | ||
| 46 | char * _CDECL strerror(int); | ||
| 47 | size_t _CDECL strlen(const char *); | ||
| 48 | char * _CDECL strlwr(char *); | ||
| 49 | char * _CDECL strncat(char *, const char *, size_t); | ||
| 50 | int _CDECL strncmp(const char *, const char *, size_t); | ||
| 51 | int _CDECL strnicmp(const char *, const char *, size_t); | ||
| 52 | char * _CDECL strncpy(char *, const char *, size_t); | ||
| 53 | char * _CDECL strnset(char *, int, size_t); | ||
| 54 | char * _CDECL strpbrk(const char *, const char *); | ||
| 55 | char * _CDECL strrchr(const char *, int); | ||
| 56 | char * _CDECL strrev(char *); | ||
| 57 | char * _CDECL strset(char *, int); | ||
| 58 | size_t _CDECL strspn(const char *, const char *); | ||
| 59 | char * _CDECL strstr(const char *, const char *); | ||
| 60 | char * _CDECL strtok(char *, const char *); | ||
| 61 | char * _CDECL strupr(char *); | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/SYS/LOCKING.H b/v4.0/src/TOOLS/BLD/INC/SYS/LOCKING.H new file mode 100644 index 0000000..fb76160 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/SYS/LOCKING.H | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | /*** | ||
| 2 | *sys\locking.h - flags for locking() function | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This file defines the flags for the locking() function. | ||
| 8 | * [System V] | ||
| 9 | * | ||
| 10 | *******************************************************************************/ | ||
| 11 | |||
| 12 | #define LK_UNLCK 0 /* unlock the file region */ | ||
| 13 | #define LK_LOCK 1 /* lock the file region */ | ||
| 14 | #define LK_NBLCK 2 /* non-blocking lock */ | ||
| 15 | #define LK_RLCK 3 /* lock for writing */ | ||
| 16 | #define LK_NBRLCK 4 /* non-blocking lock for writing */ | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/SYS/STAT.H b/v4.0/src/TOOLS/BLD/INC/SYS/STAT.H new file mode 100644 index 0000000..4259208 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/SYS/STAT.H | |||
| @@ -0,0 +1,56 @@ | |||
| 1 | /*** | ||
| 2 | *sys\stat.h - defines structure used by stat() and fstat() | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This file defines the structure used by the stat() and fstat() | ||
| 8 | * routines. | ||
| 9 | * [System V] | ||
| 10 | * | ||
| 11 | *******************************************************************************/ | ||
| 12 | |||
| 13 | |||
| 14 | #ifndef NO_EXT_KEYS /* extensions enabled */ | ||
| 15 | #define CDECL cdecl | ||
| 16 | #else /* extensions not enabled */ | ||
| 17 | #define CDECL | ||
| 18 | #endif /* NO_EXT_KEYS */ | ||
| 19 | |||
| 20 | #ifndef _TIME_T_DEFINED | ||
| 21 | typedef long time_t; | ||
| 22 | #define _TIME_T_DEFINED | ||
| 23 | #endif | ||
| 24 | |||
| 25 | /* define structure for returning status information */ | ||
| 26 | |||
| 27 | #ifndef _STAT_DEFINED | ||
| 28 | struct stat { | ||
| 29 | dev_t st_dev; | ||
| 30 | ino_t st_ino; | ||
| 31 | unsigned short st_mode; | ||
| 32 | short st_nlink; | ||
| 33 | short st_uid; | ||
| 34 | short st_gid; | ||
| 35 | dev_t st_rdev; | ||
| 36 | off_t st_size; | ||
| 37 | time_t st_atime; | ||
| 38 | time_t st_mtime; | ||
| 39 | time_t st_ctime; | ||
| 40 | }; | ||
| 41 | #define _STAT_DEFINED | ||
| 42 | #endif | ||
| 43 | |||
| 44 | #define S_IFMT 0170000 /* file type mask */ | ||
| 45 | #define S_IFDIR 0040000 /* directory */ | ||
| 46 | #define S_IFCHR 0020000 /* character special */ | ||
| 47 | #define S_IFREG 0100000 /* regular */ | ||
| 48 | #define S_IREAD 0000400 /* read permission, owner */ | ||
| 49 | #define S_IWRITE 0000200 /* write permission, owner */ | ||
| 50 | #define S_IEXEC 0000100 /* execute/search permission, owner */ | ||
| 51 | |||
| 52 | |||
| 53 | /* function prototypes */ | ||
| 54 | |||
| 55 | int CDECL fstat(int, struct stat *); | ||
| 56 | int CDECL stat(char *, struct stat *); | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/SYS/TIMEB.H b/v4.0/src/TOOLS/BLD/INC/SYS/TIMEB.H new file mode 100644 index 0000000..46bf4ac --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/SYS/TIMEB.H | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | /*** | ||
| 2 | *sys\timeb.h - definition/declarations for ftime() | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This file define the ftime() function and the types it uses. | ||
| 8 | * [System V] | ||
| 9 | * | ||
| 10 | *******************************************************************************/ | ||
| 11 | |||
| 12 | |||
| 13 | #ifndef NO_EXT_KEYS /* extensions enabled */ | ||
| 14 | #define CDECL cdecl | ||
| 15 | #else /* extensions not enabled */ | ||
| 16 | #define CDECL | ||
| 17 | #endif /* NO_EXT_KEYS */ | ||
| 18 | |||
| 19 | #ifndef _TIME_T_DEFINED | ||
| 20 | typedef long time_t; | ||
| 21 | #define _TIME_T_DEFINED | ||
| 22 | #endif | ||
| 23 | |||
| 24 | /* structure returned by ftime system call */ | ||
| 25 | |||
| 26 | #ifndef _TIMEB_DEFINED | ||
| 27 | struct timeb { | ||
| 28 | time_t time; | ||
| 29 | unsigned short millitm; | ||
| 30 | short timezone; | ||
| 31 | short dstflag; | ||
| 32 | }; | ||
| 33 | #define _TIMEB_DEFINED | ||
| 34 | #endif | ||
| 35 | |||
| 36 | |||
| 37 | /* function prototypes */ | ||
| 38 | |||
| 39 | void CDECL ftime(struct timeb *); | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/SYS/TYPES.H b/v4.0/src/TOOLS/BLD/INC/SYS/TYPES.H new file mode 100644 index 0000000..84fc6b6 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/SYS/TYPES.H | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | /*** | ||
| 2 | *sys\types.h - types returned by system level calls for file and time info | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This file defines types used in defining values returned by system | ||
| 8 | * level calls for file status and time information. | ||
| 9 | * [System V] | ||
| 10 | * | ||
| 11 | *******************************************************************************/ | ||
| 12 | |||
| 13 | #ifndef _INO_T_DEFINED | ||
| 14 | typedef unsigned short ino_t; /* i-node number (not used on DOS) */ | ||
| 15 | #define _INO_T_DEFINED | ||
| 16 | #endif | ||
| 17 | |||
| 18 | #ifndef _TIME_T_DEFINED | ||
| 19 | typedef long time_t; | ||
| 20 | #define _TIME_T_DEFINED | ||
| 21 | #endif | ||
| 22 | |||
| 23 | #ifndef _DEV_T_DEFINED | ||
| 24 | typedef short dev_t; /* device code */ | ||
| 25 | #define _DEV_T_DEFINED | ||
| 26 | #endif | ||
| 27 | |||
| 28 | #ifndef _OFF_T_DEFINED | ||
| 29 | typedef long off_t; /* file offset value */ | ||
| 30 | #define _OFF_T_DEFINED | ||
| 31 | #endif | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/SYS/UTIME.H b/v4.0/src/TOOLS/BLD/INC/SYS/UTIME.H new file mode 100644 index 0000000..868756c --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/SYS/UTIME.H | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | /*** | ||
| 2 | *sys\utime.h - definitions/declarations for utime() | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This file defines the structure used by the utime routine to set | ||
| 8 | * new file access and modification times. NOTE - MS-DOS | ||
| 9 | * does not recognize access time, so this field will | ||
| 10 | * always be ignored and the modification time field will be | ||
| 11 | * used to set the new time. | ||
| 12 | * | ||
| 13 | *******************************************************************************/ | ||
| 14 | |||
| 15 | |||
| 16 | #ifndef NO_EXT_KEYS /* extensions enabled */ | ||
| 17 | #define CDECL cdecl | ||
| 18 | #else /* extensions not enabled */ | ||
| 19 | #define CDECL | ||
| 20 | #endif /* NO_EXT_KEYS */ | ||
| 21 | |||
| 22 | #ifndef _TIME_T_DEFINED | ||
| 23 | typedef long time_t; | ||
| 24 | #define _TIME_T_DEFINED | ||
| 25 | #endif | ||
| 26 | |||
| 27 | /* define struct used by utime() function */ | ||
| 28 | |||
| 29 | #ifndef _UTIMBUF_DEFINED | ||
| 30 | struct utimbuf { | ||
| 31 | time_t actime; /* access time */ | ||
| 32 | time_t modtime; /* modification time */ | ||
| 33 | }; | ||
| 34 | #define _UTIMBUF_DEFINED | ||
| 35 | #endif | ||
| 36 | |||
| 37 | |||
| 38 | /* function prototypes */ | ||
| 39 | |||
| 40 | int CDECL utime(char *, struct utimbuf *); | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/TIME.H b/v4.0/src/TOOLS/BLD/INC/TIME.H new file mode 100644 index 0000000..d9a1681 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/TIME.H | |||
| @@ -0,0 +1,75 @@ | |||
| 1 | /*** | ||
| 2 | *time.h - definitions/declarations for time routines | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This file has declarations of time routines and defines | ||
| 8 | * the structure returned by the localtime and gmtime routines and | ||
| 9 | * used by asctime. | ||
| 10 | * [ANSI/System V] | ||
| 11 | * | ||
| 12 | *******************************************************************************/ | ||
| 13 | |||
| 14 | |||
| 15 | #ifndef NO_EXT_KEYS /* extensions enabled */ | ||
| 16 | #define _CDECL cdecl | ||
| 17 | #define _NEAR near | ||
| 18 | #else /* extensions not enabled */ | ||
| 19 | #define _CDECL | ||
| 20 | #define _NEAR | ||
| 21 | #endif /* NO_EXT_KEYS */ | ||
| 22 | |||
| 23 | |||
| 24 | /* define the implementation defined time type */ | ||
| 25 | |||
| 26 | #ifndef _TIME_T_DEFINED | ||
| 27 | typedef long time_t; /* time value */ | ||
| 28 | #define _TIME_T_DEFINED /* avoid multiple def's of time_t */ | ||
| 29 | #endif | ||
| 30 | |||
| 31 | #ifndef _CLOCK_T_DEFINED | ||
| 32 | typedef long clock_t; | ||
| 33 | #define _CLOCK_T_DEFINED | ||
| 34 | #endif | ||
| 35 | |||
| 36 | #ifndef _TM_DEFINED | ||
| 37 | struct tm { | ||
| 38 | int tm_sec; /* seconds after the minute - [0,59] */ | ||
| 39 | int tm_min; /* minutes after the hour - [0,59] */ | ||
| 40 | int tm_hour; /* hours since midnight - [0,23] */ | ||
| 41 | int tm_mday; /* day of the month - [1,31] */ | ||
| 42 | int tm_mon; /* months since January - [0,11] */ | ||
| 43 | int tm_year; /* years since 1900 */ | ||
| 44 | int tm_wday; /* days since Sunday - [0,6] */ | ||
| 45 | int tm_yday; /* days since January 1 - [0,365] */ | ||
| 46 | int tm_isdst; /* daylight savings time flag */ | ||
| 47 | }; | ||
| 48 | #define _TM_DEFINED | ||
| 49 | #endif | ||
| 50 | |||
| 51 | #define CLK_TCK 1000 | ||
| 52 | |||
| 53 | |||
| 54 | /* extern declarations for the global variables used by the ctime family of | ||
| 55 | * routines. | ||
| 56 | */ | ||
| 57 | |||
| 58 | extern int _NEAR _CDECL daylight; /* non-zero if daylight savings time is used */ | ||
| 59 | extern long _NEAR _CDECL timezone; /* difference in seconds between GMT and local time */ | ||
| 60 | extern char * _NEAR _CDECL tzname[2]; /* standard/daylight savings time zone names */ | ||
| 61 | |||
| 62 | |||
| 63 | /* function prototypes */ | ||
| 64 | |||
| 65 | char * _CDECL asctime(const struct tm *); | ||
| 66 | char * _CDECL ctime(const time_t *); | ||
| 67 | clock_t _CDECL clock(void); | ||
| 68 | double _CDECL difftime(time_t, time_t); | ||
| 69 | struct tm * _CDECL gmtime(const time_t *); | ||
| 70 | struct tm * _CDECL localtime(const time_t *); | ||
| 71 | time_t _CDECL mktime(struct tm *); | ||
| 72 | char * _CDECL _strdate(char *); | ||
| 73 | char * _CDECL _strtime(char *); | ||
| 74 | time_t _CDECL time(time_t *); | ||
| 75 | void _CDECL tzset(void); | ||
diff --git a/v4.0/src/TOOLS/BLD/INC/VARARGS.H b/v4.0/src/TOOLS/BLD/INC/VARARGS.H new file mode 100644 index 0000000..e96d04e --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/VARARGS.H | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | /*** | ||
| 2 | *varargs.h - XENIX style macros for variable argument functions | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This file defines XENIX style macros for accessing arguments of a | ||
| 8 | * function which takes a variable number of arguments. | ||
| 9 | * [System V] | ||
| 10 | * | ||
| 11 | *******************************************************************************/ | ||
| 12 | |||
| 13 | #ifndef _VA_LIST_DEFINED | ||
| 14 | typedef char *va_list; | ||
| 15 | #define _VA_LIST_DEFINED | ||
| 16 | #endif | ||
| 17 | |||
| 18 | #define va_dcl va_list va_alist; | ||
| 19 | #define va_start(ap) ap = (va_list)&va_alist | ||
| 20 | #define va_arg(ap,t) ((t *)(ap += sizeof(t)))[-1] | ||
| 21 | #define va_end(ap) ap = NULL | ||
diff --git a/v4.0/src/TOOLS/BLD/LIB/BINMODE.OBJ b/v4.0/src/TOOLS/BLD/LIB/BINMODE.OBJ new file mode 100644 index 0000000..a443384 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/LIB/BINMODE.OBJ | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/BLD/LIB/CLIBCE.LIB b/v4.0/src/TOOLS/BLD/LIB/CLIBCE.LIB new file mode 100644 index 0000000..a1433ab --- /dev/null +++ b/v4.0/src/TOOLS/BLD/LIB/CLIBCE.LIB | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/BLD/LIB/CLIBCR.LIB b/v4.0/src/TOOLS/BLD/LIB/CLIBCR.LIB new file mode 100644 index 0000000..e8e33da --- /dev/null +++ b/v4.0/src/TOOLS/BLD/LIB/CLIBCR.LIB | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/BLD/LIB/CLIBFP.LIB b/v4.0/src/TOOLS/BLD/LIB/CLIBFP.LIB new file mode 100644 index 0000000..fe17da2 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/LIB/CLIBFP.LIB | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/BLD/LIB/CVARSTCK.OBJ b/v4.0/src/TOOLS/BLD/LIB/CVARSTCK.OBJ new file mode 100644 index 0000000..5129408 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/LIB/CVARSTCK.OBJ | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/BLD/LIB/EM.LIB b/v4.0/src/TOOLS/BLD/LIB/EM.LIB new file mode 100644 index 0000000..0d6279e --- /dev/null +++ b/v4.0/src/TOOLS/BLD/LIB/EM.LIB | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/BLD/LIB/GRAPHICS.LIB b/v4.0/src/TOOLS/BLD/LIB/GRAPHICS.LIB new file mode 100644 index 0000000..4b7e0e7 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/LIB/GRAPHICS.LIB | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/BLD/LIB/LIBH.LIB b/v4.0/src/TOOLS/BLD/LIB/LIBH.LIB new file mode 100644 index 0000000..f7d3e50 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/LIB/LIBH.LIB | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/BLD/LIB/LLIBCE.LIB b/v4.0/src/TOOLS/BLD/LIB/LLIBCE.LIB new file mode 100644 index 0000000..0c581d1 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/LIB/LLIBCE.LIB | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/BLD/LIB/LLIBCR.LIB b/v4.0/src/TOOLS/BLD/LIB/LLIBCR.LIB new file mode 100644 index 0000000..1815c2b --- /dev/null +++ b/v4.0/src/TOOLS/BLD/LIB/LLIBCR.LIB | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/BLD/LIB/LLIBFP.LIB b/v4.0/src/TOOLS/BLD/LIB/LLIBFP.LIB new file mode 100644 index 0000000..804dcdc --- /dev/null +++ b/v4.0/src/TOOLS/BLD/LIB/LLIBFP.LIB | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/BLD/LIB/LVARSTCK.OBJ b/v4.0/src/TOOLS/BLD/LIB/LVARSTCK.OBJ new file mode 100644 index 0000000..365bbb6 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/LIB/LVARSTCK.OBJ | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/BLD/LIB/MLIBCE.LIB b/v4.0/src/TOOLS/BLD/LIB/MLIBCE.LIB new file mode 100644 index 0000000..3e35f4a --- /dev/null +++ b/v4.0/src/TOOLS/BLD/LIB/MLIBCE.LIB | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/BLD/LIB/MLIBCR.LIB b/v4.0/src/TOOLS/BLD/LIB/MLIBCR.LIB new file mode 100644 index 0000000..ae2c1c2 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/LIB/MLIBCR.LIB | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/BLD/LIB/MLIBFP.LIB b/v4.0/src/TOOLS/BLD/LIB/MLIBFP.LIB new file mode 100644 index 0000000..9a74029 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/LIB/MLIBFP.LIB | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/BLD/LIB/MVARSTCK.OBJ b/v4.0/src/TOOLS/BLD/LIB/MVARSTCK.OBJ new file mode 100644 index 0000000..2f2504c --- /dev/null +++ b/v4.0/src/TOOLS/BLD/LIB/MVARSTCK.OBJ | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/BLD/LIB/SETARGV.OBJ b/v4.0/src/TOOLS/BLD/LIB/SETARGV.OBJ new file mode 100644 index 0000000..7578cac --- /dev/null +++ b/v4.0/src/TOOLS/BLD/LIB/SETARGV.OBJ | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/BLD/LIB/SLIBCE.LIB b/v4.0/src/TOOLS/BLD/LIB/SLIBCE.LIB new file mode 100644 index 0000000..cbc6138 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/LIB/SLIBCE.LIB | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/BLD/LIB/SLIBCR.LIB b/v4.0/src/TOOLS/BLD/LIB/SLIBCR.LIB new file mode 100644 index 0000000..27017a1 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/LIB/SLIBCR.LIB | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/BLD/LIB/SLIBFP.LIB b/v4.0/src/TOOLS/BLD/LIB/SLIBFP.LIB new file mode 100644 index 0000000..362f4e9 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/LIB/SLIBFP.LIB | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/BLD/LIB/SVARSTCK.OBJ b/v4.0/src/TOOLS/BLD/LIB/SVARSTCK.OBJ new file mode 100644 index 0000000..f88e7ae --- /dev/null +++ b/v4.0/src/TOOLS/BLD/LIB/SVARSTCK.OBJ | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/BUILDIDX.EXE b/v4.0/src/TOOLS/BUILDIDX.EXE new file mode 100644 index 0000000..9254c11 --- /dev/null +++ b/v4.0/src/TOOLS/BUILDIDX.EXE | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/BUILDMSG.EXE b/v4.0/src/TOOLS/BUILDMSG.EXE new file mode 100644 index 0000000..3565467 --- /dev/null +++ b/v4.0/src/TOOLS/BUILDMSG.EXE | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/C1.ERR b/v4.0/src/TOOLS/C1.ERR new file mode 100644 index 0000000..d26c849 --- /dev/null +++ b/v4.0/src/TOOLS/C1.ERR | |||
| @@ -0,0 +1,334 @@ | |||
| 1 | /* SCCSWHAT( "@(#)c1.err 2.29 88/02/25 18:18:00 " ) */ | ||
| 2 | /* fatals */ | ||
| 3 | |||
| 4 | 1001 "Internal Compiler Error\n\t\t(compiler file '%s', line %d)\n\t\tContact Microsoft Technical Support" | ||
| 5 | 1002 "out of heap space" | ||
| 6 | 1003 "error count exceeds %d; stopping compilation" | ||
| 7 | 1004 "unexpected EOF" | ||
| 8 | 1005 "string too big for buffer" | ||
| 9 | 1006 "write error on compiler intermediate file" | ||
| 10 | 1007 "unrecognized flag '%s' in '%s'" | ||
| 11 | 1008 "no input file specified" | ||
| 12 | 1009 "compiler limit : macros too deeply nested" | ||
| 13 | 1010 "compiler limit : macro expansion too big" | ||
| 14 | 1012 "bad parenthesis nesting - missing '%c'" | ||
| 15 | 1013 "cannot open source file '%s'" | ||
| 16 | 1014 "too many include files" | ||
| 17 | 1015 "cannot open include file '%s'" | ||
| 18 | 1016 "#if[n]def expected an identifier" | ||
| 19 | 1017 "invalid integer constant expression" | ||
| 20 | 1018 "unexpected '#elif'" | ||
| 21 | 1019 "unexpected '#else'" | ||
| 22 | 1020 "unexpected '#endif'" | ||
| 23 | 1021 "bad preprocessor command '%s'" | ||
| 24 | 1022 "expected '#endif'" | ||
| 25 | 1023 "no int size specified" | ||
| 26 | 1024 "no ptr size specified" | ||
| 27 | 1025 "no function size specified" | ||
| 28 | 1026 "parser stack overflow, please simplify your program" | ||
| 29 | 1027 "DGROUP data allocation exceeds 64K" /* QC, c23 */ | ||
| 30 | 1028 "%s segment allocation exceeds 64K" /* QC */ | ||
| 31 | 1031 "compiler limit : function calls too deeply nested" /* QC, c23 */ | ||
| 32 | 1032 "cannot open object listing file '%s'" /* QC, c23 */ | ||
| 33 | 1035 "expression too complex, please simplify" /* QC, c23 */ | ||
| 34 | 1037 "cannot open object file '%s'" /* QC, c23 */ | ||
| 35 | 1041 "cannot open compiler intermediate file - no more files" | ||
| 36 | 1042 "cannot open compiler intermediate file - no such file or directory" | ||
| 37 | 1043 "cannot open compiler intermediate file" | ||
| 38 | 1044 "out of disk space for compiler intermediate file" | ||
| 39 | 1045 "floating point overflow" | ||
| 40 | 1047 "too many %s flags, '%s'" | ||
| 41 | 1048 "unknown option '%c' in '%s'" | ||
| 42 | 1049 "invalid numerical argument '%s'" | ||
| 43 | 1052 "too many #if/#ifdef's" | ||
| 44 | 1053 "compiler limit : struct/union nesting" | ||
| 45 | 1054 "compiler limit : initializers too deeply nested" | ||
| 46 | 1055 "compiler limit : out of keys" | ||
| 47 | 1056 "compiler limit : out of macro expansion space" | ||
| 48 | 1057 "unexpected EOF in macro expansion (missing ')'?)" | ||
| 49 | 1059 "out of near heap space" | ||
| 50 | 1060 "out of far heap space" | ||
| 51 | 1061 "compiler limit : blocks too deeply nested" /* QC */ | ||
| 52 | 1062 "error writing to preprocessor output file" | ||
| 53 | 1063 "compiler limit : compiler stack overflow" /* QC */ | ||
| 54 | 1064 "compiler limit : identifier overflowed internal buffer" | ||
| 55 | 1065 "compiler limit : declarator too complex" | ||
| 56 | 1000 "UNKNOWN FATAL ERROR\n\t\tContact Microsoft Technical Support" | ||
| 57 | |||
| 58 | /* errors */ | ||
| 59 | |||
| 60 | 2001 "newline in constant" | ||
| 61 | 2002 "out of macro actual parameter space" | ||
| 62 | 2003 "expected 'defined id'" | ||
| 63 | 2004 "expected 'defined(id)'" | ||
| 64 | 2005 "#line expected a line number, found '%s'" | ||
| 65 | 2006 "#include expected a file name, found '%s'" | ||
| 66 | 2007 "#define syntax" | ||
| 67 | 2008 "'%c' : unexpected in macro definition" | ||
| 68 | 2009 "reuse of macro formal '%s'" | ||
| 69 | 2010 "'%c' : unexpected in formal list" | ||
| 70 | 2011 "'%s' : definition too big" | ||
| 71 | 2012 "missing name following '<'" | ||
| 72 | 2013 "missing '>'" | ||
| 73 | 2014 "preprocessor command must start as first non-whitespace" | ||
| 74 | 2015 "too many chars in constant" | ||
| 75 | 2016 "no closing single quote" | ||
| 76 | 2017 "illegal escape sequence" | ||
| 77 | 2018 "unknown character '0x%x'" | ||
| 78 | 2019 "expected preprocessor command, found '%c'" | ||
| 79 | 2020 "bad octal number '%c'" | ||
| 80 | 2021 "expected exponent value, not '%c'" | ||
| 81 | 2022 "'%ld' : too big for char" | ||
| 82 | 2023 "divide by 0" | ||
| 83 | 2024 "mod by 0" | ||
| 84 | 2025 "'%s' : enum/struct/union type redefinition" | ||
| 85 | 2026 "'%s' : member of enum redefinition" | ||
| 86 | 2028 "struct/union member needs to be inside a struct/union" | ||
| 87 | 2029 "'%Fs' : bit-fields only allowed in structs" | ||
| 88 | 2030 "'%Fs' : struct/union member redefinition" | ||
| 89 | 2031 "'%Fs' : function cannot be struct/union member" | ||
| 90 | 2032 "'%Fs' : base type with near/far/huge not allowed" | ||
| 91 | 2033 "'%Fs' : bit-field cannot have indirection" | ||
| 92 | 2034 "'%Fs' : bit-field type too small for number of bits" | ||
| 93 | 2035 "enum/struct/union '%Fs' : unknown size" | ||
| 94 | 2036 "left of '%s%s' must have a struct/union type" | ||
| 95 | 2037 "left of '%s' specifies undefined struct/union '%Fs'" | ||
| 96 | 2038 "'%s' : not struct/union member" | ||
| 97 | 2039 "'->' requires struct/union pointer" | ||
| 98 | 2040 "'.' requires struct/union name" | ||
| 99 | 2042 "signed/unsigned keywords mutually exclusive" | ||
| 100 | 2043 "illegal break" | ||
| 101 | 2044 "illegal continue" | ||
| 102 | 2045 "'%s' : label redefined" | ||
| 103 | 2046 "illegal case" | ||
| 104 | 2047 "illegal default" | ||
| 105 | 2048 "more than one default" | ||
| 106 | 2050 "non-integral switch expression" | ||
| 107 | 2051 "case expression not constant" | ||
| 108 | 2052 "case expression not integral" | ||
| 109 | 2053 "case value %d already used" | ||
| 110 | 2054 "expected '(' to follow '%Fs'" | ||
| 111 | 2055 "expected formal parameter list, not a type list" | ||
| 112 | 2056 "illegal expression" | ||
| 113 | 2057 "expected constant expression" | ||
| 114 | 2058 "constant expression is not integral" | ||
| 115 | 2059 "syntax error : '%s'" | ||
| 116 | 2060 "syntax error : EOF" | ||
| 117 | 2061 "syntax error : identifier '%s'" | ||
| 118 | 2062 "type '%s' unexpected" | ||
| 119 | 2063 "'%s' : not a function" | ||
| 120 | 2064 "term does not evaluate to a function" | ||
| 121 | 2065 "'%s' : undefined" | ||
| 122 | 2066 "cast to function returning . . . is illegal" | ||
| 123 | 2067 "cast to array type is illegal" | ||
| 124 | 2068 "illegal cast" | ||
| 125 | 2069 "cast of 'void' term to non-void" | ||
| 126 | 2070 "illegal sizeof operand" | ||
| 127 | 2071 "'%Fs' : bad storage class" | ||
| 128 | 2072 "'%Fs' : initialization of a function" | ||
| 129 | 2073 "'%Fs' : cannot initialize array in function" | ||
| 130 | 2074 "'%Fs' : cannot initialize struct/union in function" | ||
| 131 | 2075 "'%Fs' : array initialization needs curly braces" | ||
| 132 | 2076 "'%Fs' : struct/union initialization needs curly braces" | ||
| 133 | 2077 "non-integral field initializer '%Fs'" | ||
| 134 | 2078 "too many initializers" | ||
| 135 | 2079 "'%Fs' uses undefined struct/union '%Fs'" | ||
| 136 | 2082 "redefinition of formal parameter '%Fs'" | ||
| 137 | 2083 "array '%Fs' already has a size" | ||
| 138 | 2084 "function '%Fs' already has a body" | ||
| 139 | 2085 "'%Fs' : not in formal parameter list" | ||
| 140 | 2086 "'%Fs' : redefinition" | ||
| 141 | 2087 "'%Fs' : missing subscript" | ||
| 142 | 2088 "use of undefined enum/struct/union '%s'" | ||
| 143 | 2089 "typedef specifies a near/far function" | ||
| 144 | 2090 "function returns array" | ||
| 145 | 2091 "function returns function" | ||
| 146 | 2092 "array element type cannot be function" | ||
| 147 | 2093 "cannot initialize a static or struct with address of automatic vars" | ||
| 148 | 2094 "label '%Fs' was undefined" | ||
| 149 | 2095 "'%Fs' : actual has type void : parameter %d" | ||
| 150 | 2096 "struct/union comparison illegal" | ||
| 151 | 2097 "illegal initialization" | ||
| 152 | 2098 "non-address expression" | ||
| 153 | 2099 "non-constant offset" | ||
| 154 | 2100 "illegal indirection" | ||
| 155 | 2101 "'&' on constant" | ||
| 156 | 2102 "'&' requires lvalue" | ||
| 157 | 2103 "'&' on register variable" | ||
| 158 | 2104 "'&' on bit-field ignored" | ||
| 159 | 2105 "'%s' needs lvalue" | ||
| 160 | 2106 "'%s' : left operand must be lvalue" | ||
| 161 | 2107 "illegal index, indirection not allowed" | ||
| 162 | 2108 "non-integral index" | ||
| 163 | 2109 "subscript on non-array" | ||
| 164 | 2110 "'+' : 2 pointers" | ||
| 165 | 2111 "pointer + non-integral value" | ||
| 166 | 2112 "illegal pointer subtraction" | ||
| 167 | 2113 "'-' : right operand pointer" | ||
| 168 | 2114 "'%s' : pointer on left; needs integral right" | ||
| 169 | 2115 "'%s' : incompatible types" | ||
| 170 | 2116 "'%s' : bad %s operand" | ||
| 171 | 2117 "'%s' : illegal for struct/union" | ||
| 172 | 2118 "negative subscript" | ||
| 173 | 2119 "'typedefs' both define indirection" | ||
| 174 | 2120 "'void' illegal with all types" | ||
| 175 | 2121 "typedef specifies different enum" | ||
| 176 | 2122 "typedef specifies different struct" | ||
| 177 | 2123 "typedef specifies different union" | ||
| 178 | 2125 "%Fs : allocation exceeds 64K" /* QC, c23 */ | ||
| 179 | 2126 "%Fs : auto allocation exceeds %s" /* QC, c23 */ | ||
| 180 | 2127 "parameter allocation exceeds 32K" /* QC, c23 */ | ||
| 181 | 2130 "#line expected a string containing the file name, found '%s'" | ||
| 182 | 2131 "attributes specify more than one near/far/huge" | ||
| 183 | 2132 "syntax error : unexpected identifier" | ||
| 184 | 2133 "array '%Fs' : unknown size" | ||
| 185 | 2134 "'%Fs' : struct/union too large" | ||
| 186 | 2135 "missing ')' in macro expansion" | ||
| 187 | 2137 "empty character constant" | ||
| 188 | 2138 "unmatched close comment '*/'" | ||
| 189 | 2139 "type following '%s' is illegal" | ||
| 190 | 2140 "argument type cannot be function returning . . ." | ||
| 191 | 2141 "value out of range for enum constant" | ||
| 192 | 2142 "ellipsis requires three periods" | ||
| 193 | 2143 "syntax error : missing '%s' before '%s'" | ||
| 194 | 2144 "syntax error : missing '%s' before type '%Fs'" | ||
| 195 | 2145 "syntax error : missing '%s' before identifier" | ||
| 196 | 2146 "syntax error : missing '%s' before identifier '%s'" | ||
| 197 | 2147 "unknown size" | ||
| 198 | 2148 "array too large" | ||
| 199 | 2149 "'%Fs' : named bit-field cannot have 0 width" | ||
| 200 | 2150 "'%Fs' : bit-field must have type int, signed int, or unsigned int" | ||
| 201 | 2151 "more than one cdecl/fortran/pascal attribute specified" | ||
| 202 | 2152 "'%s' : pointers to functions with different attributes" | ||
| 203 | 2153 "hex constants must have at least 1 hex digit" | ||
| 204 | 2154 "'%s' : does not refer to a segment" | ||
| 205 | 2155 "'%s' : already in a segment" | ||
| 206 | 2156 "pragma must be at outer level" | ||
| 207 | 2157 "'%s' : must be declared before use in pragma list" | ||
| 208 | 2158 "'%s' : is a function" | ||
| 209 | 2159 "more than one storage class specified" | ||
| 210 | 2160 "## cannot occur at the beginning of a macro definition" | ||
| 211 | 2161 "## cannot occur at the end of a macro definition" | ||
| 212 | 2162 "expected macro formal parameter" | ||
| 213 | 2163 "'%s' : not available as an intrinsic" | ||
| 214 | 2164 "'%s' : intrinsic was not declared" | ||
| 215 | 2165 "'%s' : cannot modify pointers to data" | ||
| 216 | 2166 "lval specifies 'const' object" | ||
| 217 | 2167 "'%Fs' : too many actual parameters for intrinsic" | ||
| 218 | 2168 "'%Fs' : too few actual parameters for intrinsic" | ||
| 219 | 2169 "'%Fs' : is an intrinsic, it cannot be defined" | ||
| 220 | 2170 "'%s' : intrinsic not declared as a function" | ||
| 221 | 2171 "'%s' : bad operand" | ||
| 222 | 2172 "'%Fs' : actual is not a pointer : parameter %d" | ||
| 223 | 2173 "'%Fs' : actual is not a pointer : parameter %d, parameter list %d" | ||
| 224 | 2174 "'%Fs' : actual has type void : parameter %d, parameter list %d" | ||
| 225 | 2175 "'%Fs' : unresolved external" /* QC */ | ||
| 226 | 2176 "static far data not supported" /* QC */ | ||
| 227 | 2177 "constant too big" | ||
| 228 | 2178 "'%s' : storage class for same_seg variables must be 'extern'" | ||
| 229 | 2179 "'%Fs' : was used in same_seg, but storage class is no longer 'extern'" | ||
| 230 | 2180 "controlling expression has type 'void'" | ||
| 231 | 2181 "pragma requires command line option '%s'" /* QC */ | ||
| 232 | 2182 "'%Fs' : 'void' on variable" | ||
| 233 | 2183 "'%Fs' : 'interrupt' function must be 'far'" | ||
| 234 | 2184 "'%Fs' : '%s' function cannot be 'pascal/fortran'" | ||
| 235 | 2186 "'%Fs' : 'saveregs/interrupt' modifiers mutually exclusive" | ||
| 236 | 2187 "cast of near function pointer to far function pointer" | ||
| 237 | 2188 "#error : %s" | ||
| 238 | 2190 "'%s' : is a text segment" | ||
| 239 | 2191 "'%s' : is a data segment" | ||
| 240 | 2192 "'%s' : function has already been defined" | ||
| 241 | 2000 "UNKNOWN ERROR\n\t\tContact Microsoft Technical Support" | ||
| 242 | |||
| 243 | /* warnings */ | ||
| 244 | |||
| 245 | 4001 "macro '%s' requires parameters" | ||
| 246 | 4002 "too many actual parameters for macro '%s'" | ||
| 247 | 4003 "not enough actual parameters for macro '%s'" | ||
| 248 | 4004 "missing close parenthesis after 'defined'" | ||
| 249 | 4005 "'%s' : redefinition" | ||
| 250 | 4006 "#undef expected an identifier" | ||
| 251 | 4009 "string too big, trailing chars truncated" | ||
| 252 | 4011 "identifier truncated to '%s'" | ||
| 253 | 4012 "float constant in a cross compilation" | ||
| 254 | 4013 "constant too big" | ||
| 255 | 4014 "'%Fs' : bit-field type must be unsigned" | ||
| 256 | 4015 "'%Fs' : bit-field type must be integral" | ||
| 257 | 4016 "'%s' : no function return type, using 'int' as default" | ||
| 258 | 4017 "cast of int expression to far pointer" | ||
| 259 | 4020 "'%Fs' : too many actual parameters" | ||
| 260 | 4021 "'%Fs' : too few actual parameters" | ||
| 261 | 4022 "'%Fs' : pointer mismatch : parameter %d" | ||
| 262 | 4024 "'%Fs' : different types : parameter %d" | ||
| 263 | 4025 "function declaration specified variable argument list" | ||
| 264 | 4026 "function was declared with formal argument list" | ||
| 265 | 4027 "function was declared without formal argument list" | ||
| 266 | 4028 "parameter %d declaration different" | ||
| 267 | 4029 "declared parameter list different from definition" | ||
| 268 | 4030 "first parameter list is longer than the second" | ||
| 269 | 4031 "second parameter list is longer than the first" | ||
| 270 | 4032 "unnamed struct/union as parameter" | ||
| 271 | 4033 "function must return a value" | ||
| 272 | 4034 "sizeof returns 0" | ||
| 273 | 4035 "'%Fs' : no return value" | ||
| 274 | 4036 "unexpected formal parameter list" | ||
| 275 | 4037 "'%Fs' : formal parameters ignored" | ||
| 276 | 4038 "'%Fs' : formal parameter has bad storage class" | ||
| 277 | 4039 "'%Fs' : function used as an argument" | ||
| 278 | 4040 "near/far/huge on '%Fs' ignored" | ||
| 279 | 4041 "formal parameter '%s' is redefined" | ||
| 280 | 4042 "'%Fs' : has bad storage class" | ||
| 281 | 4044 "huge on '%Fs' ignored, must be an array" | ||
| 282 | 4045 "'%s' : array bounds overflow" | ||
| 283 | 4046 "'&' on function/array, ignored" | ||
| 284 | 4047 "'%s' : different levels of indirection" | ||
| 285 | 4048 "array's declared subscripts different" | ||
| 286 | 4049 "'%s' : indirection to different types" | ||
| 287 | 4051 "data conversion" | ||
| 288 | 4052 "different enum types" | ||
| 289 | 4053 "at least one void operand" | ||
| 290 | 4060 "conversion of long address to short address" /* QC, c23 */ | ||
| 291 | 4061 "long/short mismatch in argument : conversion supplied" /* QC, c23 */ | ||
| 292 | 4062 "near/far mismatch in argument : conversion supplied" /* QC, c23 */ | ||
| 293 | 4067 "unexpected characters following '%s' directive - newline expected" | ||
| 294 | 4068 "unknown pragma" | ||
| 295 | 4071 "'%Fs' : no function prototype given" | ||
| 296 | 4074 "non standard extension used - '%s'" | ||
| 297 | 4075 "size of switch expression or case constant too large - converted to int" | ||
| 298 | 4076 "'%s' : may be used on integral types only" | ||
| 299 | 4077 "unknown check_stack option" | ||
| 300 | 4079 "unexpected token '%s'" | ||
| 301 | 4080 "expected 'identifier' for segment name, found '%s'" | ||
| 302 | 4081 "expected a comma, found '%s'" | ||
| 303 | 4082 "expected an identifier, found '%s'" | ||
| 304 | 4083 "expected '(', found '%s'" | ||
| 305 | 4084 "expected a pragma keyword, found '%s'" | ||
| 306 | 4085 "expected [on | off]" | ||
| 307 | 4086 "expected [1 | 2 | 4]" | ||
| 308 | 4087 "'%Fs' : declared with 'void' parameter list" | ||
| 309 | 4088 "'%Fs' : pointer mismatch : parameter %d, parameter list %d" | ||
| 310 | 4089 "'%Fs' : different types : parameter %d, parameter list %d" | ||
| 311 | 4090 "different 'const' attributes" | ||
| 312 | 4091 "no symbols were declared" | ||
| 313 | 4092 "untagged enum/struct/union declared no symbols" | ||
| 314 | 4093 "unescaped newline in character constant in non-active code" | ||
| 315 | 4094 "unexpected newline" | ||
| 316 | 4095 "expected ')', found '%s'" | ||
| 317 | 4096 "huge treated as far" /* QC */ | ||
| 318 | 4098 "void function returning a value" | ||
| 319 | 4099 "expected ')', (too many arguments?)" | ||
| 320 | 4100 "'%Fs' : unreferenced formal parameter" | ||
| 321 | 4101 "'%Fs' : unreferenced local variable" | ||
| 322 | 4102 "'%Fs' : unreferenced label" | ||
| 323 | 4103 "'%Fs' : function definition used as prototype" | ||
| 324 | 4104 "'%s' : near data in same_seg pragma, ignored" | ||
| 325 | 4105 "'%Fs' : code modifiers only on function or pointer to function" | ||
| 326 | 4106 "pragma requires integer between 1 and 127" | ||
| 327 | 4107 "pragma requires integer between 15 and 255" | ||
| 328 | 4108 "pragma requires integer between 79 and 132" | ||
| 329 | 4109 "unexpected identifier '%s'" | ||
| 330 | 4110 "unexpected token 'int constant'" | ||
| 331 | 4111 "unexpected token 'string'" | ||
| 332 | 4112 "macro name '%s' is reserved, %s ignored" | ||
| 333 | 4113 "function parameter lists differed" | ||
| 334 | 4000 "UNKNOWN WARNING\n\t\tContact Microsoft Technical Support" | ||
diff --git a/v4.0/src/TOOLS/C1.EXE b/v4.0/src/TOOLS/C1.EXE new file mode 100644 index 0000000..a60e821 --- /dev/null +++ b/v4.0/src/TOOLS/C1.EXE | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/C1L.EXE b/v4.0/src/TOOLS/C1L.EXE new file mode 100644 index 0000000..e90c0aa --- /dev/null +++ b/v4.0/src/TOOLS/C1L.EXE | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/C2.EXE b/v4.0/src/TOOLS/C2.EXE new file mode 100644 index 0000000..438ce70 --- /dev/null +++ b/v4.0/src/TOOLS/C2.EXE | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/C23.ERR b/v4.0/src/TOOLS/C23.ERR new file mode 100644 index 0000000..966407d --- /dev/null +++ b/v4.0/src/TOOLS/C23.ERR | |||
| @@ -0,0 +1,73 @@ | |||
| 1 | /* fatals */ | ||
| 2 | |||
| 3 | 1001 "Internal Compiler Error\n\t\t(compiler file '%s', line %d)\n\t\tContact Microsoft Technical Support" | ||
| 4 | 1002 "out of heap space" | ||
| 5 | 1003 "error count exceeds %d; stopping compilation" | ||
| 6 | 1004 "unexpected EOF" | ||
| 7 | 1005 "string too big for buffer" | ||
| 8 | 1006 "write error on compiler intermediate file" | ||
| 9 | 1007 "unrecognized flag '%s' in '%s'" | ||
| 10 | 1027 "DGROUP data allocation exceeds 64K" | ||
| 11 | 1028 "infinite recursion in cnstrpush" | ||
| 12 | 1029 "there are > 512 bytes of arguments" | ||
| 13 | 1030 "there are > 512 bytes of local variables" | ||
| 14 | 1031 "limit exceeded for nesting function calls" | ||
| 15 | 1032 "cannot open object listing file '%s'" | ||
| 16 | 1033 "cannot open assembly language output file '%s'" | ||
| 17 | 1034 "cannot open source file '%s'" | ||
| 18 | 1035 "expression too complex, please simplify" | ||
| 19 | 1036 "cannot open source listing file '%s'" | ||
| 20 | 1037 "cannot open object file '%s'" | ||
| 21 | 1038 "unexpected end of file in Pass 3" | ||
| 22 | 1039 "unrecoverable heap overflow in Pass 3" | ||
| 23 | 1040 "unexpected EOF in source file '%s'" | ||
| 24 | 1041 "cannot open compiler intermediate file - no more files" | ||
| 25 | 1042 "cannot open compiler intermediate file - no such file or directory" | ||
| 26 | 1043 "cannot open compiler intermediate file" | ||
| 27 | 1044 "out of disk space for compiler intermediate file" | ||
| 28 | 1045 "floating-point overflow" | ||
| 29 | 1046 "bad %s flag, would overwrite '%s' with '%s'" | ||
| 30 | 1047 "too many %s flags, '%s'" | ||
| 31 | 1048 "unknown option '%c' in '%s'" | ||
| 32 | 1049 "invalid numerical argument '%s'" | ||
| 33 | 1050 "%s : code segment too large" | ||
| 34 | 1051 "program too complex" | ||
| 35 | 1058 "floating point expression too complex - would overflow NDP stack" | ||
| 36 | 1064 "too many text segments" | ||
| 37 | 1000 "UNKNOWN FATAL ERROR\n\t\tContact Microsoft Technical Support" | ||
| 38 | |||
| 39 | /* errors */ | ||
| 40 | |||
| 41 | 2023 "divide by 0" | ||
| 42 | 2024 "mod by 0" | ||
| 43 | 2125 "%s : allocation exceeds 64K" | ||
| 44 | 2126 "%s : automatic allocation exceeds %s" | ||
| 45 | 2127 "parameter allocation exceeds 32K" | ||
| 46 | 2128 "%s : huge array cannot be aligned to segment boundary" | ||
| 47 | 2129 "static function '%s' not found" | ||
| 48 | 2189 "constant item, -Gm, and data_seg pragma are incompatible" | ||
| 49 | 2000 "UNKNOWN ERROR\n\t\tContact Microsoft Technical Support" | ||
| 50 | |||
| 51 | /* warnings */ | ||
| 52 | |||
| 53 | 4054 "insufficient memory may affect optimization" | ||
| 54 | 4055 "constant moved out of CONST even though -Gm specified" | ||
| 55 | 4056 "overflow in constant arithmetic" | ||
| 56 | 4057 "overflow in constant multiplication" | ||
| 57 | 4058 "address of frame variable taken, DS != SS" | ||
| 58 | 4059 "segment lost in conversion" | ||
| 59 | 4060 "conversion of long address to short address" | ||
| 60 | 4061 "long/short mismatch in argument : conversion supplied" | ||
| 61 | 4062 "near/far mismatch in argument : conversion supplied" | ||
| 62 | 4063 "%s : function too large for post-optimizer" | ||
| 63 | 4064 "procedure too large, skipping %s optimization and continuing" | ||
| 64 | 4065 "recoverable heap overflow in post-optimizer - some optimizations may be missed" | ||
| 65 | 4066 "local symbol table overflow - some local symbols may be missing in listings" | ||
| 66 | 4069 "conversion of near pointer to long integer" | ||
| 67 | 4070 "function called as procedure" | ||
| 68 | 4072 "Insufficient memory to process debugging information" | ||
| 69 | 4073 "scoping too deep, deepest scoping merged when debugging" | ||
| 70 | 4078 "loss of debugging information caused by optimization" | ||
| 71 | 4185 "near call to %s in different segment" | ||
| 72 | 4186 "string too long. Truncated to %d characters" | ||
| 73 | 4000 "UNKNOWN WARNING\n\t\tContact Microsoft Technical Support" | ||
diff --git a/v4.0/src/TOOLS/C3.EXE b/v4.0/src/TOOLS/C3.EXE new file mode 100644 index 0000000..072ccaa --- /dev/null +++ b/v4.0/src/TOOLS/C3.EXE | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/CL.ERR b/v4.0/src/TOOLS/CL.ERR new file mode 100644 index 0000000..bd4c9e1 --- /dev/null +++ b/v4.0/src/TOOLS/CL.ERR | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | /* fatal messages */ | ||
| 2 | |||
| 3 | 1001 "could not execute '%s'" | ||
| 4 | 1002 "too many open files, cannot redirect '%s'" | ||
| 5 | 1000 "UNKNOWN COMMAND LINE FATAL ERROR\n\t\tContact Microsoft Technical Support" | ||
| 6 | |||
| 7 | /* error messages */ | ||
| 8 | |||
| 9 | 2001 "too many symbols predefined with -D" | ||
| 10 | 2002 "a previously defined model specification has been overridden" | ||
| 11 | 2003 "missing source file name" | ||
| 12 | 2007 "bad %s flag, would overwrite '%s' with '%s'" | ||
| 13 | 2008 "too many %s flags, '%s'" | ||
| 14 | 2009 "unknown option '%c' in '%s'" | ||
| 15 | 2010 "unknown floating point option" | ||
| 16 | 2011 "only one floating point model allowed" | ||
| 17 | 2012 "too many linker flags on command line" | ||
| 18 | 2013 "incomplete model specification" | ||
| 19 | /* 2014 "-ND not allowed with -Ad" */ | ||
| 20 | 2015 "assembly files are not handled" | ||
| 21 | 2016 "-Gw and -ND %s are incompatible" | ||
| 22 | 2017 "-Gw and -Au flags are incompatible" | ||
| 23 | 2018 "cannot open linker cmd file" | ||
| 24 | 2019 "cannot overwrite the source file, '%s'" | ||
| 25 | 2020 "-Gc option requires extended keywords to be enabled (-Ze)" | ||
| 26 | 2021 "invalid numerical argument '%s'" | ||
| 27 | 2022 "cannot open help file, '%s'" | ||
| 28 | 2023 "invalid model specification - small model only" | ||
| 29 | 2024 "-Gm and -ND %s are incompatible" | ||
| 30 | 2025 "missing argument" | ||
| 31 | 2000 "UNKNOWN COMMAND LINE ERROR\n\t\tContact Microsoft Technical Support" | ||
| 32 | |||
| 33 | /* warning messages */ | ||
| 34 | |||
| 35 | 4001 "listing has precedence over assembly output" | ||
| 36 | 4002 "ignoring unknown flag '%s'" | ||
| 37 | 4003 "80186/286 selected over 8086 for code generation" | ||
| 38 | 4004 "optimizing for time over space" | ||
| 39 | 4005 "could not execute '%s';\nPlease enter new file name (full path) or Ctrl-C to quit: " | ||
| 40 | 4006 "only one of -P/-E/-EP allowed, -P selected" | ||
| 41 | 4007 "-C ignored (must also specify -P or -E or -EP)" | ||
| 42 | 4008 "non-standard model -- defaulting to large model libraries" | ||
| 43 | 4009 "threshold only for far/huge data, ignored" | ||
| 44 | 4010 "-Gp not implemented, ignored" | ||
| 45 | 4011 "preprocessing overrides source listing" | ||
| 46 | 4012 "function declarations override source listing" | ||
| 47 | 4013 "combined listing has precedence over object listing" | ||
| 48 | 4014 "invalid value %d for '%s'. Default %d is used" | ||
| 49 | 4015 "different default models - defaulting to %s model" | ||
| 50 | 4017 "conflicting stack checking options - stack checking disabled" | ||
| 51 | 4019 "string too long. Truncated to %d characters" | ||
| 52 | 4000 "UNKNOWN COMMAND LINE WARNING\n\t\tContact Microsoft Technical Support" | ||
diff --git a/v4.0/src/TOOLS/CL.EXE b/v4.0/src/TOOLS/CL.EXE new file mode 100644 index 0000000..bfa8f4a --- /dev/null +++ b/v4.0/src/TOOLS/CL.EXE | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/CL.HLP b/v4.0/src/TOOLS/CL.HLP new file mode 100644 index 0000000..f8e5da0 --- /dev/null +++ b/v4.0/src/TOOLS/CL.HLP | |||
| @@ -0,0 +1,79 @@ | |||
| 1 | C COMPILER OPTIONS | ||
| 2 | -MEMORY MODEL- | ||
| 3 | /AS small model (default) | ||
| 4 | /AC compact model | ||
| 5 | /AM medium model | ||
| 6 | /AL large model | ||
| 7 | /AH huge model | ||
| 8 | -OPTIMIZATION- | ||
| 9 | /O enable optimization (same as /Ot) | ||
| 10 | /Oa ignore aliasing | ||
| 11 | /Od disable optimizations | ||
| 12 | /Oi enable intrinsic functions | ||
| 13 | /Ol enable loop optimizations | ||
| 14 | /On disable "unsafe" optimizations | ||
| 15 | /Op enable precision optimizations | ||
| 16 | /Or disable in_line return | ||
| 17 | /Os optimize for space | ||
| 18 | /Ot optimize for speed (default) | ||
| 19 | /Ox max. optimization (/Oailt /Gs) | ||
| 20 | -CODE GENERATION- | ||
| 21 | /G0 8086 instructions (default) | ||
| 22 | /G1 186 instructions | ||
| 23 | /G2 286 instructions | ||
| 24 | /Gm put strings in constant segment | ||
| 25 | /Gc Pascal style function calls | ||
| 26 | /Gs no stack checking | ||
| 27 | /Gt[number] data size threshold | ||
| 28 | -OUTPUT FILES- | ||
| 29 | /Fa[assembly listing file] | ||
| 30 | /Fb[bound executable file] | ||
| 31 | /Fc[mixed source/object listing file] | ||
| 32 | /Fe<executable file> | ||
| 33 | /Fl[object listing file] | ||
| 34 | /Fm[map file] | ||
| 35 | /Fo<object file> | ||
| 36 | /Fs[source listing file] | ||
| 37 | -PREPROCESSOR- | ||
| 38 | /C don't strip comments | ||
| 39 | /D<name>[=text] define macro | ||
| 40 | /E preprocess to stdout | ||
| 41 | /EP same as /E but no #line | ||
| 42 | /I<name> add #include path | ||
| 43 | /P preprocess to file | ||
| 44 | /U<name> remove predefined macro | ||
| 45 | /u remove all predefined macros | ||
| 46 | /X ignore "standard places" | ||
| 47 | -LANGUAGE- | ||
| 48 | /Za disable extensions | ||
| 49 | /Zd line number information | ||
| 50 | /Ze enable extensions (default) | ||
| 51 | /Zg generate declarations | ||
| 52 | /Zi symbolic debugging information | ||
| 53 | /Zl remove default library info | ||
| 54 | /Zp[n] pack structs on n-byte boundary | ||
| 55 | /Zs syntax check only | ||
| 56 | -FLOATING POINT- | ||
| 57 | /FPa calls with altmath | ||
| 58 | /FPc calls with emulator | ||
| 59 | /FPc87 calls with 8087 library | ||
| 60 | /FPi inline with emulator (default) | ||
| 61 | /FPi87 inline with 8087 | ||
| 62 | -SOURCE LISTING- | ||
| 63 | /Sl<columns> set line width | ||
| 64 | /Sp<lines> set page length | ||
| 65 | /St<string> set title string | ||
| 66 | /Ss<string> set subtitle string | ||
| 67 | -MISCELLANEOUS- | ||
| 68 | /c compile only, no link | ||
| 69 | /H<number> external name length | ||
| 70 | /J default char type is unsigned | ||
| 71 | /Tc<file> compile file without .c | ||
| 72 | /V<string> set version string | ||
| 73 | /W<number> warning level | ||
| 74 | -LINKING- | ||
| 75 | /F<hex_number> stack size (hex. bytes) | ||
| 76 | /Lc link compatibility mode executable | ||
| 77 | /Lr link compatibility mode executable | ||
| 78 | /Lp link protect mode executable | ||
| 79 | /link [linker_options_and_libraries] | ||
diff --git a/v4.0/src/TOOLS/COMPRESS.COM b/v4.0/src/TOOLS/COMPRESS.COM new file mode 100644 index 0000000..df8b0d1 --- /dev/null +++ b/v4.0/src/TOOLS/COMPRESS.COM | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/CONVERT.EXE b/v4.0/src/TOOLS/CONVERT.EXE new file mode 100644 index 0000000..0511410 --- /dev/null +++ b/v4.0/src/TOOLS/CONVERT.EXE | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/DBOF.EXE b/v4.0/src/TOOLS/DBOF.EXE new file mode 100644 index 0000000..1d46e71 --- /dev/null +++ b/v4.0/src/TOOLS/DBOF.EXE | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/EXE2BIN.EXE b/v4.0/src/TOOLS/EXE2BIN.EXE new file mode 100644 index 0000000..8f42567 --- /dev/null +++ b/v4.0/src/TOOLS/EXE2BIN.EXE | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/EXEC.EXE b/v4.0/src/TOOLS/EXEC.EXE new file mode 100644 index 0000000..93176b7 --- /dev/null +++ b/v4.0/src/TOOLS/EXEC.EXE | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/EXEFIX.EXE b/v4.0/src/TOOLS/EXEFIX.EXE new file mode 100644 index 0000000..30728e6 --- /dev/null +++ b/v4.0/src/TOOLS/EXEFIX.EXE | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/EXEMOD.EXE b/v4.0/src/TOOLS/EXEMOD.EXE new file mode 100644 index 0000000..a8bef05 --- /dev/null +++ b/v4.0/src/TOOLS/EXEMOD.EXE | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/EXEPACK.EXE b/v4.0/src/TOOLS/EXEPACK.EXE new file mode 100644 index 0000000..79af609 --- /dev/null +++ b/v4.0/src/TOOLS/EXEPACK.EXE | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/LIB.EXE b/v4.0/src/TOOLS/LIB.EXE new file mode 100644 index 0000000..fef21fb --- /dev/null +++ b/v4.0/src/TOOLS/LIB.EXE | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/LINK.EXE b/v4.0/src/TOOLS/LINK.EXE new file mode 100644 index 0000000..a5b1be6 --- /dev/null +++ b/v4.0/src/TOOLS/LINK.EXE | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/MASM.EXE b/v4.0/src/TOOLS/MASM.EXE new file mode 100644 index 0000000..eacbb63 --- /dev/null +++ b/v4.0/src/TOOLS/MASM.EXE | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/MENUBLD.EXE b/v4.0/src/TOOLS/MENUBLD.EXE new file mode 100644 index 0000000..1acabed --- /dev/null +++ b/v4.0/src/TOOLS/MENUBLD.EXE | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/NMAKE.EXE b/v4.0/src/TOOLS/NMAKE.EXE new file mode 100644 index 0000000..3376989 --- /dev/null +++ b/v4.0/src/TOOLS/NMAKE.EXE | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/NOSRVBLD.EXE b/v4.0/src/TOOLS/NOSRVBLD.EXE new file mode 100644 index 0000000..0258d2c --- /dev/null +++ b/v4.0/src/TOOLS/NOSRVBLD.EXE | |||
| Binary files differ | |||
diff --git a/v4.0/src/TOOLS/TOOLS.INI b/v4.0/src/TOOLS/TOOLS.INI new file mode 100644 index 0000000..3c6a267 --- /dev/null +++ b/v4.0/src/TOOLS/TOOLS.INI | |||
| @@ -0,0 +1,73 @@ | |||
| 1 | |||
| 2 | [nmake] | ||
| 3 | |||
| 4 | ############################################################################# | ||
| 5 | # # | ||
| 6 | # These are the built in rules and path definitions used by the new MS Make # | ||
| 7 | # Utility (NMAKE). The following variables are set externaly (ie set in the # | ||
| 8 | # individual makefiles. # | ||
| 9 | # # | ||
| 10 | # extasw = The 'extra assembly switch' variable is optionaly used in the # | ||
| 11 | # makefile to specify special MASM command line switches. # | ||
| 12 | # # | ||
| 13 | # extcsw = The 'extra C switch' variable is optionaly used in the makefile # | ||
| 14 | # to specify special C compiler command line switches. # | ||
| 15 | # # | ||
| 16 | # inc = The include file search path from the utility being built to the # | ||
| 17 | # INC directory. Used if needed. # | ||
| 18 | # # | ||
| 19 | # dos = The include file search path from the utility being built to the # | ||
| 20 | # DOS directory. Used if needed. # | ||
| 21 | # # | ||
| 22 | # hinc = The include file search path from the utility being built to the # | ||
| 23 | # H directory. Used if needed for C source compilation. # | ||
| 24 | # # | ||
| 25 | ############################################################################# | ||
| 26 | |||
| 27 | ########## Definitionms for the Assembler ########## | ||
| 28 | |||
| 29 | asm =masm | ||
| 30 | aflags =-Mx -t $(extasw) | ||
| 31 | ainc =-I. -I$(inc) -I$(dos) | ||
| 32 | |||
| 33 | ########## Definitions for C compiler ########## | ||
| 34 | |||
| 35 | cc =cl | ||
| 36 | cflags =-AS -Os -Zp $(extcsw) | ||
| 37 | cinc =-I. -I$(hinc) | ||
| 38 | |||
| 39 | ########## Definitions for linker ########## | ||
| 40 | |||
| 41 | link =link | ||
| 42 | |||
| 43 | ########## Built-in rules ########## | ||
| 44 | |||
| 45 | .SUFFIXES: | ||
| 46 | .SUFFIXES: .c .obj .lst .exe .com .cod .inc .skl .cl1 .ctl .asm .idx .msg | ||
| 47 | |||
| 48 | .asm.obj: | ||
| 49 | $(asm) $(aflags) $(ainc) $*.asm,$*.obj; | ||
| 50 | |||
| 51 | .asm.lst: | ||
| 52 | $(asm) -l $(aflags) $(ainc) $*.asm; | ||
| 53 | |||
| 54 | .c.obj: | ||
| 55 | $(cc) -c $(cflags) $(cinc) -Fo$*.obj $*.c | ||
| 56 | |||
| 57 | .c.lst: | ||
| 58 | $(cc) -c $(cflags) $(cinc) -fc$*.cod -fo$*.obj $*.c | ||
| 59 | |||
| 60 | .exe.com: | ||
| 61 | reloc $*.exe $*.com | ||
| 62 | |||
| 63 | .skl.cl1: | ||
| 64 | nosrvbld $*.skl $(msg)\$(COUNTRY).msg | ||
| 65 | |||
| 66 | .skl.ctl: | ||
| 67 | buildmsg $(msg)\$(COUNTRY) $*.skl | ||
| 68 | |||
| 69 | .msg.idx: | ||
| 70 | attrib -R $*.msg | ||
| 71 | buildidx $*.msg | ||
| 72 | attrib +R $*.msg | ||
| 73 | |||