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