fns.h 7.2 KB

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