fns.h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #pragma varargck argpos warning 2
  2. void warning(Mntdir*, char*, ...);
  3. #define fbufalloc() emalloc(BUFSIZE)
  4. #define fbuffree(x) free(x)
  5. void plumblook(Plumbmsg*m);
  6. void plumbshow(Plumbmsg*m);
  7. void putsnarf(void);
  8. void getsnarf(void);
  9. int tempfile(void);
  10. void scrlresize(void);
  11. Font* getfont(int, int, char*);
  12. char* getarg(Text*, int, int, Rune**, int*);
  13. char* getbytearg(Text*, int, int, char**);
  14. void new(Text*, Text*, Text*, int, int, Rune*, int);
  15. void undo(Text*, Text*, Text*, int, int, Rune*, int);
  16. void scrsleep(uint);
  17. void savemouse(Window*);
  18. void restoremouse(Window*);
  19. void clearmouse(void);
  20. void allwindows(void(*)(Window*, void*), void*);
  21. uint loadfile(int, uint, int*, int(*)(void*, uint, Rune*, int), void*);
  22. Window* errorwin(Mntdir*, int);
  23. Window* errorwinforwin(Window*);
  24. Runestr cleanrname(Runestr);
  25. void run(Window*, char*, Rune*, int, int, char*, char*, int);
  26. void fsysclose(void);
  27. void setcurtext(Text*, int);
  28. int isfilec(Rune);
  29. void rxinit(void);
  30. int rxnull(void);
  31. Runestr dirname(Text*, Rune*, int);
  32. void error(char*);
  33. void cvttorunes(char*, int, Rune*, int*, int*, int*);
  34. void* tmalloc(uint);
  35. void tfree(void);
  36. void killprocs(void);
  37. void killtasks(void);
  38. int runeeq(Rune*, uint, Rune*, uint);
  39. int ALEF_tid(void);
  40. void iconinit(void);
  41. Timer* timerstart(int);
  42. void timerstop(Timer*);
  43. void timercancel(Timer*);
  44. void timerinit(void);
  45. void cut(Text*, Text*, Text*, int, int, Rune*, int);
  46. void paste(Text*, Text*, Text*, int, int, Rune*, int);
  47. void get(Text*, Text*, Text*, int, int, Rune*, int);
  48. void put(Text*, Text*, Text*, int, int, Rune*, int);
  49. void putfile(File*, int, int, Rune*, int);
  50. void fontx(Text*, Text*, Text*, int, int, Rune*, int);
  51. int isalnum(Rune);
  52. void execute(Text*, uint, uint, int, Text*);
  53. int search(Text*, Rune*, uint);
  54. void look3(Text*, uint, uint, int);
  55. void editcmd(Text*, Rune*, uint);
  56. uint min(uint, uint);
  57. uint max(uint, uint);
  58. Window* lookfile(Rune*, int);
  59. Window* lookid(int, int);
  60. char* runetobyte(Rune*, int);
  61. Rune* bytetorune(char*, int*);
  62. void fsysinit(void);
  63. Mntdir* fsysmount(Rune*, int, Rune**, int);
  64. void fsysincid(Mntdir*);
  65. void fsysdelid(Mntdir*);
  66. Xfid* respond(Xfid*, Fcall*, char*);
  67. int rxcompile(Rune*);
  68. int rgetc(void*, uint);
  69. int tgetc(void*, uint);
  70. int isaddrc(int);
  71. int isregexc(int);
  72. void *emalloc(uint);
  73. void *erealloc(void*, uint);
  74. char *estrdup(char*);
  75. Range address(Mntdir*, Text*, Range, Range, void*, uint, uint, int (*)(void*, uint), int*, uint*);
  76. int rxexecute(Text*, Rune*, uint, uint, Rangeset*);
  77. int rxbexecute(Text*, uint, Rangeset*);
  78. Window* makenewwindow(Text *t);
  79. int expand(Text*, uint, uint, Expand*);
  80. Rune* skipbl(Rune*, int, int*);
  81. Rune* findbl(Rune*, int, int*);
  82. char* edittext(Window*, int, Rune*, int);
  83. void flushwarnings(void);
  84. #define runemalloc(a) (Rune*)emalloc((a)*sizeof(Rune))
  85. #define runerealloc(a, b) (Rune*)erealloc((a), (b)*sizeof(Rune))
  86. #define runemove(a, b, c) memmove((a), (b), (c)*sizeof(Rune))