source: trunk/minix/commands/yap/in_all.h@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 2.9 KB
RevLine 
[9]1/* Copyright (c) 1985 Ceriel J.H. Jacobs */
2
3/* $Header: /cvsup/minix/src/commands/yap/in_all.h,v 1.1.1.1 2005/04/21 14:55:40 beng Exp $ */
4
5#define DO_ASSERT 0 /* define when debugging */
6# ifdef DO_ASSERT
7# define STATIC
8# else
9# define STATIC static
10# endif
11
12#define VOID void /* preferably void, but int if your compiler does
13 not recognize void
14 */
15
16#if _POSIX_SOURCE
17#define POSIX_OPEN 1 /* POSIX "open" system call */
18#else
19#define USG_OPEN 0 /* USG "open" system call (include <fcntl.h>) */
20#define BSD4_2_OPEN 0 /* BSD 4.2 "open" system call (include <sys/file.h>)*/
21#endif
22
23/* Sanity check 1 */
24# if (!!USG_OPEN) + (!!BSD4_2_OPEN) + (!!POSIX_OPEN) > 1
25Oops, now why did you do that?
26O, never mind, just try it again with
27USG_OPEN = 1 or for System III, System V etc.
28BSD4_2_OPEN = 1 or for Berkeley 4.2, Ultrix etc.
29POSIX_OPEN = 1 or for POSIX compliant systems.
30USG_OPEN = 0 and BSD4_2_OPEN = 0 and POSIX_OOPEN
31 for Berkeley 4.1, v7 and whatever else
32# endif
33
34#define BSD_REGEX 0 /* Berkeley style re_comp/re_exec */
35#define V8_REGEX 1 /* V8 style regexec/regcomp */
36#define USG_REGEX 0 /* USG style regex/regcmp */
37
38/* Sanity check 2 */
39# if USG_REGEX + BSD_REGEX + V8_REGEX > 1
40Select one style for the regular expressions please!
41# endif
42
43#define USG_TTY 0 /* define if you have an USG tty driver (termio) */
44 /* If you do not define this, you get either the
45 * V7 tty driver or the BSD one.
46 */
47#if _POSIX_SOURCE
48#define POSIX_TTY 1
49#endif
50
51#if __minix && !__minix_vmd
52#define MAXNBLOCKS 10 /* Limit the number of blocks that yap will use to keep
53 * the input in core.
54 * This was needed to let yap run on an IBM XT
55 * running PC/IX. The problem is that malloc can
56 * allocate almost all available space, leaving no
57 * space for the stack, which causes a memory fault.
58 * Internal yap blocks are 2K, but there is a lot of
59 * additional information that yap keeps around. You
60 * can also use it if you want to limit yap's maximum
61 * size. If defined, it should be at least 3.
62 * 10 is probably a reasonable number.
63 */
64#endif
65/* Sanity check 3 */
66# ifdef MAXNBLOCKS
67# if MAXNBLOCKS < 3
68Read the above comment!
69# endif
70# endif
71
72#define VT100_PATCH /* This involves a patch that will insert lines
73 * correctly on a VT100 terminal. The termcap entry
74 * for it contains an "al" with %-escapes. According
75 * to the termcap-documentation this is not allowed,
76 * but ...
77 * If VT100_PATCH is defined, the "al" capability will
78 * be offered to "tgoto", before "tputs"-ing it.
79 * I don't know if there are any terminals out there
80 * that have a % in their "al" capability. If there
81 * are, yap will not work properly when compiled with
82 * VT100_PATCH defined.
83 * Also, escape sequences for standout and underline
84 * will be tputs-ed if VT100_PATCH is defined.
85 */
86
87#if _MINIX
88#define LCASE 0 /* Minix doesn;t have LCASE */
89#endif
Note: See TracBrowser for help on using the repository browser.