1 /* Copyright (c) 1985 Ceriel J.H. Jacobs */
5 #define DO_ASSERT 0 /* define when debugging */
12 #define VOID void /* preferably void, but int if your compiler does
17 #define POSIX_OPEN 1 /* POSIX "open" system call */
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>)*/
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
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 */
39 # if USG_REGEX + BSD_REGEX + V8_REGEX > 1
40 Select one style
for the regular expressions please
!
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.
51 #if __minix && !__minix_vmd
52 #define MAXNBLOCKS 10 /* Limit the number of blocks that yap will use to keep
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.
68 Read the above comment
!
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,
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.
88 #define LCASE 0 /* Minix doesn;t have LCASE */