9base

revived minimalist port of Plan 9 userland to Unix
git clone git://git.suckless.org/9base
Log | Files | Refs | README | LICENSE

ext.h (3542B)


      1 #define	devname	p9_devname
      2 
      3 extern	int	TROFF;
      4 
      5 extern	int	alphabet;
      6 extern	char	**argp;
      7 extern	char	*eibuf;
      8 extern	char	*ibufp;
      9 extern	char	*obufp;
     10 extern	char	*unlkp;
     11 extern	char	*xbufp;
     12 extern	char	*xeibuf;
     13 extern	char	cfname[NSO+1][NS];
     14 extern  int	trace;
     15 extern	char	devname[];
     16 extern	char	ibuf[IBUFSZ];
     17 extern	char	mfiles[NMF][NS];
     18 extern	char	nextf[];
     19 extern	char	obuf[];
     20 extern	char	termtab[];
     21 extern	char	fontdir[];
     22 extern	Font	fonts[MAXFONTS+1];
     23 extern	char	xbuf[IBUFSZ];
     24 extern	Offset	apptr;
     25 extern	Offset	ip;
     26 extern	Offset	nextb;
     27 extern	Offset	offset;
     28 extern	Offset	woff;
     29 extern	Numerr	numerr;
     30 extern	int	*pnp;
     31 extern	int	pstab[];
     32 extern	int	nsizes;
     33 extern	int	app;
     34 extern	int	ascii;
     35 extern	int	bd;
     36 extern	int	bdtab[];
     37 extern	int	ccs;
     38 extern	char	*chnames[];	/* chnames[n-ALPHABET] -> name of char n */
     39 extern	int	copyf;
     40 extern	int	cs;
     41 extern	int	dfact;
     42 extern	int	dfactd;
     43 extern	int	diflg;
     44 extern	int	dilev;
     45 extern	int	donef;
     46 extern	int	dotT;
     47 extern	int	dpn;
     48 extern	int	ds;
     49 extern	int	ejf;
     50 extern	int	em;
     51 extern	int	eqflg;
     52 extern	int	error;
     53 extern	int	esc;
     54 extern	int	eschar;
     55 extern	int	ev;
     56 extern	int	evi;
     57 extern	int	evlist[EVLSZ];
     58 extern	int	fc;
     59 extern	int	flss;
     60 extern	int	fontlab[];
     61 extern	int	hflg;
     62 extern	int	ibf;
     63 extern	int	ifi;
     64 extern	int	iflg;
     65 extern	int	init;
     66 extern	int	lead;
     67 extern	int	lg;
     68 extern	int	lgf;
     69 extern	int	macerr;
     70 extern	int	mflg;
     71 extern	int	mfont;
     72 extern	int	mlist[NTRAP];
     73 extern	int	mpts;
     74 extern	int	nchnames;
     75 extern	int	ndone;
     76 extern	int	newmn;
     77 extern	int	nflush;
     78 extern	int	nfo;
     79 extern	int	nfonts;
     80 extern	int	nform;
     81 extern	int	nhyp;
     82 extern	int	nlflg;
     83 extern	int	nlist[NTRAP];
     84 extern	int	nmfi;
     85 extern	int	nonumb;
     86 extern	int	noscale;
     87 extern	int	npn;
     88 extern	int	npnflg;
     89 extern	int	nx;
     90 extern	int	oldbits;
     91 extern	int	oldmn;
     92 extern	int	over;
     93 extern	int	padc;
     94 extern	int	pfont;
     95 extern	int	pfrom;
     96 extern	int	pipeflg;
     97 extern	int	pl;
     98 extern	int	pnlist[];
     99 extern	int	po1;
    100 extern	int	po;
    101 extern	int	ppts;
    102 #define	print	troffprint
    103 extern	int	print;
    104 extern	FILE	*ptid;
    105 extern	int	pto;
    106 extern	int	quiet;
    107 extern	int	ralss;
    108 extern	int	rargc;
    109 extern	int	raw;
    110 extern	int	res;
    111 extern	int	sbold;
    112 extern	int	setwdf;
    113 extern	int	sfont;
    114 extern	int	smnt;
    115 extern	int	stdi;
    116 extern	int	stop;
    117 extern	int	sv;
    118 extern	int	tabch,	ldrch;
    119 extern	int	tflg;
    120 extern	int	totout;
    121 extern	int	trap;
    122 extern	Ushort	trtab[];
    123 extern	int	tty;
    124 extern	int	ulfont;
    125 extern	int	vflag;
    126 extern	int	whichroff;
    127 extern	int	widthp;
    128 extern	int	xfont;
    129 extern	int	xpts;
    130 extern	Stack	*ejl;
    131 extern	Stack	*frame;
    132 extern	Stack	*stk;
    133 extern	Stack	*nxf;
    134 extern	Tchar	**hyp;
    135 extern	Tchar	*olinep;
    136 extern	Tchar	pbbuf[NC];
    137 extern	Tchar	*pbp;
    138 extern	Tchar	*lastpbp;
    139 extern	Tchar	ch;
    140 extern	Tchar	nrbits;
    141 extern	Tbuf	_oline;
    142 extern	Wcache	widcache[];
    143 extern	char	gchtab[];
    144 extern	Diver	d[NDI];
    145 extern	Diver	*dip;
    146 
    147 
    148 extern	char	xchname[];
    149 extern	short	xchtab[];
    150 extern	char	*codestr;
    151 extern	char	*chnamep;
    152 extern	short	*chtab;
    153 extern	int	nchtab;
    154 
    155 extern Numtab *numtabp;
    156 
    157 /* these characters are used as various signals or values
    158 /* in miscellaneous places.
    159 /* values are set in specnames in t10.c
    160 */
    161 
    162 extern int	c_hyphen;
    163 extern int	c_emdash;
    164 extern int	c_rule;
    165 extern int	c_minus;
    166 extern int	c_fi;
    167 extern int	c_fl;
    168 extern int	c_ff;
    169 extern int	c_ffi;
    170 extern int	c_ffl;
    171 extern int	c_acute;
    172 extern int	c_grave;
    173 extern int	c_under;
    174 extern int	c_rooten;
    175 extern int	c_boxrule;
    176 extern int	c_lefthand;
    177 extern int	c_dagger;
    178 extern int	c_isalnum;
    179 
    180 /*
    181  * String pointers for DWB pathname management.
    182  */
    183 
    184 extern char	*DWBfontdir;
    185 extern char	*DWBntermdir;
    186 extern char	*DWBalthyphens;
    187