1: #define MAXPTR (char *)-1 /* max value of any pointer variable */
2: #ifdef NROFF /*NROFF*/
3: #define EM t.Em
4: #define HOR t.Hor
5: #define VERT t.Vert
6: #define INCH 240 /*increments per inch*/
7: #define SPS INCH/10 /*space size*/
8: #define SS INCH/10 /* " */
9: #define TRAILER 0
10: #define UNPAD 0227
11: #define PO 0 /*page offset*/
12: #define ASCII 1
13: #define PTID 1
14: #define LG 0
15: #define DTAB 0 /*set at 8 Ems at init time*/
16: #define ICS 2*SPS
17: #define TEMP 256 /*65K*/
18: #endif
19: #ifndef NROFF /*TROFF*/
20: #define INCH 432 /*troff resolution*/
21: #define SPS 20 /*space size at 10pt; 1/3 Em*/
22: #define SS 12 /*space size in 36ths of an em*/
23: #define TRAILER 6048 /*144*14*3 = 14 inches*/
24: #define UNPAD 027
25: #define PO 416 /*page offset 26/27ths inch*/
26: #define HOR 1
27: #define VERT 3
28: #define EM (6*(pts&077))
29: #define ASCII 0
30: #define PTID 0
31: #define LG 1
32: #define DTAB (INCH/2)
33: #define ICS 3*SPS
34: #define TEMP 512 /*128K*/
35: #endif
36:
37: #include <signal.h>
38: #define NARSP 0177 /*narrow space*/
39: #define HNSP 0226 /*half narrow space*/
40: #define PS 10 /*default point size*/
41: #define FT 0 /*default font position*/
42: #define LL 65*INCH/10 /*line length; 39picas=6.5in*/
43: #define VS INCH/6 /*vert space; 12points*/
44: #define NN 200 /*number registers*/
45: /* NN changed Jan 31 from 132 */
46: #define NNAMES 14 /*predefined reg names*/
47: #define NIF 15 /*if-else nesting*/
48: #define NS 64 /*name buffer*/
49: #define NTM 256 /*tm buffer*/
50: #define NEV 3 /*environments*/
51: #define EVLSZ 10 /*size of ev stack*/
52: #define EVS 4*256 /*environment size in words*/
53: /* BWK - trying 4*256 instead of 3*256 */
54: #define NM 300 /*requests + macros*/
55: #define DELTA 512 /*delta core bytes*/
56: #define NHYP 10 /*max hyphens per word*/
57: #define NHEX 128 /*byte size of exception word list*/
58: #define NTAB 35 /*tab stops*/
59: #define NSO 5 /*"so" depth*/
60: #define WDSIZE 170 /*word buffer size*/
61: #define LNSIZE 680 /*line buffer size*/
62: /* BWK - changed from 480 after EVS changed */
63: #define NDI 5 /*number of diversions*/
64: #define DBL 0100000 /*double size indicator*/
65: #define MOT 0100000 /*motion character indicator*/
66: #define MOTV 0160000 /*clear for motion part*/
67: #define VMOT 0040000 /*vert motion bit*/
68: #define NMOT 0020000 /* negative motion indicator*/
69: #define MMASK 0100000 /*macro mask indicator*/
70: #define CMASK 0100377
71: #define ZBIT 0400 /*zero width char*/
72: #define BMASK 0377
73: #define BYTE 8
74: #define IMP 004 /*impossible char*/
75: #define FILLER 037
76: #define PRESC 026
77: #define HX 0376 /*High-order part of xlss*/
78: #define LX 0375 /*low-order part of xlss*/
79: #define CONT 025
80: #define COLON 013
81: #define XPAR 030
82: #define ESC 033
83: #define FLSS 031
84: #define RPT 014
85: #define JREG 0374
86: #define NTRAP 20 /*number of traps*/
87: #define NPN 20 /*numbers in "-o"*/
88: #define T_PAD 0101 /*cat padding*/
89: #define T_INIT 0100
90: #define T_IESC 16 /*initial offset*/
91: #define T_STOP 0111
92: #define NPP 10 /*pads per field*/
93: #define FBUFSZ 256 /*field buf size words*/
94: #define OBUFSZ 512 /*bytes*/
95: #define IBUFSZ 512 /*bytes*/
96: #define NC 256 /*cbuf size words*/
97: #define NOV 10 /*number of overstrike chars*/
98: #define ZONE 5 /*5hrs for EST*/
99: #define TDELIM 032
100: #define LEFT 035
101: #define RIGHT 036
102: #define LEADER 001
103: #define TAB 011
104: #define TMASK 037777
105: #define RTAB 0100000
106: #define CTAB 0040000
107: #define OHC 024
108:
109: #define PAIR(A,B) (A|(B<<BYTE))
110:
111: #define BLK 128 /*alloc block words*/
112: #ifdef BIG
113: typedef long filep;
114: #define NBLIST BIG /*allocation , BIG = 256 per 65k*/
115: #define BLKBITS 7 /*for BLK=128*/
116: #endif
117: #ifndef BIG
118: typedef unsigned filep;
119: #define NBLIST TEMP /*allocation list, TEMP<=512*/
120: /* BLK*NBLIST<=65536 words, if filep=unsigned */
121: #define BLKBITS 0
122: #endif
Defined typedef's
filep
defined in line
113; used 69 times
- in line 118
- in /usr/src/cmd/troff/n1.c line
25-27(3),
128,
441,
449
- in /usr/src/cmd/troff/n2.c line
22-23(2),
42
- in /usr/src/cmd/troff/n3.c line
20-22(3),
47-50(3),
103-104(2),
143-164(9),
206,
267-271(3),
285-298(4),
326,
338,
344,
354-356(2),
365-369(3),
375,
397,
455,
563,
582-583(2),
590-593(2),
605-608(2),
627,
636
- in /usr/src/cmd/troff/n5.c line
17-18(2),
532-535(4),
543,
610
- in /usr/src/cmd/troff/nii.c line
69,
91-99(3),
106-108(2)
Defined macros
ASCII
defined in line
29; used 1 times
BLK
defined in line
111; used 12 times
BMASK
defined in line
72; used 15 times
BYTE
defined in line
73; used 16 times
CMASK
defined in line
70; used 119 times
- in /usr/src/cmd/troff/n1.c line
276-279(2),
287,
471,
482,
510,
542,
595,
664,
719-722(2),
728(2),
793,
808-809(2),
835,
904,
939
- in /usr/src/cmd/troff/n10.c line
89,
121
- in /usr/src/cmd/troff/n2.c line
80,
103,
113
- in /usr/src/cmd/troff/n3.c line
198,
217,
261-262(2),
481-488(4),
512,
573-576(3),
616-617(2)
- in /usr/src/cmd/troff/n4.c line
65,
256,
299,
307,
314,
332,
348,
363-368(2),
375,
471,
499
- in /usr/src/cmd/troff/n5.c line
110,
158-159(2),
460,
471,
501-502(2),
519,
541,
552,
568,
649,
682-684(2)
- in /usr/src/cmd/troff/n6.c line
58,
98-99(2),
108,
142,
149,
222
- in /usr/src/cmd/troff/n7.c line
165-170(2),
254,
314,
354,
542,
596-599(2),
657,
704-707(2),
747-749(2)
- in /usr/src/cmd/troff/n8.c line
74,
103,
140-143(2),
166,
211,
234
- in /usr/src/cmd/troff/n9.c line
44,
54-57(2),
71,
95,
104-105(2),
139,
148,
174,
184,
225-227(2),
256,
305
- in /usr/src/cmd/troff/t10.c line
75,
170
- in /usr/src/cmd/troff/t6.c line
88,
236,
313-314(2),
326,
370,
381,
459-461(2),
484,
497
COLON
defined in line
80; used 1 times
CONT
defined in line
79; used 3 times
CTAB
defined in line
106; used 1 times
DBL
defined in line
64; used 4 times
DELTA
defined in line
55; used 5 times
DTAB
defined in line
32; used 15 times
EM
defined in line
28; used 10 times
ESC
defined in line
82; used 2 times
EVLSZ
defined in line
51; used 3 times
EVS
defined in line
52; used 9 times
FLSS
defined in line
83; used 3 times
FT
defined in line
41; used 2 times
HNSP
defined in line
39; used 1 times
HOR
defined in line
26; used 13 times
HX
defined in line
77; used 2 times
ICS
defined in line
33; used 1 times
IMP
defined in line
74; used 13 times
INCH
defined in line
20; used 13 times
JREG
defined in line
85; used 2 times
LEFT
defined in line
100; used 5 times
LG
defined in line
31; used 1 times
LL
defined in line
42; used 4 times
LX
defined in line
78; used 2 times
MAXPTR
defined in line
1; used 4 times
MMASK
defined in line
69; used 9 times
MOT
defined in line
65; used 43 times
- in /usr/src/cmd/troff/n1.c line
483,
511,
807,
909
- in /usr/src/cmd/troff/n10.c line
114
- in /usr/src/cmd/troff/n2.c line
79,
126
- in /usr/src/cmd/troff/n3.c line
570
- in /usr/src/cmd/troff/n5.c line
157,
540,
683(2)
- in /usr/src/cmd/troff/n6.c line
52,
142,
151,
213
- in /usr/src/cmd/troff/n7.c line
479-485(3),
746
- in /usr/src/cmd/troff/n8.c line
101
- in /usr/src/cmd/troff/n9.c line
36,
43,
103,
138-146(3),
161-164(2),
173,
224-227(2),
300
- in /usr/src/cmd/troff/t10.c line
89-94(3),
120-121(2),
156
- in /usr/src/cmd/troff/t6.c line
82,
370,
383,
449
MOTV
defined in line
66; used 10 times
NARSP
defined in line
38; used 1 times
NC
defined in line
96; used 6 times
NDI
defined in line
63; used 1 times
NEV
defined in line
50; used 5 times
NHEX
defined in line
57; used 3 times
NHYP
defined in line
56; used 9 times
NIF
defined in line
47; used 2 times
NM
defined in line
54; used 8 times
NMOT
defined in line
68; used 15 times
NN
defined in line
44; used 13 times
NOV
defined in line
97; used 3 times
NPN
defined in line
87; used 2 times
NPP
defined in line
92; used 2 times
NS
defined in line
48; used 3 times
NSO
defined in line
59; used 6 times
NTAB
defined in line
58; used 4 times
NTM
defined in line
49; used 3 times
NTRAP
defined in line
86; used 16 times
OHC
defined in line
107; used 3 times
PAIR
defined in line
109; used 102 times
PO
defined in line
25; used 1 times
PRESC
defined in line
76; used 3 times
PS
defined in line
40; used 4 times
PTID
defined in line
30; used 1 times
RPT
defined in line
84; used 3 times
RTAB
defined in line
105; used 2 times
SPS
defined in line
21; used 3 times
SS
defined in line
22; used 1 times
TAB
defined in line
103; used 2 times
TEMP
defined in line
34; used 1 times
T_PAD
defined in line
88; used 2 times
UNPAD
defined in line
24; used 2 times
VERT
defined in line
27; used 13 times
VMOT
defined in line
67; used 15 times
VS
defined in line
43; used 2 times
XPAR
defined in line
81; used 2 times
ZBIT
defined in line
71; used 10 times
ZONE
defined in line
98; used 1 times
Usage of this include