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 NULL_POSITION ((POSITION)(-1))
24:
25: #define EOF (0)
26: #define NULL (0)
27:
28: /* How quiet should we be? */
29: #define NOT_QUIET 0 /* Ring bell at eof and for errors */
30: #define LITTLE_QUIET 1 /* Ring bell only for errors */
31: #define VERY_QUIET 2 /* Never ring bell */
32:
33: /* How should we prompt? */
34: #define PR_SHORT 0 /* Prompt with colon */
35: #define PR_MEDIUM 1 /* Prompt with message */
36: #define PR_LONG 2 /* Prompt with longer message */
37:
38: /* How should we handle backspaces? */
39: #define BS_SPECIAL 0 /* Do special things for underlining and bold */
40: #define BS_NORMAL 1 /* \b treated as normal char; actually output */
41: #define BS_CONTROL 2 /* \b treated as control char; prints as ^H */
42:
43: /* Special chars used to tell put_line() to do something special */
44: #define UL_CHAR '\201' /* Enter underline mode */
45: #define UE_CHAR '\202' /* Exit underline mode */
46: #define BO_CHAR '\203' /* Enter boldface mode */
47: #define BE_CHAR '\204' /* Exit boldface mode */
48:
49: #define CONTROL(c) ((c)&037)
50: #define SIGNAL(sig,func) signal(sig,func)
51:
52: /* Library function declarations */
53: off_t lseek();
54:
55: #include "funcs.h"
Defined typedef's
POSITION
defined in line
16; used 47 times
- in line 23
- in /usr/src/local/less/ch.c line
59,
80,
225,
257,
275,
296-301(2),
307,
417
- in /usr/src/local/less/input.c line
23-27(3),
90-97(4)
- in /usr/src/local/less/line.c line
394-400(3),
438-446(4),
472
- in /usr/src/local/less/position.c line
15,
28,
49,
66,
97
- in /usr/src/local/less/prim.c line
37,
58,
159,
213,
234,
254,
281,
310,
351,
384-387(2),
441,
495,
535,
616
- in /usr/src/local/less/prompt.c line
72,
98
Defined macros
EOF
defined in line
25; used 17 times
- in /usr/src/local/less/ch.c line
146,
153,
196,
253,
322,
343
- in /usr/src/local/less/input.c line
34,
40,
75,
120,
141
- in /usr/src/local/less/line.c line
403,
410,
465
- in /usr/src/local/less/main.c line
239
- in /usr/src/local/less/prim.c line
329,
370
NULL
defined in line
26; used 83 times
- in /usr/src/local/less/ch.c line
20,
369-373(2),
386
- in /usr/src/local/less/command.c line
149,
171,
189,
197,
283,
516
- in /usr/src/local/less/main.c line
22,
52,
103,
177,
268,
297,
328
- in /usr/src/local/less/option.c line
69-83(7),
89-94(3),
100,
106,
112,
135(2),
155,
282
- in /usr/src/local/less/output.c line
37
- in /usr/src/local/less/prim.c line
128,
137,
181,
545,
553-555(2),
561,
572-577(2),
583-590(3),
695
- in /usr/src/local/less/prompt.c line
196
- in /usr/src/local/less/screen.c line
224-237(8),
243-244(2),
250-251(2),
261-278(10),
284-294(6),
319-320(2),
343-348(3),
361
NULL_POSITION
defined in line
23; used 33 times
- in /usr/src/local/less/ch.c line
187,
416
- in /usr/src/local/less/command.c line
159,
198
- in /usr/src/local/less/input.c line
30-35(3),
97-99(2),
121,
163
- in /usr/src/local/less/line.c line
402-404(2),
446-448(2)
- in /usr/src/local/less/position.c line
87
- in /usr/src/local/less/prim.c line
45,
119,
126,
174,
216,
237,
358,
398,
404,
452,
504,
608,
640,
680
- in /usr/src/local/less/prompt.c line
75-77(2),
102
SIGNAL
defined in line
50; used 10 times
public
defined in line
11; used 80 times
- in /usr/src/local/less/ch.c line
9,
21,
223,
245
- in /usr/src/local/less/help.c line
12
- in /usr/src/local/less/input.c line
23,
90
- in /usr/src/local/less/line.c line
50,
62,
394,
438
- in /usr/src/local/less/main.c line
9-25(14),
44,
204,
220,
353
- in /usr/src/local/less/option.c line
26-43(13),
141-146(2),
274
- in /usr/src/local/less/output.c line
7,
23,
105,
119,
150,
165,
225
- in /usr/src/local/less/position.c line
28,
47,
64,
81
- in /usr/src/local/less/prim.c line
8,
208,
229,
263,
347,
382,
446,
473,
482,
516
- in /usr/src/local/less/prompt.c line
204
- in /usr/src/local/less/screen.c line
44-51(8),
78,
171
- in /usr/src/local/less/signal.c line
27
- in /usr/src/local/less/ttyin.c line
14,
22
void
defined in line
9;
never used
Usage of this include