OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / user / mawk / msdos / msc.h
1
2 /********************************************
3 msc.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 /* Microsoft C 6.0A under MSDOS */
14
15 /*$Log: msc.h,v $
16  *Revision 1.6  1996/07/28 21:46:16  mike
17  *gnuish patch
18  *
19  * Revision 1.5  1995/08/20  17:44:38  mike
20  * minor fixes to msc and lower case makefile names
21  *
22  * Revision 1.4  1995/01/08  21:50:43  mike
23  * remove extra #endif
24  *
25  * Revision 1.3  1994/10/08  19:12:05  mike
26  * SET_PROGNAME
27  *
28  * Revision 1.2  1994/10/08  18:49:28  mike
29  * add MAX__INT etc
30  *
31  * Revision 1.1  1994/10/08  18:24:40  mike
32  * moved from config directory
33  *
34 */
35
36 #ifndef   CONFIG_H
37 #define   CONFIG_H      1
38
39
40 #define   MSDOS_MSC             1
41 #define   MSDOS                 1
42
43 #define SIZE_T_STDDEF_H         1
44 #define MAX__INT 0x7fff
45 #define MAX__LONG 0x7fffffff
46 #define HAVE_FAKE_PIPES  1
47
48
49 #define   FPE_TRAPS_ON          1
50 #define   NOINFO_SIGFPE         1
51
52 /* how to test far pointers have the same segment */
53 #define SAMESEG(p,q) \
54   (((unsigned long)(p)^(unsigned long)(q))<0x10000L)
55
56 #if HAVE_REARGV
57 #define  SET_PROGNAME()  reargv(&argc,&argv) ; progname = argv[0]
58 #else
59 #define  SET_PROGNAME()  progname = "mawk"
60 #ifdef OS2
61 # ifdef MSDOS
62 #  define DOS_STRING "dos+os2"
63 # else
64 #  define DOS_STRING "os2"
65 # endif
66 #endif
67 #endif
68
69 #endif  /* CONFIG_H  */