Annotation of src/usr.bin/less/defines.h.top, Revision 1.2
1.2 ! niklas 1: /* $OpenBSD$ */
! 2:
1.1 etheisen 3: /* Unix definition file for less. -*- C -*-
4: *
5: * This file has 3 sections:
6: * User preferences.
7: * Settings always true on Unix.
8: * Settings automatically determined by configure.
9: *
10: * * * * * * WARNING * * * * * *
11: * If you edit defines.h by hand, do "touch stamp-h" before you run make
12: * so config.status doesn't overwrite your changes.
13: */
14:
15: /* User preferences. */
16:
17: /*
18: * SECURE is 1 if you wish to disable a bunch of features in order to
19: * be safe to run by unprivileged users.
20: */
21: #define SECURE 0
22:
23: /*
24: * SHELL_ESCAPE is 1 if you wish to allow shell escapes.
25: * (This is possible only if your system supplies the system() function.)
26: */
27: #define SHELL_ESCAPE (!SECURE)
28:
29: /*
30: * EXAMINE is 1 if you wish to allow examining files by name from within less.
31: */
32: #define EXAMINE (!SECURE)
33:
34: /*
35: * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key
36: * to complete filenames at prompts.
37: */
38: #define TAB_COMPLETE_FILENAME (!SECURE)
39:
40: /*
41: * CMD_HISTORY is 1 if you wish to allow keys to cycle through
42: * previous commands at prompts.
43: */
44: #define CMD_HISTORY 1
45:
46: /*
47: * HILITE_SEARCH is 1 if you wish to have search targets to be
48: * displayed in standout mode.
49: */
50: #define HILITE_SEARCH 1
51:
52: /*
53: * EDITOR is 1 if you wish to allow editor invocation (the "v" command).
54: * (This is possible only if your system supplies the system() function.)
55: * EDIT_PGM is the name of the (default) editor to be invoked.
56: */
57: #define EDITOR (!SECURE)
58: #define EDIT_PGM "vi"
59:
60: /*
61: * TAGS is 1 if you wish to support tag files.
62: */
63: #define TAGS (!SECURE)
64:
65: /*
66: * USERFILE is 1 if you wish to allow a .less file to specify
67: * user-defined key bindings.
68: */
69: #define USERFILE (!SECURE)
70:
71: /*
72: * GLOB is 1 if you wish to have shell metacharacters expanded in filenames.
73: * This will generally work if your system provides the "popen" function
74: * and the "echo" shell command.
75: */
76: #define GLOB (!SECURE)
77:
78: /*
79: * PIPEC is 1 if you wish to have the "|" command
80: * which allows the user to pipe data into a shell command.
81: */
82: #define PIPEC (!SECURE)
83:
84: /*
85: * LOGFILE is 1 if you wish to allow the -l option (to create log files).
86: */
87: #define LOGFILE (!SECURE)
88:
89: /*
90: * GNU_OPTIONS is 1 if you wish to support the GNU-style command
91: * line options --help and --version.
92: */
93: #define GNU_OPTIONS 1
94:
95: /*
96: * ONLY_RETURN is 1 if you want RETURN to be the only input which
97: * will continue past an error message.
98: * Otherwise, any key will continue past an error message.
99: */
100: #define ONLY_RETURN 0
101:
102: /*
103: * LESSKEYFILE is the filename of the default lesskey output file
104: * (in the HOME directory).
105: * DEF_LESSKEYINFILE is the filename of the default lesskey input
106: * (in the HOME directory).
107: */
108: #define LESSKEYFILE ".less"
109: #define DEF_LESSKEYINFILE ".lesskey"
110:
111:
112: /* Settings always true on Unix. */
113:
114: /*
115: * Define MSOFTC if compiling under Microsoft C.
116: */
117: #define MSOFTC 0
118:
119: /*
120: * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.
121: */
122: #define HAVE_SYS_TYPES_H 1
123:
124: /*
125: * HAVE_STAT is 1 if your system has the stat() call.
126: */
127: #define HAVE_STAT 1
128:
129: /*
130: * HAVE_PERROR is 1 if your system has the perror() call.
131: * (Actually, if it has sys_errlist, sys_nerr and errno.)
132: */
133: #define HAVE_PERROR 1
134:
135: /*
136: * HAVE_TIME is 1 if your system has the time() call.
137: */
138: #define HAVE_TIME 1
139:
140: /*
141: * HAVE_SHELL is 1 if your system supports a SHELL command interpreter.
142: */
143: #define HAVE_SHELL 1
144:
145: /* Settings automatically determined by configure. */