Tizen 2.0 Release
[external/mawk.git] / msdos / tcc.h
1
2 /********************************************
3 tcc.h
4 copyright 1994, Michael D. Brennan
5
6 This is a source file for mawk, an implementation of
7 the AWK programming language.
8
9 Mawk is distributed without warranty under the terms of
10 the GNU General Public License, version 2, 1991.
11 ********************************************/
12
13 /* Turbo C under MSDOS */
14
15 /* $Log: tcc.h,v $
16  * Revision 1.5  1995/08/20  17:14:13  mike
17  * get size_t from <stddef.h>
18  *
19  * Revision 1.4  1995/01/08  21:48:00  mike
20  * remove extra #endif
21  *
22  * Revision 1.3  1994/10/08  19:12:07  mike
23  * SET_PROGNAME
24  *
25  * Revision 1.2  1994/10/08  18:49:29  mike
26  * add MAX__INT etc
27  *
28  * Revision 1.1  1994/10/08  18:24:41  mike
29  * moved from config directory
30  *
31 */
32
33 #ifndef   CONFIG_H
34 #define   CONFIG_H      1
35
36 #define   MSDOS                 1
37
38 #define SIZE_T_STDDEF_H         1
39
40 #define MAX__INT 0x7fff
41 #define MAX__LONG 0x7fffffff
42 #define HAVE_FAKE_PIPES  1
43
44 /*   strerror() used to not work because all the lines were
45      terminated with \n -- if no longer true then this can go 
46      away
47      ??????????????
48 */
49 #define NO_STRERROR     1
50
51 /* Turbo C float lib bungles comparison of NaNs  so we
52    have to keep traps on */
53 #define  FPE_TRAPS_ON           1
54 #define  FPE_ZERODIVIDE         131
55 #define  FPE_OVERFLOW           132
56
57 /* how to test far pointers have the same segment */
58 #include <dos.h>
59 #define  SAMESEG(p,q)   (FP_SEG(p)==FP_SEG(q))
60
61 #if HAVE_REARGV
62 #define  SET_PROGNAME()  reargv(&argc,&argv) ; progname = argv[0]
63 #else
64 #define  SET_PROGNAME()  progname = "mawk"
65 #endif
66
67
68 #endif  /* CONFIG_H  */