1: /*
2: * Standard include file for "less".
3: */
4:
5: /*
6: * Language details.
7: */
8: #if !VOID
9: #define void int
10: #endif
11: #define public /* PUBLIC FUNCTION */
12:
13: /*
14: * Special types and constants.
15: */
16: typedef long POSITION;
17: /*
18: * {{ Warning: if POSITION is changed to other than "long",
19: * you may have to change some of the printfs which use "%ld"
20: * to print a variable of type POSITION. }}
21: */
22:
23: #define END_POSITION ((POSITION)(-2))
24: #define NULL_POSITION ((POSITION)(-1))
25:
26: #define EOF (0)
27: #define NULL (0)
28:
29: /* How quiet should we be? */
30: #define NOT_QUIET 0 /* Ring bell at eof and for errors */
31: #define LITTLE_QUIET 1 /* Ring bell only for errors */
32: #define VERY_QUIET 2 /* Never ring bell */
33:
34: /* How should we prompt? */
35: #define PR_SHORT 0 /* Prompt with colon */
36: #define PR_MEDIUM 1 /* Prompt with message */
37: #define PR_LONG 2 /* Prompt with longer message */
38:
39: /* How should we handle backspaces? */
40: #define BS_UNDERLINE 0 /* Underlining converted to underline mode */
41: #define BS_NORMAL 1 /* \b treated as normal char; actually output */
42: #define BS_CONTROL 2 /* \b treated as control char; prints as ^H */
43:
44: /* Flag to eq_message() telling what to put in the message */
45: #define MNAME 001 /* File name */
46: #define MOF 002 /* "file x of y" */
47: #define MBYTE 004 /* "byte x/y" */
48: #define MPCT 010 /* Percentage into the file */
49:
50: /* Special chars used to tell put_line() to do something special */
51: #define UL_CHAR '\201' /* Enter underline mode */
52: #define UE_CHAR '\202' /* Exit underline mode */
53:
54: #define CONTROL(c) ((c)&037)
55: #define SIGNAL(sig,func) signal(sig,func)
56:
57: off_t lseek();
58:
59: #include "funcs.h"
60:
61: #ifdef NRTC
62: #define carat_char(c) (c ^ 0100)
63: #endif NRTC
Defined typedef's
POSITION
defined in line
16; used 48 times
- in line 23-24(2)
- in /usr/src/new/mh/miscellany/less/ch.c line
54,
75,
183,
215,
223-228(2),
234,
344
- in /usr/src/new/mh/miscellany/less/input.c line
24-28(3),
91-98(4),
149
- in /usr/src/new/mh/miscellany/less/line.c line
257-263(3),
301-309(4),
335
- in /usr/src/new/mh/miscellany/less/position.c line
15,
26,
47,
64,
95
- in /usr/src/new/mh/miscellany/less/prim.c line
37,
58,
155,
209,
230,
250,
277,
304,
347,
364-368(2),
421,
469,
490,
571
- in /usr/src/new/mh/miscellany/less/prompt.c line
53,
75
Defined macros
EOF
defined in line
26; used 16 times
- in /usr/src/new/mh/miscellany/less/ch.c line
133,
140,
211,
249,
270
- in /usr/src/new/mh/miscellany/less/input.c line
35,
41,
76,
121,
142
- in /usr/src/new/mh/miscellany/less/line.c line
266,
273,
328
- in /usr/src/new/mh/miscellany/less/main.c line
167
- in /usr/src/new/mh/miscellany/less/prim.c line
319,
406
MBYTE
defined in line
47;
never used
MNAME
defined in line
45;
never used
MOF
defined in line
46;
never used
MPCT
defined in line
48;
never used
NULL
defined in line
27; used 93 times
- in /usr/src/new/mh/miscellany/less/:option.c line
61-75(7),
81-86(3),
92,
98,
104,
142,
248
- in /usr/src/new/mh/miscellany/less/:output.c line
33
- in /usr/src/new/mh/miscellany/less/ch.c line
20,
296-300(2),
313
- in /usr/src/new/mh/miscellany/less/command.c line
144,
155,
173,
181,
482
- in /usr/src/new/mh/miscellany/less/main.c line
47,
97,
111,
196,
225,
264
- in /usr/src/new/mh/miscellany/less/option.c line
61-70(7),
76-81(3),
87-92(3),
98,
104,
110,
148,
254
- in /usr/src/new/mh/miscellany/less/output.c line
33
- in /usr/src/new/mh/miscellany/less/prim.c line
127,
177,
500,
508-510(2),
516,
527-532(2),
538-545(3),
650
- in /usr/src/new/mh/miscellany/less/prompt.c line
162
- in /usr/src/new/mh/miscellany/less/screen.c line
211-224(8),
230-231(2),
237-238(2),
248-269(12),
294-295(2),
318-323(3),
336
NULL_POSITION
defined in line
24; used 29 times
- in /usr/src/new/mh/miscellany/less/ch.c line
343
- in /usr/src/new/mh/miscellany/less/command.c line
182
- in /usr/src/new/mh/miscellany/less/input.c line
31-36(3),
98-100(2),
122,
164
- in /usr/src/new/mh/miscellany/less/line.c line
265-267(2),
309-311(2)
- in /usr/src/new/mh/miscellany/less/position.c line
85
- in /usr/src/new/mh/miscellany/less/prim.c line
45,
118,
125,
170,
212,
233,
353,
381,
432,
473,
563,
595,
635
- in /usr/src/new/mh/miscellany/less/prompt.c line
56,
79
SIGNAL
defined in line
55; used 22 times
- in /usr/src/new/mh/miscellany/less/:signal.c line
43,
56,
69-71(2),
98,
105-107(2),
125,
172-174(2)
- in /usr/src/new/mh/miscellany/less/signal.c line
46,
59,
73,
86-91(3),
118,
125-127(2),
145,
196-198(2)
public
defined in line
11; used 95 times
- in /usr/src/new/mh/miscellany/less/:option.c line
23-40(13),
128-133(2),
241
- in /usr/src/new/mh/miscellany/less/:output.c line
19,
93,
107,
138,
153,
183
- in /usr/src/new/mh/miscellany/less/:signal.c line
27
- in /usr/src/new/mh/miscellany/less/ch.c line
9,
21,
181,
203
- in /usr/src/new/mh/miscellany/less/input.c line
24,
91
- in /usr/src/new/mh/miscellany/less/line.c line
39,
50,
257,
301
- in /usr/src/new/mh/miscellany/less/main.c line
9-20(11),
38,
132,
148,
280
- in /usr/src/new/mh/miscellany/less/option.c line
23-40(13),
134-139(2),
247
- in /usr/src/new/mh/miscellany/less/output.c line
19,
94,
109,
140,
155,
185
- in /usr/src/new/mh/miscellany/less/position.c line
26,
45,
62,
79
- in /usr/src/new/mh/miscellany/less/prim.c line
8,
204,
225,
259,
343,
362,
426,
453,
465,
483
- in /usr/src/new/mh/miscellany/less/screen.c line
42-47(6),
74,
167
- in /usr/src/new/mh/miscellany/less/signal.c line
27
- in /usr/src/new/mh/miscellany/less/ttyin.c line
14,
22
void
defined in line
9;
never used
Usage of this include