defines.o2 revision 128345
160786Sps/* 260786Sps * Copyright (C) 1984-2000 Mark Nudelman 360786Sps * 460786Sps * You may distribute under the terms of either the GNU General Public 560786Sps * License or the Less License, as specified in the README file. 660786Sps * 760786Sps * For more information about less, or for information on how to 860786Sps * contact the author, see the README file. 960786Sps */ 1060786Sps 1160786Sps 1260786Sps/* OS/2 definition file for less. */ 1360786Sps/* 1460786Sps * This file has 2 sections: 1560786Sps * User preferences. 1660786Sps * Settings always true for the emx compiler for OS/2 systems. 1760786Sps */ 1860786Sps 1960786Sps 2060786Sps/* User preferences. */ 2160786Sps 2260786Sps/* 2360786Sps * SECURE is 1 if you wish to disable a bunch of features in order to 2460786Sps * be safe to run by unprivileged users. 2560786Sps */ 2660786Sps#define SECURE 0 2760786Sps 2860786Sps/* 2960786Sps * SHELL_ESCAPE is 1 if you wish to allow shell escapes. 3060786Sps * (This is possible only if your system supplies the system() function.) 3160786Sps */ 3260786Sps#define SHELL_ESCAPE (!SECURE) 3360786Sps 3460786Sps/* 3560786Sps * EXAMINE is 1 if you wish to allow examining files by name from within less. 3660786Sps */ 3760786Sps#define EXAMINE (!SECURE) 3860786Sps 3960786Sps/* 4060786Sps * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key 4160786Sps * to complete filenames at prompts. 4260786Sps */ 4360786Sps#define TAB_COMPLETE_FILENAME (!SECURE) 4460786Sps 4560786Sps/* 4660786Sps * CMD_HISTORY is 1 if you wish to allow keys to cycle through 4760786Sps * previous commands at prompts. 4860786Sps */ 4960786Sps#define CMD_HISTORY 1 5060786Sps 5160786Sps/* 5260786Sps * HILITE_SEARCH is 1 if you wish to have search targets to be 5360786Sps * displayed in standout mode. 5460786Sps */ 5560786Sps#define HILITE_SEARCH 1 5660786Sps 5760786Sps/* 5860786Sps * EDITOR is 1 if you wish to allow editor invocation (the "v" command). 5960786Sps * (This is possible only if your system supplies the system() function.) 6060786Sps * EDIT_PGM is the name of the (default) editor to be invoked. 6160786Sps */ 6260786Sps#define EDITOR (!SECURE) 6389019Sps#define EDIT_PGM "vi" 6460786Sps 6560786Sps/* 6660786Sps * TAGS is 1 if you wish to support tag files. 6760786Sps */ 6860786Sps#define TAGS (!SECURE) 6960786Sps 7060786Sps/* 7160786Sps * USERFILE is 1 if you wish to allow a .less file to specify 7260786Sps * user-defined key bindings. 7360786Sps */ 7460786Sps#define USERFILE (!SECURE) 7560786Sps 7660786Sps/* 7760786Sps * GLOB is 1 if you wish to have shell metacharacters expanded in filenames. 7860786Sps * This will generally work if your system provides the "popen" function 7960786Sps * and the "echo" shell command. 8060786Sps */ 8160786Sps#define GLOB (!SECURE) 8260786Sps 8360786Sps/* 8460786Sps * PIPEC is 1 if you wish to have the "|" command 8560786Sps * which allows the user to pipe data into a shell command. 8660786Sps */ 8760786Sps#define PIPEC (!SECURE) 8860786Sps 8960786Sps/* 9060786Sps * LOGFILE is 1 if you wish to allow the -l option (to create log files). 9160786Sps */ 9260786Sps#define LOGFILE (!SECURE) 9360786Sps 9460786Sps/* 9560786Sps * GNU_OPTIONS is 1 if you wish to support the GNU-style command 9660786Sps * line options --help and --version. 9760786Sps */ 9860786Sps#define GNU_OPTIONS 1 9960786Sps 10060786Sps/* 10160786Sps * ONLY_RETURN is 1 if you want RETURN to be the only input which 10260786Sps * will continue past an error message. 10360786Sps * Otherwise, any key will continue past an error message. 10460786Sps */ 10560786Sps#define ONLY_RETURN 0 10660786Sps 10760786Sps/* 10860786Sps * LESSKEYFILE is the filename of the default lesskey output file 10960786Sps * (in the HOME directory). 11060786Sps * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file. 11160786Sps * DEF_LESSKEYINFILE is the filename of the default lesskey input 11260786Sps * (in the HOME directory). 11360786Sps */ 11460786Sps#define LESSKEYFILE "less.ini" 11589019Sps#define LESSKEYFILE_SYS "C:\\sysless.ini" 11660786Sps#define DEF_LESSKEYINFILE "lesskey.ini" 11760786Sps 11860786Sps 11960786Sps/* Settings always true for the emx compiler for OS/2 systems. */ 12060786Sps#define OS2 1 12160786Sps 12260786Sps/* 12360786Sps * Pathname separator character. 12460786Sps */ 12560786Sps#define PATHNAME_SEP "\\" 12660786Sps 12760786Sps/* 12860786Sps * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>. 12960786Sps */ 13060786Sps#define HAVE_SYS_TYPES_H 1 13160786Sps 13260786Sps/* 13360786Sps * Define if you have the <sgstat.h> header file. 13460786Sps */ 13560786Sps#define HAVE_SGSTAT_H 0 13660786Sps 13760786Sps/* 13860786Sps * HAVE_PERROR is 1 if your system has the perror() call. 13960786Sps * (Actually, if it has sys_errlist, sys_nerr and errno.) 14060786Sps */ 14160786Sps#define HAVE_PERROR 1 14260786Sps 14360786Sps/* 14460786Sps * HAVE_TIME is 1 if your system has the time() call. 14560786Sps */ 14660786Sps#define HAVE_TIME 1 14760786Sps 14860786Sps/* 14960786Sps * HAVE_SHELL is 1 if your system supports a SHELL command interpreter. 15060786Sps */ 15160786Sps#define HAVE_SHELL 0 15260786Sps 153128345Stjr/* 154128345Stjr * Default shell metacharacters and meta-escape character. 155128345Stjr */ 156128345Stjr#define DEF_METACHARS "; *?\t\n'\"()<>|&" 157128345Stjr#define DEF_METAESCAPE "" 158128345Stjr 15960786Sps/* 16060786Sps * HAVE_DUP is 1 if your system has the dup() call. 16160786Sps */ 16260786Sps#define HAVE_DUP 1 16360786Sps 16460786Sps/* 16560786Sps * Sizes of various buffers. 16660786Sps */ 16760786Sps#define CMDBUF_SIZE 512 /* Buffer for multichar commands */ 16860786Sps#define UNGOT_SIZE 100 /* Max chars to unget() */ 16960786Sps#define LINEBUF_SIZE 1024 /* Max size of line in input file */ 17060786Sps#define OUTBUF_SIZE 1024 /* Output buffer */ 17160786Sps#define PROMPT_SIZE 200 /* Max size of prompt string */ 17260786Sps#define TERMBUF_SIZE 2048 /* Termcap buffer for tgetent */ 17360786Sps#define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */ 17460786Sps#define TAGLINE_SIZE 512 /* Max size of line in tags file */ 17589019Sps#define TABSTOP_MAX 32 /* Max number of custom tab stops */ 17660786Sps 17760786Sps/* Define to `long' if <sys/types.h> doesn't define. */ 17860786Sps/* #define off_t long */ 17960786Sps 18060786Sps/* Define if you need to in order for stat and other things to work. */ 18160786Sps/* #undef _POSIX_SOURCE */ 18260786Sps 18360786Sps/* Define as the return type of signal handlers (int or void). */ 18460786Sps#define RETSIGTYPE void 18560786Sps 18660786Sps 18760786Sps/* 18860786Sps * Regular expression library. 18960786Sps * Define exactly one of the following to be 1: 19060786Sps * HAVE_POSIX_REGCOMP: POSIX regcomp() and regex.h 19160786Sps * HAVE_RE_COMP: BSD re_comp() 19260786Sps * HAVE_REGCMP: System V regcmp() 19360786Sps * HAVE_V8_REGCOMP: Henry Spencer V8 regcomp() and regexp.h 19460786Sps * NO_REGEX: pattern matching is supported, but without metacharacters. 19560786Sps */ 19660786Sps/* #undef HAVE_POSIX_REGCOMP */ 19760786Sps/* #undef HAVE_RE_COMP */ 19860786Sps/* #undef HAVE_REGCMP */ 19960786Sps#define HAVE_V8_REGCOMP 1 20060786Sps/* #undef NO_REGEX */ 20160786Sps#define HAVE_REGEXEC2 1 20260786Sps 20360786Sps/* Define HAVE_VOID if your compiler supports the "void" type. */ 20460786Sps#define HAVE_VOID 1 20560786Sps 20660786Sps/* Define HAVE_CONST if your compiler supports the "const" modifier. */ 20760786Sps#define HAVE_CONST 1 20860786Sps 20960786Sps/* Define HAVE_TIME_T if your system supports the "time_t" type. */ 21089019Sps#define HAVE_TIME_T 1 21160786Sps 21260786Sps/* Define HAVE_STRERROR if you have the strerror() function. */ 21360786Sps#define HAVE_STRERROR 1 21460786Sps 21560786Sps/* Define HAVE_FILENO if you have the fileno() macro. */ 21660786Sps#define HAVE_FILENO 1 21760786Sps 21860786Sps/* Define HAVE_ERRNO if you have the errno variable */ 21960786Sps/* Define MUST_DEFINE_ERRNO if you have errno but it is not define 22060786Sps * in errno.h */ 22160786Sps#define HAVE_ERRNO 1 22289019Sps/* #undef MUST_DEFINE_ERRNO */ 22360786Sps 22460786Sps/* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable */ 22560786Sps#define HAVE_SYS_ERRLIST 1 22660786Sps 22760786Sps/* Define HAVE_OSPEED if your termcap library has the ospeed variable */ 22889019Sps#define HAVE_OSPEED 1 22960786Sps/* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined 23060786Sps * in termcap.h. */ 23160786Sps#define MUST_DEFINE_OSPEED 0 23260786Sps 23360786Sps/* Define HAVE_LOCALE if you have locale.h and setlocale. */ 23489019Sps#define HAVE_LOCALE 1 23560786Sps 23660786Sps/* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr */ 23789019Sps#define HAVE_TERMIOS_FUNCS 1 23860786Sps 23960786Sps/* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower */ 24060786Sps#define HAVE_UPPER_LOWER 1 24160786Sps 24260786Sps/* Define if you have the _setjmp function. */ 24360786Sps#define HAVE__SETJMP 0 24460786Sps 24560786Sps/* Define if you have the memcpy function. */ 24660786Sps#define HAVE_MEMCPY 1 24760786Sps 24860786Sps/* Define if you have the popen function. */ 24989019Sps#define HAVE_POPEN 1 25060786Sps 25160786Sps/* Define if you have the sigsetmask function. */ 25260786Sps#define HAVE_SIGSETMASK 0 25360786Sps 25463128Sps/* Define if you have the sigprocmask function. */ 25589019Sps#define HAVE_SIGPROCMASK 1 25663128Sps 25763128Sps/* Define if you have the sigset_t type and sigemptyset macro */ 25889019Sps#define HAVE_SIGSET_T 1 25989019Sps#define HAVE_SIGEMPTYSET 1 26063128Sps 26160786Sps/* Define if you have the stat function. */ 26260786Sps#define HAVE_STAT 1 26360786Sps 26460786Sps/* Define if you have the strchr function. */ 26560786Sps#define HAVE_STRCHR 1 26660786Sps 26789019Sps/* Define if you have the strstr function. */ 26889019Sps#define HAVE_STRSTR 1 26989019Sps 27060786Sps/* Define if you have the system function. */ 27160786Sps#define HAVE_SYSTEM 1 27260786Sps 27360786Sps/* Define if you have the <ctype.h> header file. */ 27460786Sps#define HAVE_CTYPE_H 1 27560786Sps 27660786Sps/* Define if you have the <errno.h> header file. */ 27789019Sps#define HAVE_ERRNO_H 1 27860786Sps 27960786Sps/* Define if you have the <fcntl.h> header file. */ 28060786Sps#define HAVE_FCNTL_H 1 28160786Sps 28260786Sps/* Define if you have the <limits.h> header file. */ 28389019Sps#define HAVE_LIMITS_H 1 28460786Sps 28560786Sps/* Define if you have the <stdio.h> header file. */ 28660786Sps#define HAVE_STDIO_H 1 28760786Sps 28860786Sps/* Define if you have the <stdlib> header file. */ 28960786Sps#define HAVE_STDLIB_H 1 29060786Sps 29160786Sps/* Define if you have the <string.h> header file. */ 29260786Sps#define HAVE_STRING_H 1 29360786Sps 29460786Sps/* Define if you have the <sys/ioctl.h> header file. */ 29589019Sps#define HAVE_SYS_IOCTL_H 1 29660786Sps 29760786Sps/* Define if you have the <sys/ptem.h> header file. */ 29860786Sps#define HAVE_SYS_PTEM_H 0 29960786Sps 30060786Sps/* Define if you have the <sys/stream.h> header file. */ 30160786Sps#define HAVE_SYS_STREAM_H 0 30260786Sps 30360786Sps/* Define if you have the <termcap.h> header file. */ 30489019Sps#define HAVE_TERMCAP_H 1 30560786Sps 30660786Sps/* Define if you have the <termio.h> header file. */ 30789019Sps#define HAVE_TERMIO_H 1 30860786Sps 30960786Sps/* Define if you have the <termios.h> header file. */ 31089019Sps#define HAVE_TERMIOS_H 1 31160786Sps 31260786Sps/* Define if you have the <time.h> header file. */ 31360786Sps#define HAVE_TIME_H 1 31460786Sps 31560786Sps/* Define if you have the <unistd.h> header file. */ 31660786Sps#define HAVE_UNISTD_H 1 31760786Sps 31860786Sps/* Define if you have the <values.h> header file. */ 31960786Sps#define HAVE_VALUES_H 0 320