File: tcc.h

package info (click to toggle)
mawk 1.3.3-5
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,204 kB
  • ctags: 1,530
  • sloc: ansic: 13,023; yacc: 994; awk: 629; sh: 330; makefile: 164
file content (68 lines) | stat: -rw-r--r-- 1,544 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68

/********************************************
tcc.h
copyright 1994, Michael D. Brennan

This is a source file for mawk, an implementation of
the AWK programming language.

Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
********************************************/

/* Turbo C under MSDOS */

/* $Log: tcc.h,v $
 * Revision 1.5  1995/08/20  17:14:13  mike
 * get size_t from <stddef.h>
 *
 * Revision 1.4  1995/01/08  21:48:00  mike
 * remove extra #endif
 *
 * Revision 1.3  1994/10/08  19:12:07  mike
 * SET_PROGNAME
 *
 * Revision 1.2  1994/10/08  18:49:29  mike
 * add MAX__INT etc
 *
 * Revision 1.1  1994/10/08  18:24:41  mike
 * moved from config directory
 *
*/

#ifndef   CONFIG_H
#define   CONFIG_H      1

#define   MSDOS                 1

#define SIZE_T_STDDEF_H		1

#define MAX__INT 0x7fff
#define MAX__LONG 0x7fffffff
#define HAVE_FAKE_PIPES  1

/*   strerror() used to not work because all the lines were
     terminated with \n -- if no longer true then this can go 
     away
     ??????????????
*/
#define NO_STRERROR	1

/* Turbo C float lib bungles comparison of NaNs  so we
   have to keep traps on */
#define  FPE_TRAPS_ON		1
#define  FPE_ZERODIVIDE		131
#define  FPE_OVERFLOW		132

/* how to test far pointers have the same segment */
#include <dos.h>
#define  SAMESEG(p,q)	(FP_SEG(p)==FP_SEG(q))

#if HAVE_REARGV
#define  SET_PROGNAME()  reargv(&argc,&argv) ; progname = argv[0]
#else
#define  SET_PROGNAME()  progname = "mawk"
#endif


#endif  /* CONFIG_H  */