=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/less/Attic/defines.h.in,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- src/usr.bin/less/Attic/defines.h.in 1996/09/21 05:39:45 1.1 +++ src/usr.bin/less/Attic/defines.h.in 2003/04/14 14:33:57 1.2 @@ -1,4 +1,6 @@ -/* defines.h.in. Generated automatically from configure.in by autoheader. */ +/* defines.h.in. Generated from configure.ac by autoheader. */ + + /* Unix definition file for less. -*- C -*- * * This file has 3 sections: @@ -10,7 +12,7 @@ * If you edit defines.h by hand, do "touch stamp-h" before you run make * so config.status doesn't overwrite your changes. */ - + /* User preferences. */ /* @@ -20,27 +22,35 @@ #define SECURE 0 /* + * SMALL is 1 if you wish to disable a bunch of features in order to + * build a smaller less binary. + */ +#ifndef SMALL +#define SMALL 0 +#endif + +/* * SHELL_ESCAPE is 1 if you wish to allow shell escapes. * (This is possible only if your system supplies the system() function.) */ -#define SHELL_ESCAPE (!SECURE) +#define SHELL_ESCAPE (!SECURE && !SMALL) /* * EXAMINE is 1 if you wish to allow examining files by name from within less. */ -#define EXAMINE (!SECURE) +#define EXAMINE (!SECURE && !SMALL) /* * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key * to complete filenames at prompts. */ -#define TAB_COMPLETE_FILENAME (!SECURE) +#define TAB_COMPLETE_FILENAME (!SECURE && !SMALL) /* * CMD_HISTORY is 1 if you wish to allow keys to cycle through * previous commands at prompts. */ -#define CMD_HISTORY 1 +#define CMD_HISTORY (!SMALL) /* * HILITE_SEARCH is 1 if you wish to have search targets to be @@ -53,43 +63,42 @@ * (This is possible only if your system supplies the system() function.) * EDIT_PGM is the name of the (default) editor to be invoked. */ -#define EDITOR (!SECURE) -#define EDIT_PGM "vi" +#define EDITOR (!SECURE && !SMALL) /* * TAGS is 1 if you wish to support tag files. */ -#define TAGS (!SECURE) +#define TAGS (!SECURE && !SMALL) /* * USERFILE is 1 if you wish to allow a .less file to specify * user-defined key bindings. */ -#define USERFILE (!SECURE) +#define USERFILE (!SECURE && !SMALL) /* * GLOB is 1 if you wish to have shell metacharacters expanded in filenames. * This will generally work if your system provides the "popen" function * and the "echo" shell command. */ -#define GLOB (!SECURE) +#define GLOB (!SECURE && !SMALL) /* * PIPEC is 1 if you wish to have the "|" command * which allows the user to pipe data into a shell command. */ -#define PIPEC (!SECURE) +#define PIPEC (!SECURE && !SMALL) /* * LOGFILE is 1 if you wish to allow the -l option (to create log files). */ -#define LOGFILE (!SECURE) +#define LOGFILE (!SECURE && !SMALL) /* * GNU_OPTIONS is 1 if you wish to support the GNU-style command * line options --help and --version. */ -#define GNU_OPTIONS 1 +#define GNU_OPTIONS (!SMALL) /* * ONLY_RETURN is 1 if you want RETURN to be the only input which @@ -101,29 +110,36 @@ /* * LESSKEYFILE is the filename of the default lesskey output file * (in the HOME directory). + * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file. * DEF_LESSKEYINFILE is the filename of the default lesskey input * (in the HOME directory). */ #define LESSKEYFILE ".less" +#define LESSKEYFILE_SYS SYSDIR "/sysless" #define DEF_LESSKEYINFILE ".lesskey" - + /* Settings always true on Unix. */ /* - * Define MSOFTC if compiling under Microsoft C. + * Define MSDOS_COMPILER if compiling under Microsoft C. */ -#define MSOFTC 0 +#define MSDOS_COMPILER 0 /* + * Pathname separator character. + */ +#define PATHNAME_SEP "/" + +/* * HAVE_SYS_TYPES_H is 1 if your system has . */ #define HAVE_SYS_TYPES_H 1 /* - * HAVE_STAT is 1 if your system has the stat() call. + * Define if you have the header file. */ -#define HAVE_STAT 1 +#undef HAVE_SGSTAT_H /* * HAVE_PERROR is 1 if your system has the perror() call. @@ -140,128 +156,248 @@ * HAVE_SHELL is 1 if your system supports a SHELL command interpreter. */ #define HAVE_SHELL 1 - -/* Settings automatically determined by configure. */ -/* Define to `long' if doesn't define. */ -#undef off_t +/* + * Default shell metacharacters and meta-escape character. + */ +#define DEF_METACHARS "; *?\t\n'\"()<>|&^`#\\" +#define DEF_METAESCAPE "\\" -/* Define if you need to in order for stat and other things to work. */ -#undef _POSIX_SOURCE +/* + * HAVE_DUP is 1 if your system has the dup() call. + */ +#define HAVE_DUP 1 -/* Define as the return type of signal handlers (int or void). */ -#undef RETSIGTYPE - -/* Define if you have the ANSI C header files. */ -#undef STDC_HEADERS - /* - * Regular expression library. - * Define exactly one of the following to be 1: - * HAVE_POSIX_REGCOMP: POSIX regcomp() and regex.h - * HAVE_RE_COMP: BSD re_comp() - * HAVE_REGCMP: System V regcmp() - * HAVE_V8_REGCOMP: Henry Spencer V8 regcomp() and regexp.h - * NO_REGEX: pattern matching is supported, but without metacharacters. + * Sizes of various buffers. */ -#undef HAVE_POSIX_REGCOMP -#undef HAVE_RE_COMP -#undef HAVE_REGCMP -#undef HAVE_V8_REGCOMP -#undef NO_REGEX +#define CMDBUF_SIZE 512 /* Buffer for multichar commands */ +#define UNGOT_SIZE 100 /* Max chars to unget() */ +#define LINEBUF_SIZE 1024 /* Max size of line in input file */ +#define OUTBUF_SIZE 1024 /* Output buffer */ +#define PROMPT_SIZE 200 /* Max size of prompt string */ +#define TERMBUF_SIZE 2048 /* Termcap buffer for tgetent */ +#define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */ +#define TAGLINE_SIZE 512 /* Max size of line in tags file */ +#define TABSTOP_MAX 32 /* Max number of custom tab stops */ -/* Define HAVE_VOID if your compiler supports the "void" type. */ -#undef HAVE_VOID +/* Settings automatically determined by configure. */ -/* Define HAVE_TIME_T if your system supports the "time_t" type. */ -#undef HAVE_TIME_T -/* Define HAVE_STRERROR if you have the strerror() function. */ -#undef HAVE_STRERROR +/* Define EDIT_PGM to your editor. */ +#undef EDIT_PGM +/* Define HAVE_CONST if your compiler supports the "const" modifier. */ +#undef HAVE_CONST + +/* Define to 1 if you have the header file. */ +#undef HAVE_CTYPE_H + +/* Define HAVE_ERRNO if you have the errno variable. */ +#undef HAVE_ERRNO + +/* Define to 1 if you have the header file. */ +#undef HAVE_ERRNO_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_FCNTL_H + /* Define HAVE_FILENO if you have the fileno() macro. */ #undef HAVE_FILENO -/* Define HAVE_ERRNO if you have the errno variable */ -#undef HAVE_ERRNO +/* Define to 1 if you have the `fsync' function. */ +#undef HAVE_FSYNC -/* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable */ -#undef HAVE_SYS_ERRLIST +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H -/* Define HAVE_OSPEED if your termcap library has the ospeed variable */ -#undef HAVE_OSPEED -/* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined - * in termcap.h. */ -#undef MUST_DEFINE_OSPEED +/* Define to 1 if you have the `gen' library (-lgen). */ +#undef HAVE_LIBGEN +/* Define to 1 if you have the `intl' library (-lintl). */ +#undef HAVE_LIBINTL + +/* Define to 1 if you have the `PW' library (-lPW). */ +#undef HAVE_LIBPW + +/* Define to 1 if you have the header file. */ +#undef HAVE_LIMITS_H + /* Define HAVE_LOCALE if you have locale.h and setlocale. */ #undef HAVE_LOCALE -/* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr */ -#undef HAVE_TERMIOS_FUNCS +/* Define to 1 if you have the `memcpy' function. */ +#undef HAVE_MEMCPY -/* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower */ -#undef HAVE_UPPER_LOWER +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H -/* Define if you have the _setjmp function. */ -#undef HAVE__SETJMP +/* Define HAVE_OSPEED if your termcap library has the ospeed variable. */ +#undef HAVE_OSPEED -/* Define if you have the memcpy function. */ -#undef HAVE_MEMCPY +/* PCRE (Perl-compatible regular expression) library */ +#undef HAVE_PCRE -/* Define if you have the sigsetmask function. */ +/* Define to 1 if you have the `popen' function. */ +#undef HAVE_POPEN + +/* POSIX regcomp() and regex.h */ +#undef HAVE_POSIX_REGCOMP + +/* System V regcmp() */ +#undef HAVE_REGCMP + +/* */ +#undef HAVE_REGEXEC2 + +/* BSD re_comp() */ +#undef HAVE_RE_COMP + +/* Define HAVE_SIGEMPTYSET if you have the sigemptyset macro. */ +#undef HAVE_SIGEMPTYSET + +/* Define to 1 if you have the `sigprocmask' function. */ +#undef HAVE_SIGPROCMASK + +/* Define to 1 if you have the `sigsetmask' function. */ #undef HAVE_SIGSETMASK -/* Define if you have the strchr function. */ +/* Define HAVE_SIGSET_T you have the sigset_t type. */ +#undef HAVE_SIGSET_T + +/* Define to 1 if you have the `stat' function. */ +#undef HAVE_STAT + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDIO_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the `strchr' function. */ #undef HAVE_STRCHR -/* Define if you have the system function. */ -#undef HAVE_SYSTEM +/* Define HAVE_STRERROR if you have the strerror() function. */ +#undef HAVE_STRERROR -/* Define if you have the header file. */ -#undef HAVE_CTYPE_H +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H -/* Define if you have the header file. */ -#undef HAVE_ERRNO_H +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H -/* Define if you have the header file. */ -#undef HAVE_FCNTL_H +/* Define to 1 if you have the `strstr' function. */ +#undef HAVE_STRSTR -/* Define if you have the header file. */ -#undef HAVE_STDIO_H +/* Define to 1 if you have the `system' function. */ +#undef HAVE_SYSTEM -/* Define if you have the header file. */ +/* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable. */ +#undef HAVE_SYS_ERRLIST + +/* Define to 1 if you have the header file. */ #undef HAVE_SYS_IOCTL_H -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #undef HAVE_SYS_PTEM_H -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ #undef HAVE_SYS_STREAM_H -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the header file. */ #undef HAVE_TERMCAP_H -/* Define if you have the header file. */ -#undef HAVE_TERMIO_H +/* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr. */ +#undef HAVE_TERMIOS_FUNCS -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ #undef HAVE_TERMIOS_H -/* Define if you have the header file. */ +/* Define to 1 if you have the header file. */ +#undef HAVE_TERMIO_H + +/* Define to 1 if you have the header file. */ #undef HAVE_TIME_H -/* Define if you have the header file. */ +/* Define HAVE_TIME_T if your system supports the "time_t" type. */ +#undef HAVE_TIME_T + +/* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H -/* Define if you have the header file. */ +/* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower. */ +#undef HAVE_UPPER_LOWER + +/* Henry Spencer V8 regcomp() and regexp.h */ +#undef HAVE_V8_REGCOMP + +/* Define to 1 if you have the header file. */ #undef HAVE_VALUES_H -/* Define if you have the PW library (-lPW). */ -#undef HAVE_LIBPW +/* Define HAVE_VOID if your compiler supports the "void" type. */ +#undef HAVE_VOID -/* Define if you have the gen library (-lgen). */ -#undef HAVE_LIBGEN +/* Define to 1 if you have the `_setjmp' function. */ +#undef HAVE__SETJMP -/* Define if you have the intl library (-lintl). */ -#undef HAVE_LIBINTL +/* Define MUST_DEFINE_ERRNO if you have errno but it is not define in errno.h. + */ +#undef MUST_DEFINE_ERRNO + +/* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined in + termcap.h. */ +#undef MUST_DEFINE_OSPEED + +/* pattern matching is supported, but without metacharacters. */ +#undef NO_REGEX + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Define as the return type of signal handlers (`int' or `void'). */ +#undef RETSIGTYPE + +/* Define to 1 if the `S_IS*' macros in do not work properly. */ +#undef STAT_MACROS_BROKEN + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Define to 1 if you can safely include both and . */ +#undef TIME_WITH_SYS_TIME + +/* Number of bits in a file offset, on hosts where this is settable. */ +#undef _FILE_OFFSET_BITS + +/* Define for large files, on AIX-style hosts. */ +#undef _LARGE_FILES + +/* Define to empty if `const' does not conform to ANSI C. */ +#undef const + +/* Define to `long' if does not define. */ +#undef off_t + +/* Define to `unsigned' if does not define. */ +#undef size_t