|
|
1.1 root 1: /*
2: * div.h
3: * Nroff/Troff.
4: * Diversions and traps.
5: */
6:
7: #define nsm cdivp->d_nspm /* No space mode */
8:
9: /*
10: * Vertical trap list.
11: */
12: typedef struct tpl {
13: struct tpl *t_next; /* Pointer to next */
14: int t_rpos; /* Relative trap position */
15: unsigned t_apos; /* Absolute position */
16: char t_name[2]; /* Name of macro to execute */
17: } TPL;
18:
19: /*
20: * Diversions.
21: */
22: typedef struct div {
23: struct div *d_next; /* Pointer to next */
24: char d_name[2]; /* Name of diversion */
25: int d_rpos; /* Real vertical position */
26: int d_nspm; /* No space mode */
27: int d_maxh; /* Maximum height of diversion */
28: int d_maxw; /* Maximum width of diversion */
29: unsigned long d_seek; /* Last seek position */
30: union MAC *d_macp; /* Pointer to macro desc */
31: struct tpl *d_stpl; /* Start of trap list */
32: struct tpl *d_trap; /* Start of usable traps */
33: struct tpl *d_ctpp; /* Current trap pointer */
34: int d_mk; /* Marked vertical pos'n, see .mk */
35: } DIV;
36:
37: /*
38: * Global variables.
39: */
40: extern DIV *cdivp; /* Pointer to current diversion */
41: extern DIV *mdivp; /* Pointer to main diversion */
42:
43: /* end of div.h */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.