Tizen 2.0 Release
[external/mawk.git] / msdos / ztc.h
1
2 /********************************************
3 ztc.h
4 copyright 1992-4, 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 /* Zortech C++ under MSDOS */
14
15 /* $Log: ztc.h,v $
16  * Revision 1.3  1994/10/08  19:12:08  mike
17  * SET_PROGNAME
18  *
19  * Revision 1.2  1994/10/08  18:49:30  mike
20  * add MAX__INT etc
21  *
22  * Revision 1.1  1994/10/08  18:24:43  mike
23  * moved from config directory
24  *
25  * Revision 1.1.1.1  1993/07/03  18:58:37  mike
26  * move source to cvs
27  *
28  * Revision 1.1  1992/12/27  01:42:50  mike
29  * Initial revision
30  *
31  * Revision 4.2.1  92/06/01  00:00:00  bmyers
32  * create Zortech C++ version from Borland C++ version
33  * ZTC has matherr function and no info for floating point exceptions.
34  *
35 */
36
37 /*
38 This might not work anymore under mawk 1.2
39 MDB 10/94
40 */
41
42 #ifndef   CONFIG_H
43 #define   CONFIG_H      1
44
45 #define   MSDOS                 1
46
47 #define SIZE_T_HFILE <stddef.h>
48 #define MAX__INT 0x7fff
49 #define MAX__LONG 0x7fffffff
50 #define HAVE_FAKE_PIPES  1
51 /* contradicts comment above ??? */
52 #define   NO_MATHERR          1
53
54
55 #define  FPE_TRAPS_ON           1
56 #define  NOINFO_SIGFPE          1
57
58
59 /* how to test far pointers have the same segment */
60 #include <dos.h>
61 #define  SAMESEG(p,q)   (FP_SEG(p)==FP_SEG(q))
62
63 #if HAVE_REARGV
64 #define  SET_PROGNAME()  reargv(&argc,&argv) ; progname = argv[0]
65 #else
66 #define  SET_PROGNAME()  progname = "mawk"
67 #endif
68
69 #endif  /* CONFIG_H  */