1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22/* 23 * Copyright 1989 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 28/* All Rights Reserved */ 29 30 31#pragma ident "%Z%%M% %I% %E% SMI" 32 33/* 34 * University Copyright- Copyright (c) 1982, 1986, 1988 35 * The Regents of the University of California 36 * All Rights Reserved 37 * 38 * University Acknowledgment- Portions of this document are derived from 39 * software developed by the University of California, Berkeley, and its 40 * contributors. 41 */ 42 43#include "tdef.h" 44#ifdef NROFF 45#include "tw.h" 46#endif 47#include "ext.h" 48 49struct s *frame, *stk, *ejl; 50struct s *nxf; 51 52int pipeflg; 53int hflg; /* used in nroff only */ 54int eqflg; /* used in nroff only */ 55 56#ifndef NROFF 57int xpts; 58int ppts; 59int pfont; 60int mpts; 61int mfont; 62int cs; 63int ccs; 64int bd; 65#endif 66 67int stdi; 68int nofeed; 69int quiet; 70int stop; 71char ibuf[IBUFSZ]; 72char xbuf[IBUFSZ]; 73char *ibufp; 74char *xbufp; 75char *eibuf; 76char *xeibuf; 77tchar pbbuf[NC]; /* pushback buffer for arguments, \n, etc. */ 78tchar *pbp = pbbuf; /* next free slot in pbbuf */ 79tchar *lastpbp = pbbuf; /* pbp in previous stack frame */ 80int nx; 81int mflg; 82tchar ch = 0; 83int ibf; 84int ttyod; 85int iflg; 86char *enda; 87int rargc; 88char **argp; 89int trtab[NTRTAB]; 90int lgf; 91int copyf; 92filep ip; 93int nlflg; 94int donef; 95int nflush; 96int nfo; 97int ifile; 98int padc; 99int raw; 100int ifl[NSO]; 101int ifi; 102int flss; 103int nonumb; 104int trap; 105int tflg; 106int ejf; 107int gflag; 108int dilev; 109filep offset; 110int em; 111int ds; 112filep woff; 113int app; 114int ndone; 115int lead; 116int ralss; 117filep nextb; 118tchar nrbits; 119int nform; 120int oldmn; 121int newmn; 122int macerr; 123filep apptr; 124int diflg; 125filep roff; 126int wbfi; 127int evi; 128int vflag; 129int noscale; 130int po1; 131int nlist[NTRAP]; 132int mlist[NTRAP]; 133int evlist[EVLSZ]; 134int ev; 135int tty; 136int sfont = FT; /* appears to be "standard" font; used by .ul */ 137int sv; 138int esc; 139int widthp; 140int xfont; 141int setwdf; 142int over; 143int nhyp; 144tchar **hyp; 145tchar *olinep; 146int dotT; 147char *unlkp; 148int no_out; 149struct widcache widcache[NWIDCACHE]; 150struct d d[NDI]; 151struct d *dip; 152