Use size-dependant no. of words, with OPEN_MAX as default for fd_set size.
[minix3.git] / commands / yap / in_all.h
blobb5fdb6318c6af3f6ed3fceef89ce85ae5a77fe12
1 /* Copyright (c) 1985 Ceriel J.H. Jacobs */
3 /* $Header$ */
5 #define DO_ASSERT 0 /* define when debugging */
6 # ifdef DO_ASSERT
7 # define STATIC
8 # else
9 # define STATIC static
10 # endif
12 #define VOID void /* preferably void, but int if your compiler does
13 not recognize void
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
23 /* Sanity check 1 */
24 # if (!!USG_OPEN) + (!!BSD4_2_OPEN) + (!!POSIX_OPEN) > 1
25 Oops, now why did you do that?
26 O, never mind, just try it again with
27 USG_OPEN = 1 or for System III, System V etc.
28 BSD4_2_OPEN = 1 or for Berkeley 4.2, Ultrix etc.
29 POSIX_OPEN = 1 or for POSIX compliant systems.
30 USG_OPEN = 0 and BSD4_2_OPEN = 0 and POSIX_OOPEN
31 for Berkeley 4.1, v7 and whatever else
32 # endif
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 */
38 /* Sanity check 2 */
39 # if USG_REGEX + BSD_REGEX + V8_REGEX > 1
40 Select one style for the regular expressions please!
41 # endif
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.
47 #if _POSIX_SOURCE
48 #define POSIX_TTY 1
49 #endif
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.
64 #endif
65 /* Sanity check 3 */
66 # ifdef MAXNBLOCKS
67 # if MAXNBLOCKS < 3
68 Read the above comment!
69 # endif
70 # endif
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.
87 #if _MINIX
88 #define LCASE 0 /* Minix doesn;t have LCASE */
89 #endif