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