Blob


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