]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/less/defines.h.top
This commit was generated by cvs2svn to compensate for changes in r117839,
[FreeBSD/FreeBSD.git] / contrib / less / defines.h.top
1 /* Unix definition file for less.  -*- C -*-
2  *
3  * This file has 3 sections:
4  * User preferences.
5  * Settings always true on Unix.
6  * Settings automatically determined by configure.
7  *
8  * * * * * *  WARNING  * * * * * *
9  * If you edit defines.h by hand, do "touch stamp-h" before you run make
10  * so config.status doesn't overwrite your changes.
11  */
12 \f
13 /* User preferences.  */
14
15 /*
16  * SECURE is 1 if you wish to disable a bunch of features in order to
17  * be safe to run by unprivileged users.
18  */
19 #define SECURE          0
20
21 /*
22  * SHELL_ESCAPE is 1 if you wish to allow shell escapes.
23  * (This is possible only if your system supplies the system() function.)
24  */
25 #define SHELL_ESCAPE    (!SECURE)
26
27 /*
28  * EXAMINE is 1 if you wish to allow examining files by name from within less.
29  */
30 #define EXAMINE         (!SECURE)
31
32 /*
33  * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key
34  * to complete filenames at prompts.
35  */
36 #define TAB_COMPLETE_FILENAME   (!SECURE)
37
38 /*
39  * CMD_HISTORY is 1 if you wish to allow keys to cycle through
40  * previous commands at prompts.
41  */
42 #define CMD_HISTORY     1
43
44 /*
45  * HILITE_SEARCH is 1 if you wish to have search targets to be 
46  * displayed in standout mode.
47  */
48 #define HILITE_SEARCH   1
49
50 /*
51  * EDITOR is 1 if you wish to allow editor invocation (the "v" command).
52  * (This is possible only if your system supplies the system() function.)
53  * EDIT_PGM is the name of the (default) editor to be invoked.
54  */
55 #define EDITOR          (!SECURE)
56
57 /*
58  * TAGS is 1 if you wish to support tag files.
59  */
60 #define TAGS            (!SECURE)
61
62 /*
63  * USERFILE is 1 if you wish to allow a .less file to specify 
64  * user-defined key bindings.
65  */
66 #define USERFILE        (!SECURE)
67
68 /*
69  * GLOB is 1 if you wish to have shell metacharacters expanded in filenames.
70  * This will generally work if your system provides the "popen" function
71  * and the "echo" shell command.
72  */
73 #define GLOB            (!SECURE)
74
75 /*
76  * PIPEC is 1 if you wish to have the "|" command
77  * which allows the user to pipe data into a shell command.
78  */
79 #define PIPEC           (!SECURE)
80
81 /*
82  * LOGFILE is 1 if you wish to allow the -l option (to create log files).
83  */
84 #define LOGFILE         (!SECURE)
85
86 /*
87  * GNU_OPTIONS is 1 if you wish to support the GNU-style command
88  * line options --help and --version.
89  */
90 #define GNU_OPTIONS     1
91
92 /*
93  * ONLY_RETURN is 1 if you want RETURN to be the only input which
94  * will continue past an error message.
95  * Otherwise, any key will continue past an error message.
96  */
97 #define ONLY_RETURN     0
98
99 /*
100  * LESSKEYFILE is the filename of the default lesskey output file 
101  * (in the HOME directory).
102  * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file.
103  * DEF_LESSKEYINFILE is the filename of the default lesskey input 
104  * (in the HOME directory).
105  */
106 #define LESSKEYFILE             ".less"
107 #define LESSKEYFILE_SYS         SYSDIR "/sysless"
108 #define DEF_LESSKEYINFILE       ".lesskey"
109
110 \f
111 /* Settings always true on Unix.  */
112
113 /*
114  * Define MSDOS_COMPILER if compiling under Microsoft C.
115  */
116 #define MSDOS_COMPILER  0
117
118 /*
119  * Pathname separator character.
120  */
121 #define PATHNAME_SEP    "/"
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  * Define if you have the <sgstat.h> header file.
130  */
131 #undef HAVE_SGSTAT_H
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      1
148
149 /*
150  * Default shell metacharacters and meta-escape character.
151  */
152 #define DEF_METACHARS   "; \t\n'\"()<>|&^`\\"
153 #define DEF_METAESCAPE  "\\"
154
155 /* 
156  * HAVE_DUP is 1 if your system has the dup() call.
157  */
158 #define HAVE_DUP        1
159
160 /*
161  * Sizes of various buffers.
162  */
163 #define CMDBUF_SIZE     512     /* Buffer for multichar commands */
164 #define UNGOT_SIZE      100     /* Max chars to unget() */
165 #define LINEBUF_SIZE    1024    /* Max size of line in input file */
166 #define OUTBUF_SIZE     1024    /* Output buffer */
167 #define PROMPT_SIZE     200     /* Max size of prompt string */
168 #define TERMBUF_SIZE    2048    /* Termcap buffer for tgetent */
169 #define TERMSBUF_SIZE   1024    /* Buffer to hold termcap strings */
170 #define TAGLINE_SIZE    512     /* Max size of line in tags file */
171 #define TABSTOP_MAX     32      /* Max number of custom tab stops */
172 \f
173 /* Settings automatically determined by configure.  */