| 1 | #define MAXPTR 0x7fffffff /* 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 | #ifdef VMUNIX |
| 45 | #define NN 528 /*number registers*/ |
| 46 | #else |
| 47 | #define NN 132 /*number registers*/ |
| 48 | #endif |
| 49 | /* #define NN 200 */ |
| 50 | #define NNAMES 14 /*predefined reg names*/ |
| 51 | #define NIF 15 /*if-else nesting*/ |
| 52 | #define NS 64 /*name buffer*/ |
| 53 | #define NTM 256 /*tm buffer*/ |
| 54 | #define NEV 3 /*environments*/ |
| 55 | #define EVLSZ 10 /*size of ev stack*/ |
| 56 | /* #define EVS 4*256 */ |
| 57 | #ifdef VMUNIX |
| 58 | #define NM 600 |
| 59 | #define EVS 6*256 /*environment size in words*/ |
| 60 | #else |
| 61 | #define NM 300 /*requests + macros*/ |
| 62 | #define EVS 3*256 /*environment size in words*/ |
| 63 | #endif |
| 64 | #define DELTA 512 /*delta core bytes*/ |
| 65 | #define NHYP 10 /*max hyphens per word*/ |
| 66 | #define NHEX 128 /*byte size of exception word list*/ |
| 67 | #define NTAB 35 /*tab stops*/ |
| 68 | #define NSO 5 /*"so" depth*/ |
| 69 | #ifdef VMUNIX |
| 70 | #define WDSIZE 340 /*word buffer size*/ |
| 71 | #define LNSIZE 960 /*line buffer size*/ |
| 72 | #else |
| 73 | #define WDSIZE 170 /*word buffer size*/ |
| 74 | #define LNSIZE 480 /*line buffer size*/ |
| 75 | #endif |
| 76 | /* #define LNSIZE 680 */ |
| 77 | #define NDI 5 /*number of diversions*/ |
| 78 | #define DBL 0100000 /*double size indicator*/ |
| 79 | #define MOT 0100000 /*motion character indicator*/ |
| 80 | #define MOTV 0160000 /*clear for motion part*/ |
| 81 | #define VMOT 0040000 /*vert motion bit*/ |
| 82 | #define NMOT 0020000 /* negative motion indicator*/ |
| 83 | #define MMASK 0100000 /*macro mask indicator*/ |
| 84 | #define CMASK 0100377 |
| 85 | #define ZBIT 0400 /*zero width char*/ |
| 86 | #define BMASK 0377 |
| 87 | #define BYTE 8 |
| 88 | #define IMP 004 /*impossible char*/ |
| 89 | #define FILLER 037 |
| 90 | #define PRESC 026 |
| 91 | #define HX 0376 /*High-order part of xlss*/ |
| 92 | #define LX 0375 /*low-order part of xlss*/ |
| 93 | #define CONT 025 |
| 94 | #define COLON 013 |
| 95 | #define XPAR 030 |
| 96 | #define ESC 033 |
| 97 | #define FLSS 031 |
| 98 | #define RPT 014 |
| 99 | #define JREG 0374 |
| 100 | #define NTRAP 20 /*number of traps*/ |
| 101 | #define NPN 20 /*numbers in "-o"*/ |
| 102 | #define T_PAD 0101 /*cat padding*/ |
| 103 | #define T_INIT 0100 |
| 104 | #define T_IESC 16 /*initial offset*/ |
| 105 | #define T_STOP 0111 |
| 106 | #define NPP 10 /*pads per field*/ |
| 107 | #ifdef VMUNIX |
| 108 | #define FBUFSZ 1024 |
| 109 | #else |
| 110 | #define FBUFSZ 256 /*field buf size words*/ |
| 111 | #endif |
| 112 | #define OBUFSZ 512 /*bytes*/ |
| 113 | #define IBUFSZ 512 /*bytes*/ |
| 114 | #define NC 256 /*cbuf size words*/ |
| 115 | #define NOV 10 /*number of overstrike chars*/ |
| 116 | #define ZONE 5 /*5hrs for EST*/ |
| 117 | #define TDELIM 032 |
| 118 | #define LEFT 035 |
| 119 | #define RIGHT 036 |
| 120 | #define LEADER 001 |
| 121 | #define TAB 011 |
| 122 | #define TMASK 037777 |
| 123 | #define RTAB 0100000 |
| 124 | #define CTAB 0040000 |
| 125 | #define OHC 024 |
| 126 | |
| 127 | #define PAIR(A,B) (A|(B<<BYTE)) |
| 128 | |
| 129 | #define BLK 128 /*alloc block words*/ |
| 130 | #ifdef BIG |
| 131 | typedef long filep; |
| 132 | #define NBLIST BIG /*allocation , BIG = 256 per 65k*/ |
| 133 | #define BLKBITS 7 /*for BLK=128*/ |
| 134 | #endif |
| 135 | #ifndef BIG |
| 136 | typedef unsigned filep; |
| 137 | #define NBLIST TEMP /*allocation list, TEMP<=512*/ |
| 138 | /* BLK*NBLIST<=65536 words, if filep=unsigned */ |
| 139 | #define BLKBITS 0 |
| 140 | #endif |
| 141 | |