[BACK]Return to defines.dos CVS log [TXT][DIR] Up to [local] / src / usr.bin / less

Annotation of src/usr.bin/less/defines.dos, Revision 1.2

1.2     ! niklas      1: /*     $OpenBSD$       */
        !             2:
1.1       etheisen    3: /*
                      4:  * Copyright (c) 1984,1985,1989,1994,1995  Mark Nudelman
                      5:  * All rights reserved.
                      6:  *
                      7:  * Redistribution and use in source and binary forms, with or without
                      8:  * modification, are permitted provided that the following conditions
                      9:  * are met:
                     10:  * 1. Redistributions of source code must retain the above copyright
                     11:  *    notice, this list of conditions and the following disclaimer.
                     12:  * 2. Redistributions in binary form must reproduce the above copyright
                     13:  *    notice in the documentation and/or other materials provided with
                     14:  *    the distribution.
                     15:  *
                     16:  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY
                     17:  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     18:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
                     19:  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE
                     20:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
                     21:  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
                     22:  * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
                     23:  * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
                     24:  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
                     25:  * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
                     26:  * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
                     27:  */
                     28:
                     29:
                     30: /* DOS definition file for less.  */
                     31: /*
                     32:  * This file has 2 sections:
                     33:  * User preferences.
                     34:  * Settings always true for the Microsoft C compiler for MS-DOS systems.
                     35:  */
                     36: 
                     37: /* User preferences.  */
                     38:
                     39: /*
                     40:  * SECURE is 1 if you wish to disable a bunch of features in order to
                     41:  * be safe to run by unprivileged users.
                     42:  */
                     43: #define        SECURE          0
                     44:
                     45: /*
                     46:  * SHELL_ESCAPE is 1 if you wish to allow shell escapes.
                     47:  * (This is possible only if your system supplies the system() function.)
                     48:  */
                     49: #define        SHELL_ESCAPE    (!SECURE)
                     50:
                     51: /*
                     52:  * EXAMINE is 1 if you wish to allow examining files by name from within less.
                     53:  */
                     54: #define        EXAMINE         (!SECURE)
                     55:
                     56: /*
                     57:  * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key
                     58:  * to complete filenames at prompts.
                     59:  */
                     60: #define        TAB_COMPLETE_FILENAME   (!SECURE)
                     61:
                     62: /*
                     63:  * CMD_HISTORY is 1 if you wish to allow keys to cycle through
                     64:  * previous commands at prompts.
                     65:  */
                     66: #define        CMD_HISTORY     1
                     67:
                     68: /*
                     69:  * HILITE_SEARCH is 1 if you wish to have search targets to be
                     70:  * displayed in standout mode.
                     71:  */
                     72: #define        HILITE_SEARCH   1
                     73:
                     74: /*
                     75:  * EDITOR is 1 if you wish to allow editor invocation (the "v" command).
                     76:  * (This is possible only if your system supplies the system() function.)
                     77:  * EDIT_PGM is the name of the (default) editor to be invoked.
                     78:  */
                     79: #define        EDITOR          (!SECURE)
                     80: #define        EDIT_PGM        "vi"
                     81:
                     82: /*
                     83:  * TAGS is 1 if you wish to support tag files.
                     84:  */
                     85: #define        TAGS            (!SECURE)
                     86:
                     87: /*
                     88:  * USERFILE is 1 if you wish to allow a .less file to specify
                     89:  * user-defined key bindings.
                     90:  */
                     91: #define        USERFILE        (!SECURE)
                     92:
                     93: /*
                     94:  * GLOB is 1 if you wish to have shell metacharacters expanded in filenames.
                     95:  * This will generally work if your system provides the "popen" function
                     96:  * and the "echo" shell command.
                     97:  */
                     98: #define        GLOB            0
                     99:
                    100: /*
                    101:  * PIPEC is 1 if you wish to have the "|" command
                    102:  * which allows the user to pipe data into a shell command.
                    103:  */
                    104: #define        PIPEC           0
                    105:
                    106: /*
                    107:  * LOGFILE is 1 if you wish to allow the -l option (to create log files).
                    108:  */
                    109: #define        LOGFILE         (!SECURE)
                    110:
                    111: /*
                    112:  * GNU_OPTIONS is 1 if you wish to support the GNU-style command
                    113:  * line options --help and --version.
                    114:  */
                    115: #define        GNU_OPTIONS     1
                    116:
                    117: /*
                    118:  * ONLY_RETURN is 1 if you want RETURN to be the only input which
                    119:  * will continue past an error message.
                    120:  * Otherwise, any key will continue past an error message.
                    121:  */
                    122: #define        ONLY_RETURN     0
                    123:
                    124: /*
                    125:  * LESSKEYFILE is the filename of the default lesskey output file
                    126:  * (in the HOME directory).
                    127:  * DEF_LESSKEYINFILE is the filename of the default lesskey input
                    128:  * (in the HOME directory).
                    129:  */
                    130: #define        LESSKEYFILE             "_less"
                    131: #define        DEF_LESSKEYINFILE       "_lesskey"
                    132:
                    133: /*
                    134:  * HELPFILE is the full pathname of the help file.
                    135:  */
                    136: #define        HELPFILE        "less.hlp"
                    137: 
                    138: /* Settings always true for the Microsoft C compiler for MS-DOS systems.  */
                    139:
                    140: /*
                    141:  * Define MSOFTC if compiling under Microsoft C.
                    142:  */
                    143: #define        MSOFTC          1
                    144:
                    145: /*
                    146:  * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.
                    147:  */
                    148: #define HAVE_SYS_TYPES_H       1
                    149:
                    150: /*
                    151:  * HAVE_STAT is 1 if your system has the stat() call.
                    152:  */
                    153: #define        HAVE_STAT       1
                    154:
                    155: /*
                    156:  * HAVE_PERROR is 1 if your system has the perror() call.
                    157:  * (Actually, if it has sys_errlist, sys_nerr and errno.)
                    158:  */
                    159: #define        HAVE_PERROR     1
                    160:
                    161: /*
                    162:  * HAVE_TIME is 1 if your system has the time() call.
                    163:  */
                    164: #define        HAVE_TIME       1
                    165:
                    166: /*
                    167:  * HAVE_SHELL is 1 if your system supports a SHELL command interpreter.
                    168:  */
                    169: #define        HAVE_SHELL      0
                    170:
                    171: /* Define to `long' if <sys/types.h> doesn't define.  */
                    172: /* #define     off_t   long */
                    173:
                    174: /* Define as the return type of signal handlers (int or void).  */
                    175: #define RETSIGTYPE void
                    176:
                    177: /* Define if you have the ANSI C header files.  */
                    178: #define STDC_HEADERS   1
                    179: #define __STDC__       1
                    180:
                    181: /*
                    182:  * Regular expression library.
                    183:  * Define exactly one of the following to be 1:
                    184:  * HAVE_POSIX_REGCOMP: POSIX regcomp() and regex.h
                    185:  * HAVE_RE_COMP: BSD re_comp()
                    186:  * HAVE_REGCMP: System V regcmp()
                    187:  * HAVE_V8_REGCOMP: Henry Spencer V8 regcomp() and regexp.h
                    188:  * NO_REGEX: pattern matching is supported, but without metacharacters.
                    189:  */
                    190: /* #undef HAVE_POSIX_REGCOMP */
                    191: /* #undef HAVE_RE_COMP */
                    192: /* #undef HAVE_REGCMP */
                    193: /* #undef HAVE_V8_REGCOMP */
                    194: #define NO_REGEX 1
                    195:
                    196: /* Define HAVE_VOID if your compiler supports the "void" type. */
                    197: #define HAVE_VOID 1
                    198:
                    199: /* Define HAVE_TIME_T if your system supports the "time_t" type. */
                    200: #define HAVE_TIME_T 0
                    201:
                    202: /* Define HAVE_STRERROR if you have the strerror() function. */
                    203: #define HAVE_STRERROR 0
                    204:
                    205: /* Define HAVE_FILENO if you have the fileno() macro. */
                    206: #define HAVE_FILENO 0
                    207:
                    208: /* Define HAVE_ERRNO if you have the errno variable */
                    209: #define HAVE_ERRNO 0
                    210:
                    211: /* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable */
                    212: #define HAVE_SYS_ERRLIST 0
                    213:
                    214: /* Define HAVE_OSPEED if your termcap library has the ospeed variable */
                    215: #define HAVE_OSPEED 0
                    216: /* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined
                    217:  * in termcap.h. */
                    218: #define MUST_DEFINE_OSPEED 0
                    219:
                    220: /* Define HAVE_LOCALE if you have locale.h and setlocale. */
                    221: #define HAVE_LOCALE 0
                    222:
                    223: /* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr */
                    224: #define HAVE_TERMIOS_FUNCS 0
                    225:
                    226: /* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower */
                    227: #define HAVE_UPPER_LOWER 1
                    228:
                    229: /* Define if you have the _setjmp function.  */
                    230: #define HAVE__SETJMP   0
                    231:
                    232: /* Define if you have the memcpy function.  */
                    233: #define HAVE_MEMCPY 1
                    234:
                    235: /* Define if you have the sigsetmask function.  */
                    236: #define HAVE_SIGSETMASK        0
                    237:
                    238: /* Define if you have the strchr function.  */
                    239: #define HAVE_STRCHR 1
                    240:
                    241: /* Define if you have the system function.  */
                    242: #define HAVE_SYSTEM    1
                    243:
                    244: /* Define if you have the <ctype.h> header file.  */
                    245: #define HAVE_CTYPE_H 1
                    246:
                    247: /* Define if you have the <errno.h> header file.  */
                    248: #define HAVE_ERRNO_H 0
                    249:
                    250: /* Define if you have the <fcntl.h> header file.  */
                    251: #define HAVE_FCNTL_H 1
                    252:
                    253: /* Define if you have the <stdio.h> header file.  */
                    254: #define HAVE_STDIO_H 1
                    255:
                    256: /* Define if you have the <sys/ioctl.h> header file.  */
                    257: #define HAVE_SYS_IOCTL_H 0
                    258:
                    259: /* Define if you have the <sys/ptem.h> header file.  */
                    260: #define HAVE_SYS_PTEM_H        0
                    261:
                    262: /* Define if you have the <sys/stream.h> header file.  */
                    263: #define HAVE_SYS_STREAM_H      0
                    264:
                    265: /* Define if you have the <termcap.h> header file.  */
                    266: /* #undef HAVE_TERMCAP_H */
                    267:
                    268: /* Define if you have the <termio.h> header file.  */
                    269: #define HAVE_TERMIO_H  0
                    270:
                    271: /* Define if you have the <termios.h> header file.  */
                    272: #define HAVE_TERMIOS_H 1
                    273:
                    274: /* Define if you have the <time.h> header file.  */
                    275: #define HAVE_TIME_H 1
                    276:
                    277: /* Define if you have the <unistd.h> header file.  */
                    278: #define HAVE_UNISTD_H 1
                    279:
                    280: /* Define if you have the <values.h> header file.  */
                    281: #define HAVE_VALUES_H 0