1: /* tdef.h 4.8 87/04/30 */
2:
3: #include <sys/param.h>
4: #undef CMASK /* XXX */
5: #undef BIG /* XXX */
6: #define MAXPTR (-1) /* max value of any pointer variable */
7: #ifdef NROFF /*NROFF*/
8: #define EM t.Em
9: #define HOR t.Hor
10: #define VERT t.Vert
11: #define INCH 240 /*increments per inch*/
12: #define SPS INCH/10 /*space size*/
13: #define SS INCH/10 /* " */
14: #define TRAILER 0
15: #define UNPAD 0227
16: #define PO 0 /*page offset*/
17: #define ASCII 1
18: #define PTID 1
19: #define LG 0
20: #define DTAB 0 /*set at 8 Ems at init time*/
21: #define ICS 2*SPS
22: #define TEMP 256 /*65K*/
23: #endif
24: #ifndef NROFF /*TROFF*/
25: #define INCH 432 /*troff resolution*/
26: #define SPS 20 /*space size at 10pt; 1/3 Em*/
27: #define SS 12 /*space size in 36ths of an em*/
28: #define TRAILER 6048 /*144*14*3 = 14 inches*/
29: #define UNPAD 027
30: #define PO 416 /*page offset 26/27ths inch*/
31: #define HOR 1
32: #define VERT 3
33: #define EM (6*(pts&077))
34: #define ASCII 0
35: #define PTID 0
36: #define LG 1
37: #define DTAB (INCH/2)
38: #define ICS 3*SPS
39: #define TEMP 512 /*128K*/
40: #endif
41:
42: #include <signal.h>
43: #define NARSP 0177 /*narrow space*/
44: #define HNSP 0226 /*half narrow space*/
45: #define PS 10 /*default point size*/
46: #define FT 0 /*default font position*/
47: #define LL 65*INCH/10 /*line length; 39picas=6.5in*/
48: #define VS INCH/6 /*vert space; 12points*/
49: #ifdef VMUNIX
50: #define NN 528 /*number registers*/
51: #else
52: #define NN 200 /*number registers*/
53: #endif
54: /* #define NN 200 */
55: #define NNAMES 14 /*predefined reg names*/
56: #define NIF 15 /*if-else nesting*/
57: #define NS 64 /*name buffer*/
58: #define NTM 256 /*tm buffer*/
59: #define NEV 3 /*environments*/
60: #define EVLSZ 10 /*size of ev stack*/
61: /* #define EVS 4*256 */
62: #ifdef VMUNIX
63: #define NM 600
64: #define EVS 6*256 /*environment size in words*/
65: #else
66: #define NM 300 /*requests + macros*/
67: #define EVS 4*256 /*environment size in words*/
68: #endif
69: #define DELTA 512 /*delta core bytes*/
70: #define NHYP 10 /*max hyphens per word*/
71: #define NHEX 128 /*byte size of exception word list*/
72: #define NTAB 35 /*tab stops*/
73: #define NSO 5 /*"so" depth*/
74: #ifdef VMUNIX
75: #define WDSIZE 340 /*word buffer size*/
76: #define LNSIZE 960 /*line buffer size*/
77: #else
78: #define WDSIZE 170 /*word buffer size*/
79: #define LNSIZE 680 /*line buffer size*/
80: #endif
81: /* #define LNSIZE 680 */
82: #define NDI 5 /*number of diversions*/
83: #define DBL 0100000 /*double size indicator*/
84: #define MOT 0100000 /*motion character indicator*/
85: #define MOTV 0160000 /*clear for motion part*/
86: #define VMOT 0040000 /*vert motion bit*/
87: #define NMOT 0020000 /* negative motion indicator*/
88: #define MMASK 0100000 /*macro mask indicator*/
89: #define CMASK 0100377
90: #define ZBIT 0400 /*zero width char*/
91: #define BMASK 0377
92: #define BYTE 8
93: #define IMP 004 /*impossible char*/
94: #define FILLER 037
95: #define PRESC 026
96: #define HX 0376 /*High-order part of xlss*/
97: #define LX 0375 /*low-order part of xlss*/
98: #define CONT 025
99: #define COLON 013
100: #define XPAR 030
101: #define ESC 033
102: #define FLSS 031
103: #define RPT 014
104: #define JREG 0374
105: #define NTRAP 20 /*number of traps*/
106: #define NPN 20 /*numbers in "-o"*/
107: #define T_PAD 0101 /*cat padding*/
108: #define T_INIT 0100
109: #define T_IESC 16 /*initial offset*/
110: #define T_STOP 0111
111: #define NPP 10 /*pads per field*/
112: #ifdef VMUNIX
113: #define FBUFSZ 1024
114: #else
115: #define FBUFSZ 256 /*field buf size words*/
116: #endif
117: #define OBUFSZ 8192 /*bytes*/
118: #define IBUFSZ 8192 /*bytes*/
119: #define NC 256 /*cbuf size words*/
120: #define NOV 10 /*number of overstrike chars*/
121: #define TDELIM 032
122: #define LEFT 035
123: #define RIGHT 036
124: #define LEADER 001
125: #define TAB 011
126: #define TMASK 037777
127: #define RTAB 0100000
128: #define CTAB 0040000
129: #define OHC 024
130:
131: #define PAIR(A,B) (A|(B<<BYTE))
132:
133: #define BLK 128 /*alloc block words*/
134:
135: #ifdef VMUNIX
136: #define BIG 1024
137: #endif VMUNIX
138:
139: #ifdef BIG
140: typedef long filep;
141: #define NBLIST BIG /*allocation , BIG = 256 per 65k*/
142: #define BLKBITS 7 /*for BLK=128*/
143: #endif
144: #ifndef BIG
145: typedef unsigned filep;
146: #define NBLIST TEMP /*allocation list, TEMP<=512*/
147: /* BLK*NBLIST<=65536 words, if filep=unsigned */
148: #define BLKBITS 0
149: #endif
Defined typedef's
filep
defined in line
140; used 69 times
- in line 145
- in /usr/src/usr.bin/roff/common_source/n1.c line
31-33(3),
134,
455,
463
- in /usr/src/usr.bin/roff/common_source/n2.c line
26-27(2),
46
- in /usr/src/usr.bin/roff/common_source/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,
496,
649,
668-669(2),
676-679(2),
691-694(2),
713,
722
- in /usr/src/usr.bin/roff/common_source/n5.c line
22-23(2),
538-541(4),
549,
618
- in /usr/src/usr.bin/roff/common_source/nii.c line
73,
95-103(3),
110-112(2)
Defined macros
ASCII
defined in line
34; used 1 times
BIG
defined in line
136; used 4 times
BLK
defined in line
133; used 13 times
BMASK
defined in line
91; used 18 times
BYTE
defined in line
92; used 21 times
CMASK
defined in line
89; used 1 times
COLON
defined in line
99; used 1 times
CONT
defined in line
98; used 3 times
CTAB
defined in line
128; used 1 times
DBL
defined in line
83; used 6 times
DELTA
defined in line
69; used 2 times
DTAB
defined in line
37; used 15 times
EM
defined in line
33; used 10 times
ESC
defined in line
101; used 2 times
EVLSZ
defined in line
60; used 3 times
EVS
defined in line
67; used 10 times
FLSS
defined in line
102; used 3 times
FT
defined in line
46; used 2 times
HNSP
defined in line
44; used 1 times
HOR
defined in line
31; used 14 times
HX
defined in line
96; used 3 times
ICS
defined in line
38; used 1 times
IMP
defined in line
93; used 13 times
INCH
defined in line
25; used 13 times
JREG
defined in line
104; used 2 times
LEFT
defined in line
122; used 5 times
LG
defined in line
36; used 1 times
LL
defined in line
47; used 4 times
LNSIZE
defined in line
79; used 15 times
LX
defined in line
97; used 3 times
MAXPTR
defined in line
6; used 3 times
MMASK
defined in line
88; used 9 times
MOT
defined in line
84; used 47 times
- in /usr/src/usr.bin/roff/common_source/n1.c line
497,
525,
839,
941
- in /usr/src/usr.bin/roff/common_source/n2.c line
83,
130
- in /usr/src/usr.bin/roff/common_source/n3.c line
656
- in /usr/src/usr.bin/roff/common_source/n5.c line
162,
546,
692(2)
- in /usr/src/usr.bin/roff/common_source/n7.c line
483-489(3),
750
- in /usr/src/usr.bin/roff/common_source/n8.c line
105
- in /usr/src/usr.bin/roff/common_source/n9.c line
40,
47,
107,
142-150(3),
165-168(2),
177,
228-231(2),
305
- in /usr/src/usr.bin/roff/nroff/n10.c line
118
- in /usr/src/usr.bin/roff/nroff/n6.c line
57,
151,
164,
229
- in /usr/src/usr.bin/roff/troff/svt6.c line
87,
375,
388,
454
- in /usr/src/usr.bin/roff/troff/t10.c line
93-98(3),
124-125(2),
160
- in /usr/src/usr.bin/roff/troff/t6.c line
87,
376,
393,
462
MOTV
defined in line
85; used 13 times
NARSP
defined in line
43; used 1 times
NC
defined in line
119; used 6 times
NDI
defined in line
82; used 1 times
NEV
defined in line
59; used 6 times
NHEX
defined in line
71; used 3 times
NHYP
defined in line
70; used 9 times
NIF
defined in line
56; used 2 times
NM
defined in line
66; used 8 times
NMOT
defined in line
87; used 18 times
- in /usr/src/usr.bin/roff/common_source/n9.c line
165-168(2),
195,
288
- in /usr/src/usr.bin/roff/nroff/n10.c line
120
- in /usr/src/usr.bin/roff/nroff/n6.c line
60,
168,
230
- in /usr/src/usr.bin/roff/troff/svt6.c line
90,
392,
455
- in /usr/src/usr.bin/roff/troff/t10.c line
95,
126-127(2),
162
- in /usr/src/usr.bin/roff/troff/t6.c line
90,
397,
463
NN
defined in line
52; used 13 times
NOV
defined in line
120; used 3 times
NPN
defined in line
106; used 2 times
NPP
defined in line
111; used 2 times
NS
defined in line
57; used 3 times
NSO
defined in line
73; used 6 times
NTAB
defined in line
72; used 4 times
NTM
defined in line
58; used 3 times
NTRAP
defined in line
105; used 16 times
OHC
defined in line
129; used 3 times
PAIR
defined in line
131; used 103 times
PO
defined in line
30; used 1 times
PRESC
defined in line
95; used 4 times
PS
defined in line
45; used 4 times
PTID
defined in line
35; used 1 times
RPT
defined in line
103; used 3 times
RTAB
defined in line
127; used 2 times
SPS
defined in line
26; used 3 times
SS
defined in line
27; used 1 times
TAB
defined in line
125; used 2 times
TEMP
defined in line
39; used 1 times
UNPAD
defined in line
29; used 2 times
VERT
defined in line
32; used 18 times
VMOT
defined in line
86; used 18 times
VS
defined in line
48; used 2 times
XPAR
defined in line
100; used 2 times
ZBIT
defined in line
90; used 11 times
Usage of this include