From 61f5c35c9465f0702739b41249a664d409f0482c Mon Sep 17 00:00:00 2001 From: rsc Date: Sat, 15 May 2004 23:55:53 +0000 Subject: more files --- src/cmd/postscript/common/common.h | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/cmd/postscript/common/common.h (limited to 'src/cmd/postscript/common/common.h') diff --git a/src/cmd/postscript/common/common.h b/src/cmd/postscript/common/common.h new file mode 100644 index 00000000..62eba08e --- /dev/null +++ b/src/cmd/postscript/common/common.h @@ -0,0 +1,43 @@ +#define NONE 0 +#define WARNING 1 +#define FATAL 2 + +#define RUNEGETGROUP(a) ((a>>8)&0xff) +#define RUNEGETCHAR(a) (a&0xff) + +typedef int BOOLEAN; + +#define TRUE 1 +#define FALSE 0 + +#define NUMOFONTS 0x100 +#define FONTSIZE 0x100 + +extern char *programname; +extern char *inputfilename; +extern int inputlineno; + +extern int page_no; +extern int pages_printed; +extern int curpostfontid; +extern int hpos, vpos; + +extern Biobuf *Bstdout, *Bstderr; + +struct strtab { + int size; + char *str; + int used; +}; + +extern struct strtab charcode[]; +BOOLEAN pageon(void); +void startstring(void); +void endstring(void); +BOOLEAN isinstring(void); +void startpage(void); +void endpage(void); +int cat(char *); +int Bgetfield(Biobuf *, int, void *, int); +void *galloc(void *, int, char *); +void pagelist(char *); -- cgit v1.2.3