|
|
1.1 ! root 1: /* ! 2: * extern.c ! 3: * Nroff/Troff. ! 4: * Global variables. ! 5: */ ! 6: ! 7: #include "roff.h" ! 8: ! 9: /* Miscellaneous globals, declared in roff.h. */ ! 10: int A_reg; /* .A register */ ! 11: int a_reg; /* .a register */ ! 12: char *argv0; /* "nroff" or "troff" */ ! 13: int bracelevel; /* Level of \{ \} nesting */ ! 14: int byeflag; /* True when exiting */ ! 15: int dbglvl; /* Debug level */ ! 16: int dflag; /* Debug flag */ ! 17: char diskbuf[DBFSIZE]; /* Disk buffer for temp file */ ! 18: char endtrap[2]; /* End macro name */ ! 19: char esc; /* Escape character */ ! 20: int escflag; /* Last character was escaped */ ! 21: int iestack[IESTACKSIZE]; /* .ie condition stack */ ! 22: int iestackx; /* .ie condition stack index */ ! 23: int infalse; /* True in false conditional */ ! 24: int lflag; /* Landscape mode */ ! 25: char miscbuf[MSCSIZE]; /* Miscellaneous buffer */ ! 26: int nbrflag; /* Don't allow command to break */ ! 27: unsigned npn; /* Next page number */ ! 28: int n_reg; /* .n register */ ! 29: int oldbracelevel; /* Old level of \{ \} nesting */ ! 30: int oldpof; /* Old page offset */ ! 31: unsigned pct; /* Page counter */ ! 32: int pflag; /* Generate PostScript output */ ! 33: unsigned pgl; /* Page length */ ! 34: int pof; /* Page offset */ ! 35: SPECIAL *spc_list; /* Special characters */ ! 36: int svs; /* Saved space */ ! 37: FILE *tmp; /* Temp file pointer */ ! 38: unsigned long tmpseek; /* Pointer into temp file */ ! 39: int T_reg; /* .T register */ ! 40: int varsp; /* Variable spacing */ ! 41: int xflag; /* Suppress page eject on exit */ ! 42: #if ZKLUDGE ! 43: int Zflag; /* PS save/restore kludge */ ! 44: #endif ! 45: ! 46: /* Code global, declared in code.h. */ ! 47: CODE codeval; ! 48: ! 49: /* Diversion globals, declared in div.h. */ ! 50: DIV *cdivp; /* Pointer to diversion stack */ ! 51: DIV *mdivp; /* Pointer to main diversion */ ! 52: ! 53: /* Environment globals, declared in env.h. */ ! 54: ENV env; /* Current environment */ ! 55: int envinit[ENVSIZE]; /* If initialized */ ! 56: int envs; /* Environment stack index */ ! 57: int envstak[ENVSTACK]; /* Environment stack */ ! 58: ! 59: /* Hyphenation globals, declared in hyphen.h. */ ! 60: char hindbuf[WORSIZE]; ! 61: char hletbuf[WORSIZE]; ! 62: char hyphbuf[WORSIZE]; ! 63: ! 64: /* Register globals, declared in reg.h. */ ! 65: REG *nrctreg; /* Character type */ ! 66: REG *nrdlreg; /* Max width of last diversion */ ! 67: REG *nrdnreg; /* Height of last diversion */ ! 68: REG *nrdwreg; /* Day of the week */ ! 69: REG *nrdyreg; /* Day of the month */ ! 70: REG *nrhpreg; /* Current horizontal place */ ! 71: REG *nrlnreg; /* Output line number */ ! 72: REG *nrmoreg; /* Month */ ! 73: REG *nrnlreg; /* Position of last printed line */ ! 74: REG *nrpnreg; /* Current page number */ ! 75: REG *nrsbreg; /* Depth of string below base */ ! 76: REG *nrstreg; /* Height of string above base */ ! 77: REG *nryrreg; /* Year */ ! 78: REG *regt[RHTSIZE]; /* Register hash table */ ! 79: ! 80: /* Input stack global, declared in str.h. */ ! 81: STR *strp; /* Input stack */ ! 82: ! 83: /* end of extern.c */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.