mkdev: remove devutf/C*
[troff.git] / troff / fns.h
blobd82ed3239011f6833d36520c3a8df0e1878a0e78
1 /*
2 * other
3 */
4 int pclose(FILE*);
5 long filesize(int fd);
6 int open(char *, int);
7 int read(int, char *, int);
8 int lseek(int, long, int);
9 int close(int);
10 int getpid(void);
13 * c1.c
15 void init0(void);
16 void init2(void);
17 void cvtime(void);
18 void errprint(void);
19 int control(int a, int b);
20 void casept(void);
21 int getrq(void);
22 Tchar getch(void);
23 void setxon(void);
24 Tchar getch0(void);
25 Tchar get1ch(FILE *);
26 void pushback(Tchar *b);
27 void cpushback(char *b);
28 int nextfile(void);
29 int popf(void);
30 void flushi(void);
31 int getach(void);
32 void casenx(void);
33 int getname(void);
34 void caseso(void);
35 void caself(void);
36 void casecf(void);
37 #define getline ngetline
38 void getline(char *s, int n);
39 void casesy(void);
40 void getpn(char *a);
41 void setrpt(void);
42 int readutf8(int *dst, char *src);
45 * n2.c
47 int pchar(Tchar i);
48 void pchar1(Tchar i);
49 int pchar2(Tchar i);
50 int flusho(void);
51 void casedone(void);
52 void caseex(void);
53 void done(int x);
54 void done1(int x);
55 void done2(int x);
56 void done3(int x);
57 void edone(int x);
58 void casepi(void);
61 * c3.c
63 void blockinit(void);
64 char* grow(char *, int, int);
65 void mnspace(void);
66 void caseig(void);
67 void casern(void);
68 void maddhash(Contab *rp);
69 void munhash(Contab *mp);
70 void mrehash(void);
71 void caserm(void);
72 void caseas(void);
73 void caseds(void);
74 void caseam(void);
75 void casede(void);
76 int findmn(int i);
77 void clrmn(int i);
78 Offset finds(int mn);
79 int skip(void);
80 int copyb(void);
81 void copys(void);
82 Offset alloc(void);
83 void ffree(Offset i);
84 void wbf(Tchar i);
85 Tchar rbf(void);
86 Tchar popi(void);
87 Offset pushi(Offset newip, int mname);
88 void* setbrk(int x);
89 int getsn(void);
90 Offset setstr(void);
91 void collect(void);
92 void seta(void);
93 void caseda(void);
94 void casegd(void);
95 void casedi(void);
96 void casedt(void);
97 void casetl(void);
98 void casepc(void);
99 void casepm(void);
100 void stackdump(void);
103 * c4.c
105 void setn(void);
106 int wrc(Tchar i);
107 void setn1(int i, int form, Tchar bits);
108 void nnspace(void);
109 void nrehash(void);
110 void nunhash(Numtab *rp);
111 int findr(int i);
112 int usedr(int i);
113 int fnumb(int i, int (*f)(Tchar));
114 int decml(int i, int (*f)(Tchar));
115 int roman(int i, int (*f)(Tchar));
116 int roman0(int i, int (*f)(Tchar), char *onesp, char *fivesp);
117 int abc(int i, int (*f)(Tchar));
118 int abc0(int i, int (*f)(Tchar));
119 long atoi0(void);
120 long ckph(void);
121 long atoi1(Tchar ii);
122 void caserr(void);
123 void casenr(void);
124 void caseaf(void);
125 void setaf(void);
126 int vnumb(int *i);
127 int hnumb(int *i);
128 int inumb(int *n);
129 int quant(int n, int m);
132 * c5.c
134 void casead(void);
135 void casena(void);
136 void casefi(void);
137 void casenf(void);
138 void casers(void);
139 void casens(void);
140 int chget(int c);
141 void casecc(void);
142 void casec2(void);
143 void casehc(void);
144 void casetc(void);
145 void caselc(void);
146 void casehy(void);
147 int max(int aa, int bb);
148 void casenh(void);
149 void casece(void);
150 void casein(void);
151 void casell(void);
152 void caselt(void);
153 void caseti(void);
154 void casels(void);
155 void casepo(void);
156 void casepl(void);
157 void casewh(void);
158 void casech(void);
159 int findn(int i);
160 void casepn(void);
161 void casebp(void);
162 void casextm(void);
163 void casetm(void);
164 void casefm(void);
165 void casetm1(int ab, FILE *out);
166 void casesp(void);
167 void casesp1(int a);
168 void casert(void);
169 void caseem(void);
170 void casefl(void);
171 void caseev(void);
172 void envcopy(Env *e1, Env *e2);
173 void caseel(void);
174 void caseie(void);
175 void casexif(void);
176 void caseif(void);
177 void caseif1(int);
178 void eatblk(int inblk);
179 int cmpstr(Tchar c);
180 void caserd(void);
181 int rdtty(void);
182 void caseec(void);
183 void caseeo(void);
184 void caseta(void);
185 void casene(void);
186 void casetr(void);
187 void casecu(void);
188 void caseul(void);
189 void caseuf(void);
190 void caseit(void);
191 void casemc(void);
192 void casemk(void);
193 void casesv(void);
194 void caseos(void);
195 void casenm(void);
196 void getnm(int *p, int min);
197 void casenn(void);
198 void caseab(void);
199 void save_tty(void);
200 void restore_tty(void);
201 void set_tty(void);
202 void echo_off(void);
203 void echo_on(void);
206 * t6.c
208 int t_width(Tchar j);
209 void zapwcache(int s);
210 int onfont(int n, int f);
211 int getcw(int i);
212 void xbits(Tchar i, int bitf);
213 Tchar t_setch(int c);
214 Tchar t_setabs(void);
215 int t_findft(int i);
216 void caseps(void);
217 void casps1(int i);
218 int findps(int i);
219 void t_mchbits(void);
220 void t_setps(void);
221 Tchar t_setht(void);
222 Tchar t_setslant(void);
223 void caseft(void);
224 void t_setfont(int a);
225 void t_setwd(void);
226 Tchar t_vmot(void);
227 Tchar t_hmot(void);
228 Tchar t_mot(void);
229 Tchar t_sethl(int k);
230 Tchar t_makem(int i);
231 Tchar getlg(Tchar i);
232 void caselg(void);
233 void casefp(void);
234 char *strdupl(const char *);
235 int setfp(int pos, int f, char *truename, int print);
236 void casecs(void);
237 void casebd(void);
238 void casevs(void);
239 void casess(void);
240 Tchar t_xlss(void);
241 Uchar* unpair(int i);
242 void outascii(Tchar i);
245 * c7.c
247 void tbreak(void);
248 void donum(void);
249 void text(void);
250 void nofill(void);
251 void callsp(void);
252 void ckul(void);
253 void storeline(Tchar c, int w);
254 void newline(int a);
255 int findn1(int a);
256 void chkpn(void);
257 int findt(int a);
258 int findt1(void);
259 void eject(Stack *a);
260 int movword(void);
261 void horiz(int i);
262 void setnel(void);
263 int getword(int x);
264 void storeword(Tchar c, int w);
265 Tchar gettch(void);
268 * c8.c
270 void hyphen(Tchar *wp);
271 int punct(Tchar i);
272 int alph(int i);
273 void caseha(void);
274 void caseht(void);
275 void casehw(void);
276 int exword(void);
277 int suffix(void);
278 int maplow(int i);
279 int vowel(int i);
280 Tchar* chkvow(Tchar *w);
281 void digram(void);
282 int dilook(int a, int b, char t[26][13]);
285 * c9.c
287 Tchar setz(void);
288 void setline(void);
289 int eat(int c);
290 void setov(void);
291 void setbra(void);
292 void setvline(void);
293 void setdraw(void);
294 void casefc(void);
295 Tchar setfield(int x);
298 * t10.c
300 void t_ptinit(void);
301 void t_specnames(void);
302 void t_ptout(Tchar i);
303 int ptout0(Tchar *pi);
304 void ptchname(int);
305 void ptflush(void);
306 void ptps(void);
307 void ptfont(void);
308 void ptfpcmd(int f, char *s, char *fn);
309 void t_ptlead(void);
310 void ptesc(void);
311 void ptpage(int n);
312 void pttrailer(void);
313 void ptstop(void);
314 void t_ptpause(void);
317 * t11.c
319 int getdesc(char *name);
320 int getfont(char *name, int pos);
321 int chadd(char *s, int, int);
322 char* chname(int n);
323 int getlig(FILE *fin);
326 * n6.c
328 int n_width(Tchar j);
329 Tchar n_setch(int c);
330 Tchar n_setabs(void);
331 int n_findft(int i);
332 void n_mchbits(void);
333 void n_setps(void);
334 Tchar n_setht(void);
335 Tchar n_setslant(void);
336 void n_caseft(void);
337 void n_setfont(int a);
338 void n_setwd(void);
339 Tchar n_vmot(void);
340 Tchar n_hmot(void);
341 Tchar n_mot(void);
342 Tchar n_sethl(int k);
343 Tchar n_makem(int i);
344 void n_casefp(void);
345 void n_casebd(void);
346 void n_casevs(void);
347 Tchar n_xlss(void);
350 * n10.c
352 void n_ptinit(void);
353 char* skipstr(char *s);
354 char* getstr(char *s, char *t);
355 char* getint(char *s, int *pn);
356 void twdone(void);
357 void n_specnames(void);
358 int findch(char *s);
359 void n_ptout(Tchar i);
360 void ptout1(void);
361 char* plot(char *x);
362 void move(void);
363 void n_ptlead(void);
364 void n_ptpause(void);
367 * indirect calls on TROFF/!TROFF. these are variables!
369 extern Tchar (*hmot)(void);
370 extern Tchar (*makem)(int i);
371 extern Tchar (*setabs)(void);
372 extern Tchar (*setch)(int c);
373 extern Tchar (*sethl)(int k);
374 extern Tchar (*setht)(void);
375 extern Tchar (*setslant)(void);
376 extern Tchar (*vmot)(void);
377 extern Tchar (*xlss)(void);
378 extern int (*findft)(int i);
379 extern int (*width)(Tchar j);
380 extern void (*mchbits)(void);
381 extern void (*ptlead)(void);
382 extern void (*ptout)(Tchar i);
383 extern void (*ptpause)(void);
384 extern void (*setfont)(int a);
385 extern void (*setps)(void);
386 extern void (*setwd)(void);