00001 /* Copyright (c) 1985 Ceriel J.H. Jacobs */ 00002 00003 /* $Header$ */ 00004 00005 #define DO_ASSERT 0 /* define when debugging */ 00006 # ifdef DO_ASSERT 00007 # define STATIC 00008 # else 00009 # define STATIC static 00010 # endif 00011 00012 #define VOID void /* preferably void, but int if your compiler does 00013 not recognize void 00014 */ 00015 00016 #if _POSIX_SOURCE 00017 #define POSIX_OPEN 1 /* POSIX "open" system call */ 00018 #else 00019 #define USG_OPEN 0 /* USG "open" system call (include <fcntl.h>) */ 00020 #define BSD4_2_OPEN 0 /* BSD 4.2 "open" system call (include <sys/file.h>)*/ 00021 #endif 00022 00023 /* Sanity check 1 */ 00024 # if (!!USG_OPEN) + (!!BSD4_2_OPEN) + (!!POSIX_OPEN) > 1 00025 Oops, now why did you do that? 00026 O, never mind, just try it again with 00027 USG_OPEN = 1 or for System III, System V etc. 00028 BSD4_2_OPEN = 1 or for Berkeley 4.2, Ultrix etc. 00029 POSIX_OPEN = 1 or for POSIX compliant systems. 00030 USG_OPEN = 0 and BSD4_2_OPEN = 0 and POSIX_OOPEN 00031 for Berkeley 4.1, v7 and whatever else 00032 # endif 00033 00034 #define BSD_REGEX 0 /* Berkeley style re_comp/re_exec */ 00035 #define V8_REGEX 1 /* V8 style regexec/regcomp */ 00036 #define USG_REGEX 0 /* USG style regex/regcmp */ 00037 00038 /* Sanity check 2 */ 00039 # if USG_REGEX + BSD_REGEX + V8_REGEX > 1 00040 Select one style for the regular expressions please! 00041 # endif 00042 00043 #define USG_TTY 0 /* define if you have an USG tty driver (termio) */ 00044 /* If you do not define this, you get either the 00045 * V7 tty driver or the BSD one. 00046 */ 00047 #if _POSIX_SOURCE 00048 #define POSIX_TTY 1 00049 #endif 00050 00051 #if __minix && !__minix_vmd 00052 #define MAXNBLOCKS 10 /* Limit the number of blocks that yap will use to keep 00053 * the input in core. 00054 * This was needed to let yap run on an IBM XT 00055 * running PC/IX. The problem is that malloc can 00056 * allocate almost all available space, leaving no 00057 * space for the stack, which causes a memory fault. 00058 * Internal yap blocks are 2K, but there is a lot of 00059 * additional information that yap keeps around. You 00060 * can also use it if you want to limit yap's maximum 00061 * size. If defined, it should be at least 3. 00062 * 10 is probably a reasonable number. 00063 */ 00064 #endif 00065 /* Sanity check 3 */ 00066 # ifdef MAXNBLOCKS 00067 # if MAXNBLOCKS < 3 00068 Read the above comment! 00069 # endif 00070 # endif 00071 00072 #define VT100_PATCH /* This involves a patch that will insert lines 00073 * correctly on a VT100 terminal. The termcap entry 00074 * for it contains an "al" with %-escapes. According 00075 * to the termcap-documentation this is not allowed, 00076 * but ... 00077 * If VT100_PATCH is defined, the "al" capability will 00078 * be offered to "tgoto", before "tputs"-ing it. 00079 * I don't know if there are any terminals out there 00080 * that have a % in their "al" capability. If there 00081 * are, yap will not work properly when compiled with 00082 * VT100_PATCH defined. 00083 * Also, escape sequences for standout and underline 00084 * will be tputs-ed if VT100_PATCH is defined. 00085 */ 00086 00087 #if _MINIX 00088 #define LCASE 0 /* Minix doesn;t have LCASE */ 00089 #endif
1.5.8