blob: 7b26766885a6e992d471074af0f8075a267369ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#define NONE 0
#define WARNING 1
#define FATAL 2
#define RUNEGETGROUP(a) ((a>>8)&0xff)
#define RUNEGETCHAR(a) (a&0xff)
#define tempnam safe_tempnam
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 *);
int safe_tmpnam(char*);
|