17 Uspace, /* raw space */
21 Uformatted, /* start diverted output */
22 Uunformatted, /* end diverted output */
24 UPI = 720, /* units per inch */
25 UPX = 10, /* units per pixel */
27 /* special input modes */
38 void addesc(Rune, int (*)(void), int);
39 void addraw(Rune*, void(*)(Rune*));
40 void addreq(Rune*, void(*)(int, Rune**), int);
41 void af(Rune*, Rune*);
42 void as(Rune*, Rune*);
48 void ds(Rune*, Rune*);
53 void* erealloc(void*, uint);
54 Rune* erunesmprint(char*, ...);
55 Rune* erunestrdup(Rune*);
56 char* esmprint(char*, ...);
59 int evalscale(Rune*, int);
70 void html(Rune*, Rune*);
72 void ihtml(Rune*, Rune*);
73 void inputnotify(void(*)(void));
78 void _nr(Rune*, Rune*);
86 int pushinputfile(Rune*);
87 void pushinputstring(Rune*);
89 int queueinputfile(Rune*);
91 void r_nop(int, Rune**);
92 void r_warn(int, Rune**);
95 void renraw(Rune*, Rune*);
96 void renreq(Rune*, Rune*);
99 int runmacro(int, int, Rune**);
100 void runmacro1(Rune*);
101 Rune* rune2html(Rune);
102 void setlinenumber(Rune*, int);
103 void showihtml(void);
125 Rune troff2rune(Rune*);
127 void ungetnext(Rune);
128 void ungetrune(Rune);
130 void warn(char*, ...);
132 extern int backslash;
137 extern int inputmode;
138 extern int inrequest;
144 #define runemalloc(n) (Rune*)emalloc((n)*sizeof(Rune))
145 #define runerealloc(r, n) (Rune*)erealloc(r, (n)*sizeof(Rune))
146 #define runemove(a, b, n) memmove(a, b, (n)*sizeof(Rune))
148 #pragma varargck type "L" void