xref: /plan9/sys/src/cmd/postscript/common/ext.h (revision 14f51593fd82e19ba95969a8c07ff71131015979)
1 /*
2  * External varibles - most are in glob.c.
3  */
4 
5 extern char	**argv;			/* global so everyone can use them */
6 extern int	argc;
7 
8 extern int	x_stat;			/* program exit status */
9 extern int	debug;			/* debug flag */
10 extern int	ignore;			/* what we do with FATAL errors */
11 
12 extern long	lineno;			/* line number */
13 extern long	position;		/* byte position */
14 extern char	*prog_name;		/* and program name - for errors */
15 extern char	*temp_file;		/* temporary file - for some programs */
16 extern char	*fontencoding;		/* text font encoding scheme */
17 
18 extern int	dobbox;			/* enable BoundingBox stuff if TRUE */
19 extern double	pageheight;		/* only for BoundingBox calculations! */
20 extern double	pagewidth;
21 
22 extern int	reading;		/* input */
23 extern int	writing;		/* and output encoding */
24 
25 extern char	*optarg;		/* for getopt() */
26 extern int	optind;
27 
28 extern int	cat(char *);
29 extern void	error(int, char *, ...);
30 extern int	in_olist(int);
31 extern void	interrupt(int);
32 extern int	out_list(char *);
33 extern int	setencoding(char *);
34 extern char	*tempnam(char*,char*);
35