home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 036 / less232.zip / DEFINES.DOS < prev    next >
Text File  |  1994-08-29  |  7KB  |  245 lines

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