1: /* tdef.h 4.6 85/05/05 */
2:
3: #define MAXPTR 0x7fffffff /* max value of any pointer variable */
4: #ifdef NROFF /*NROFF*/
5: #define EM t.Em
6: #define HOR t.Hor
7: #define VERT t.Vert
8: #define INCH 240 /*increments per inch*/
9: #define SPS INCH/10 /*space size*/
10: #define SS INCH/10 /* " */
11: #define TRAILER 0
12: #define UNPAD 0227
13: #define PO 0 /*page offset*/
14: #define ASCII 1
15: #define PTID 1
16: #define LG 0
17: #define DTAB 0 /*set at 8 Ems at init time*/
18: #define ICS 2*SPS
19: #define TEMP 256 /*65K*/
20: #endif
21: #ifndef NROFF /*TROFF*/
22: #define INCH 432 /*troff resolution*/
23: #define SPS 20 /*space size at 10pt; 1/3 Em*/
24: #define SS 12 /*space size in 36ths of an em*/
25: #define TRAILER 6048 /*144*14*3 = 14 inches*/
26: #define UNPAD 027
27: #define PO 416 /*page offset 26/27ths inch*/
28: #define HOR 1
29: #define VERT 3
30: #define EM (6*(pts&077))
31: #define ASCII 0
32: #define PTID 0
33: #define LG 1
34: #define DTAB (INCH/2)
35: #define ICS 3*SPS
36: #define TEMP 512 /*128K*/
37: #endif
38:
39: #include <signal.h>
40: #define NARSP 0177 /*narrow space*/
41: #define HNSP 0226 /*half narrow space*/
42: #define PS 10 /*default point size*/
43: #define FT 0 /*default font position*/
44: #define LL 65*INCH/10 /*line length; 39picas=6.5in*/
45: #define VS INCH/6 /*vert space; 12points*/
46: #ifdef VMUNIX
47: #define NN 528 /*number registers*/
48: #else
49: #define NN 132 /*number registers*/
50: #endif
51: /* #define NN 200 */
52: #define NNAMES 14 /*predefined reg names*/
53: #define NIF 15 /*if-else nesting*/
54: #define NS 64 /*name buffer*/
55: #define NTM 256 /*tm buffer*/
56: #define NEV 3 /*environments*/
57: #define EVLSZ 10 /*size of ev stack*/
58: /* #define EVS 4*256 */
59: #ifdef VMUNIX
60: #define NM 600
61: #define EVS 6*256 /*environment size in words*/
62: #else
63: #define NM 300 /*requests + macros*/
64: #define EVS 3*256 /*environment size in words*/
65: #endif
66: #define DELTA 512 /*delta core bytes*/
67: #define NHYP 10 /*max hyphens per word*/
68: #define NHEX 128 /*byte size of exception word list*/
69: #define NTAB 35 /*tab stops*/
70: #define NSO 5 /*"so" depth*/
71: #ifdef VMUNIX
72: #define WDSIZE 340 /*word buffer size*/
73: #define LNSIZE 960 /*line buffer size*/
74: #else
75: #define WDSIZE 170 /*word buffer size*/
76: #define LNSIZE 480 /*line buffer size*/
77: #endif
78: /* #define LNSIZE 680 */
79: #define NDI 5 /*number of diversions*/
80: #define DBL 0100000 /*double size indicator*/
81: #define MOT 0100000 /*motion character indicator*/
82: #define MOTV 0160000 /*clear for motion part*/
83: #define VMOT 0040000 /*vert motion bit*/
84: #define NMOT 0020000 /* negative motion indicator*/
85: #define MMASK 0100000 /*macro mask indicator*/
86: #define CMASK 0100377
87: #define ZBIT 0400 /*zero width char*/
88: #define BMASK 0377
89: #define BYTE 8
90: #define IMP 004 /*impossible char*/
91: #define FILLER 037
92: #define PRESC 026
93: #define HX 0376 /*High-order part of xlss*/
94: #define LX 0375 /*low-order part of xlss*/
95: #define CONT 025
96: #define COLON 013
97: #define XPAR 030
98: #define ESC 033
99: #define FLSS 031
100: #define RPT 014
101: #define JREG 0374
102: #define NTRAP 20 /*number of traps*/
103: #define NPN 20 /*numbers in "-o"*/
104: #define T_PAD 0101 /*cat padding*/
105: #define T_INIT 0100
106: #define T_IESC 16 /*initial offset*/
107: #define T_STOP 0111
108: #define NPP 10 /*pads per field*/
109: #ifdef VMUNIX
110: #define FBUFSZ 1024
111: #else
112: #define FBUFSZ 256 /*field buf size words*/
113: #endif
114: #define OBUFSZ 8192 /*bytes*/
115: #define IBUFSZ 8192 /*bytes*/
116: #define NC 256 /*cbuf size words*/
117: #define NOV 10 /*number of overstrike chars*/
118: #define ZONE 5 /*5hrs for EST*/
119: #define TDELIM 032
120: #define LEFT 035
121: #define RIGHT 036
122: #define LEADER 001
123: #define TAB 011
124: #define TMASK 037777
125: #define RTAB 0100000
126: #define CTAB 0040000
127: #define OHC 024
128:
129: #define PAIR(A,B) (A|(B<<BYTE))
130:
131: #define BLK 128 /*alloc block words*/
132:
133: #ifdef VMUNIX
134: #define BIG 1024
135: #endif VMUNIX
136:
137: #ifdef BIG
138: typedef long filep;
139: #define NBLIST BIG /*allocation , BIG = 256 per 65k*/
140: #define BLKBITS 7 /*for BLK=128*/
141: #endif
142: #ifndef BIG
143: typedef unsigned filep;
144: #define NBLIST TEMP /*allocation list, TEMP<=512*/
145: /* BLK*NBLIST<=65536 words, if filep=unsigned */
146: #define BLKBITS 0
147: #endif
Defined typedef's
filep
defined in line
138; used 69 times
- in line 143
- in /usr/src/usr.bin/troff/n1.c line
31-33(3),
134,
463,
471
- in /usr/src/usr.bin/troff/n2.c line
26-27(2),
46
- in /usr/src/usr.bin/troff/n3.c line
24-26(3),
51-54(3),
113-114(2),
153-174(9),
216,
277-281(3),
295-308(4),
339,
353,
359,
369-371(2),
384-388(3),
394,
423,
497,
650,
669-670(2),
677-680(2),
692-695(2),
714,
723
- in /usr/src/usr.bin/troff/n5.c line
22-23(2),
538-541(4),
549,
618
- in /usr/src/usr.bin/troff/nii.c line
73,
95-103(3),
110-112(2)
Defined macros
ASCII
defined in line
31; used 1 times
BIG
defined in line
134; used 3 times
BLK
defined in line
131; used 13 times
BMASK
defined in line
88; used 17 times
BYTE
defined in line
89; used 20 times
CMASK
defined in line
86; used 118 times
- in /usr/src/usr.bin/troff/n1.c line
294-297(2),
305,
493,
504,
532,
564,
617,
686,
758-761(2),
767(2),
832,
848-849(2),
875,
944,
979
- in /usr/src/usr.bin/troff/n2.c line
84,
107,
117
- in /usr/src/usr.bin/troff/n3.c line
208,
227,
271-272(2),
502,
599,
660-663(3),
703-704(2)
- in /usr/src/usr.bin/troff/n4.c line
70,
261,
304,
312,
319,
337,
353,
368-373(2),
380,
476,
504
- in /usr/src/usr.bin/troff/n5.c line
115,
163-164(2),
465,
476,
507-508(2),
525,
547,
559,
576,
658,
691-693(2)
- in /usr/src/usr.bin/troff/n7.c line
169-174(2),
258,
318,
358,
546,
600-603(2),
661,
708-711(2),
751-753(2)
- in /usr/src/usr.bin/troff/n8.c line
78,
107,
144-147(2),
170,
215,
238
- in /usr/src/usr.bin/troff/n9.c line
48,
58-61(2),
75,
99,
108-109(2),
143,
152,
178,
188,
229-231(2),
261,
310
- in /usr/src/usr.bin/troff/svt6.c line
93,
241,
318-319(2),
331,
375,
386,
464-466(2),
489,
502
- in /usr/src/usr.bin/troff/t10.c line
79,
174
- in /usr/src/usr.bin/troff/t6.c line
93,
241,
318-319(2),
331,
376,
391,
472-474(2),
497,
513
COLON
defined in line
96; used 1 times
CONT
defined in line
95; used 3 times
CTAB
defined in line
126; used 1 times
DBL
defined in line
80; used 6 times
DELTA
defined in line
66; used 2 times
DTAB
defined in line
34; used 15 times
EM
defined in line
30; used 7 times
ESC
defined in line
98; used 2 times
EVLSZ
defined in line
57; used 3 times
EVS
defined in line
64; used 10 times
FLSS
defined in line
99; used 3 times
FT
defined in line
43; used 2 times
HNSP
defined in line
41; used 1 times
HOR
defined in line
28; used 13 times
HX
defined in line
93; used 2 times
ICS
defined in line
35; used 1 times
IMP
defined in line
90; used 13 times
INCH
defined in line
22; used 12 times
JREG
defined in line
101; used 2 times
LEFT
defined in line
120; used 5 times
LG
defined in line
33; used 1 times
LL
defined in line
44; used 4 times
LNSIZE
defined in line
76; used 12 times
LX
defined in line
94; used 2 times
MAXPTR
defined in line
3; used 4 times
MMASK
defined in line
85; used 9 times
MOT
defined in line
81; used 42 times
- in /usr/src/usr.bin/troff/n1.c line
505,
533,
847,
949
- in /usr/src/usr.bin/troff/n2.c line
83,
130
- in /usr/src/usr.bin/troff/n3.c line
657
- in /usr/src/usr.bin/troff/n5.c line
162,
546,
692(2)
- in /usr/src/usr.bin/troff/n7.c line
483-489(3),
750
- in /usr/src/usr.bin/troff/n8.c line
105
- in /usr/src/usr.bin/troff/n9.c line
40,
47,
107,
142-150(3),
165-168(2),
177,
228-231(2),
305
- in /usr/src/usr.bin/troff/svt6.c line
87,
375,
388,
454
- in /usr/src/usr.bin/troff/t10.c line
93-98(3),
124-125(2),
160
- in /usr/src/usr.bin/troff/t6.c line
87,
376,
393,
462
MOTV
defined in line
82; used 9 times
NARSP
defined in line
40; used 1 times
NC
defined in line
116; used 6 times
NDI
defined in line
79; used 1 times
NEV
defined in line
56; used 6 times
NHEX
defined in line
68; used 3 times
NHYP
defined in line
67; used 9 times
NIF
defined in line
53; used 2 times
NM
defined in line
63; used 8 times
NMOT
defined in line
84; used 14 times
NN
defined in line
49; used 13 times
NOV
defined in line
117; used 3 times
NPN
defined in line
103; used 2 times
NPP
defined in line
108; used 2 times
NS
defined in line
54; used 3 times
NSO
defined in line
70; used 6 times
NTAB
defined in line
69; used 4 times
NTM
defined in line
55; used 3 times
NTRAP
defined in line
102; used 16 times
OHC
defined in line
127; used 3 times
PAIR
defined in line
129; used 103 times
PO
defined in line
27; used 1 times
PRESC
defined in line
92; used 3 times
PS
defined in line
42; used 4 times
PTID
defined in line
32; used 1 times
RPT
defined in line
100; used 3 times
RTAB
defined in line
125; used 2 times
SPS
defined in line
23; used 3 times
SS
defined in line
24; used 1 times
TAB
defined in line
123; used 1 times
TEMP
defined in line
36; used 1 times
UNPAD
defined in line
26; used 2 times
VERT
defined in line
29; used 13 times
VMOT
defined in line
83; used 14 times
VS
defined in line
45; used 2 times
XPAR
defined in line
97; used 2 times
ZBIT
defined in line
87; used 9 times
ZONE
defined in line
118;
never used
Usage of this include