Blob


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