home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / CMDS / less_332.lzh / less_332 / defines.o9 < prev    next >
Text File  |  1998-03-03  |  9KB  |  335 lines

  1. /*
  2.  * Copyright (c) 1984,1985,1989,1994,1996  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. /* OS/9 definition file for less.  */
  28. /*
  29.  * This file has 2 sections:
  30.  * User preferences.
  31.  * Settings always true for OS-9 systems. 
  32.  */
  33.  
  34. /* User preferences.  */
  35.  
  36. /*
  37.  * SECURE is 1 if you wish to disable a bunch of features in order to
  38.  * be safe to run by unprivileged users.
  39.  */
  40. #define    SECURE        0
  41.  
  42. /*
  43.  * SHELL_ESCAPE is 1 if you wish to allow shell escapes.
  44.  * (This is possible only if your system supplies the system() function.)
  45.  */
  46. #define    SHELL_ESCAPE    (!SECURE)
  47.  
  48. /*
  49.  * EXAMINE is 1 if you wish to allow examining files by name from within less.
  50.  */
  51. #define    EXAMINE        (!SECURE)
  52.  
  53. /*
  54.  * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key
  55.  * to complete filenames at prompts.
  56.  */
  57. #define    TAB_COMPLETE_FILENAME    1
  58.  
  59. /*
  60.  * CMD_HISTORY is 1 if you wish to allow keys to cycle through
  61.  * previous commands at prompts.
  62.  */
  63. #define    CMD_HISTORY    1
  64.  
  65. /*
  66.  * HILITE_SEARCH is 1 if you wish to have search targets to be 
  67.  * displayed in standout mode.
  68.  */
  69. #define    HILITE_SEARCH    1
  70.  
  71. /*
  72.  * EDITOR is 1 if you wish to allow editor invocation (the "v" command).
  73.  * (This is possible only if your system supplies the system() function.)
  74.  * EDIT_PGM is the name of the (default) editor to be invoked.
  75.  */
  76. #define    EDITOR        (!SECURE)
  77. #define    EDIT_PGM    "umacs"
  78.  
  79. /*
  80.  * TAGS is 1 if you wish to support tag files.
  81.  */
  82. #define    TAGS        (!SECURE)
  83.  
  84. /*
  85.  * USERFILE is 1 if you wish to allow a .less file to specify 
  86.  * user-defined key bindings.
  87.  */
  88. #define    USERFILE    (!SECURE)
  89.  
  90. /*
  91.  * GLOB is 1 if you wish to have shell metacharacters expanded in filenames.
  92.  * This will generally work if your system provides the "popen" function
  93.  * and the "echo" shell command.
  94.  */
  95. #define    GLOB        (!SECURE)
  96.  
  97. /*
  98.  * PIPEC is 1 if you wish to have the "|" command
  99.  * which allows the user to pipe data into a shell command.
  100.  */
  101. #define    PIPEC        (!SECURE)
  102.  
  103. /*
  104.  * LOGFILE is 1 if you wish to allow the -l option (to create log files).
  105.  */
  106. #define    LOGFILE        (!SECURE)
  107.  
  108. /*
  109.  * GNU_OPTIONS is 1 if you wish to support the GNU-style command
  110.  * line options --help and --version.
  111.  */
  112. #define    GNU_OPTIONS    1
  113.  
  114. /*
  115.  * ONLY_RETURN is 1 if you want RETURN to be the only input which
  116.  * will continue past an error message.
  117.  * Otherwise, any key will continue past an error message.
  118.  */
  119. #define    ONLY_RETURN    0
  120.  
  121. /*
  122.  * LESSKEYFILE is the filename of the default lesskey output file 
  123.  * (in the HOME directory).
  124.  * DEF_LESSKEYINFILE is the filename of the default lesskey input 
  125.  * (in the HOME directory).
  126.  */
  127. #define    LESSKEYFILE        ".less"
  128. #define    DEF_LESSKEYINFILE    ".lesskey"
  129.  
  130.  
  131. /* Settings always true for OS-9.  */
  132.  
  133. /* This is not needed; it is defined by the compiler. */
  134. /* #define _OSK 1 */
  135. #define OS2         0
  136. #define MSDOS_COMPILER    0
  137.  
  138. /*
  139.  * Pathname separator character.
  140.  */
  141. #define    PATHNAME_SEP    "/"
  142.  
  143. /*
  144.  * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.
  145.  */
  146. #define HAVE_SYS_TYPES_H 0
  147.  
  148. /*
  149.  * Define if you have the <sgstat.h> header file.
  150.  */
  151. #define HAVE_SGSTAT_H    1
  152.  
  153. /*
  154.  * HAVE_PERROR is 1 if your system has the perror() call.
  155.  * (Actually, if it has sys_errlist, sys_nerr and errno.)
  156.  */
  157. #if _OSK_MWC32
  158. #define    HAVE_PERROR    0
  159. #else
  160. #define    HAVE_PERROR    1
  161. #endif
  162.  
  163. /*
  164.  * HAVE_TIME is 1 if your system has the time() call.
  165.  */
  166. #define    HAVE_TIME    1
  167.  
  168. /*
  169.  * HAVE_SHELL is 1 if your system supports a SHELL command interpreter.
  170.  */
  171. #define    HAVE_SHELL 0
  172.  
  173. /*
  174.  * Default shell metacharacters and meta-escape character.
  175.  */
  176. #define DEF_METACHARS   "; \t\n'\"()<>|&^`#\\"
  177. #define DEF_METAESCAPE  "\\"
  178.  
  179. /* 
  180.  * HAVE_DUP is 1 if your system has the dup() call.
  181.  */
  182. #define    HAVE_DUP 0
  183.  
  184. /*
  185.  * Sizes of various buffers.
  186.  */
  187. #define    CMDBUF_SIZE    512    /* Buffer for multichar commands */
  188. #define    UNGOT_SIZE    100    /* Max chars to unget() */
  189. #define    LINEBUF_SIZE    1024    /* Max size of line in input file */
  190. #define    OUTBUF_SIZE    1024    /* Output buffer */
  191. #define    PROMPT_SIZE    200    /* Max size of prompt string */
  192. #define    TERMBUF_SIZE    2048    /* Termcap buffer for tgetent */
  193. #define    TERMSBUF_SIZE    1024    /* Buffer to hold termcap strings */
  194. #define    TAGLINE_SIZE    512    /* Max size of line in tags file */
  195.  
  196. /* Define to `long' if <sys/types.h> doesn't define.  */
  197. #define off_t long
  198.  
  199. /* Define if you need to in order for stat and other things to work.  */
  200. #define _POSIX_SOURCE 0
  201.  
  202. /* Define as the return type of signal handlers (int or void).  */
  203. #if _OSK_MWC32
  204. #define RETSIGTYPE int
  205. #else
  206. #define RETSIGTYPE void
  207. #endif
  208.  
  209. /* Define if you have the ANSI C header files.  */
  210. #if _OSK_MWC32
  211. #define STDC_HEADERS 0
  212. #else
  213. #define STDC_HEADERS 1
  214. #endif
  215.  
  216. /*
  217.  * Regular expression library.
  218.  * Define exactly one of the following to be 1:
  219.  * HAVE_POSIX_REGCOMP: POSIX regcomp() and regex.h
  220.  * HAVE_RE_COMP: BSD re_comp()
  221.  * HAVE_REGCMP: System V regcmp()
  222.  * HAVE_V8_REGCOMP: Henry Spencer V8 regcomp() and regexp.h
  223.  * NO_REGEX: pattern matching is supported, but without metacharacters.
  224.  */
  225. #define HAVE_POSIX_REGCOMP 0
  226. #define HAVE_RE_COMP 0
  227. #define HAVE_REGCMP 0
  228. #define HAVE_V8_REGCOMP 1
  229. #define NO_REGEX 0
  230.  
  231. /* Define HAVE_VOID if your compiler supports the "void" type. */
  232. #define HAVE_VOID 1
  233.  
  234. /* Define HAVE_CONST if your compiler supports the "const" modifier. */
  235. #define HAVE_CONST 0
  236.  
  237. /* Define HAVE_TIME_T if your system supports the "time_t" type. */
  238. #define HAVE_TIME_T 1
  239.  
  240. /* Define HAVE_STRERROR if you have the strerror() function. */
  241. #define HAVE_STRERROR 0
  242.  
  243. /* Define HAVE_FILENO if you have the fileno() macro. */
  244. #define HAVE_FILENO 1
  245.  
  246. /* Define HAVE_ERRNO if you have the errno variable */
  247. /* Define MUST_DEFINE_ERRNO if you have errno but it is not define 
  248.  * in errno.h */
  249. #define HAVE_ERRNO 1
  250. #define MUST_DEFINE_ERRNO 0
  251.  
  252. /* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable */
  253. #define HAVE_SYS_ERRLIST 0
  254.  
  255. /* Define HAVE_OSPEED if your termcap library has the ospeed variable */
  256. /* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined
  257.  * in termcap.h. */
  258. #define HAVE_OSPEED 0
  259. #define MUST_DEFINE_OSPEED 0
  260.  
  261. /* Define HAVE_LOCALE if you have locale.h and setlocale. */
  262. #define HAVE_LOCALE 0
  263.  
  264. /* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr */
  265. #define HAVE_TERMIOS_FUNCS 0
  266.  
  267. /* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower */
  268. #define HAVE_UPPER_LOWER 1
  269.  
  270. /* Define if you have the _setjmp function.  */
  271. #define HAVE__SETJMP 1
  272.  
  273. /* Define if you have the memcpy function.  */
  274. #define HAVE_MEMCPY 1
  275.  
  276. /* Define if you have the popen function.  */
  277. #define HAVE_POPEN 1
  278.  
  279. /* Define if you have the sigsetmask function.  */
  280. #define HAVE_SIGSETMASK 0
  281.  
  282. /* Define if you have the stat function.  */
  283. #define HAVE_STAT 0
  284.  
  285. /* Define if you have the strchr function.  */
  286. #define HAVE_STRCHR 0
  287.  
  288. /* Define if you have the system function.  */
  289. #define HAVE_SYSTEM 1
  290.  
  291. /* Define if you have the <ctype.h> header file.  */
  292. #define HAVE_CTYPE_H 1
  293.  
  294. /* Define if you have the <errno.h> header file.  */
  295. #define HAVE_ERRNO_H 1
  296.  
  297. /* Define if you have the <fcntl.h> header file.  */
  298. #define HAVE_FCNTL_H 0
  299.  
  300. /* Define if you have the <limits.h> header file.  */
  301. #define HAVE_LIMITS_H  0
  302.  
  303. /* Define if you have the <stdio.h> header file.  */
  304. #define HAVE_STDIO_H 1
  305.  
  306. /* Define if you have the <string.h> header file.  */
  307. #define HAVE_STRING_H 1
  308.  
  309. /* Define if you have the <sys/ioctl.h> header file.  */
  310. #define HAVE_SYS_IOCTL_H 0
  311.  
  312. /* Define if you have the <sys/ptem.h> header file.  */
  313. #define HAVE_SYS_PTEM_H 0
  314.  
  315. /* Define if you have the <sys/stream.h> header file.  */
  316. #define HAVE_SYS_STREAM_H 0
  317.  
  318. /* Define if you have the <termcap.h> header file.  */
  319. #define HAVE_TERMCAP_H 1
  320.  
  321. /* Define if you have the <termio.h> header file.  */
  322. #define HAVE_TERMIO_H 0
  323.  
  324. /* Define if you have the <termios.h> header file.  */
  325. #define HAVE_TERMIOS_H 0
  326.  
  327. /* Define if you have the <time.h> header file.  */
  328. #define HAVE_TIME_H 1
  329.  
  330. /* Define if you have the <unistd.h> header file.  */
  331. #define HAVE_UNISTD_H 0
  332.  
  333. /* Define if you have the <values.h> header file.  */
  334. #define HAVE_VALUES_H 0
  335.