fns.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. char* getname(Text*, Text*, Rune*, int, int);
  17. void scrsleep(uint);
  18. void savemouse(Window*);
  19. int restoremouse(Window*);
  20. void clearmouse(void);
  21. void allwindows(void(*)(Window*, void*), void*);
  22. uint loadfile(int, uint, int*, int(*)(void*, uint, Rune*, int), void*);
  23. void movetodel(Window*);
  24. Window* errorwin(Mntdir*, int);
  25. Window* errorwinforwin(Window*);
  26. Runestr cleanrname(Runestr);
  27. void run(Window*, char*, Rune*, int, int, char*, char*, int);
  28. void fsysclose(void);
  29. void setcurtext(Text*, int);
  30. int isfilec(Rune);
  31. void rxinit(void);
  32. int rxnull(void);
  33. Runestr dirname(Text*, Rune*, int);
  34. void error(char*);
  35. void cvttorunes(char*, int, Rune*, int*, int*, int*);
  36. void* tmalloc(uint);
  37. void tfree(void);
  38. void killprocs(void);
  39. void killtasks(void);
  40. int runeeq(Rune*, uint, Rune*, uint);
  41. int ALEF_tid(void);
  42. void iconinit(void);
  43. Timer* timerstart(int);
  44. void timerstop(Timer*);
  45. void timercancel(Timer*);
  46. void timerinit(void);
  47. void cut(Text*, Text*, Text*, int, int, Rune*, int);
  48. void paste(Text*, Text*, Text*, int, int, Rune*, int);
  49. void get(Text*, Text*, Text*, int, int, Rune*, int);
  50. void put(Text*, Text*, Text*, int, int, Rune*, int);
  51. void putfile(File*, int, int, Rune*, int);
  52. void fontx(Text*, Text*, Text*, int, int, Rune*, int);
  53. int isalnum(Rune);
  54. void execute(Text*, uint, uint, int, Text*);
  55. int search(Text*, Rune*, uint);
  56. void look3(Text*, uint, uint, int);
  57. void editcmd(Text*, Rune*, uint);
  58. uint min(uint, uint);
  59. uint max(uint, uint);
  60. Window* lookfile(Rune*, int);
  61. Window* lookid(int, int);
  62. char* runetobyte(Rune*, int);
  63. Rune* bytetorune(char*, int*);
  64. void fsysinit(void);
  65. Mntdir* fsysmount(Rune*, int, Rune**, int);
  66. void fsysincid(Mntdir*);
  67. void fsysdelid(Mntdir*);
  68. Xfid* respond(Xfid*, Fcall*, char*);
  69. int rxcompile(Rune*);
  70. int rgetc(void*, uint);
  71. int tgetc(void*, uint);
  72. int isaddrc(int);
  73. int isregexc(int);
  74. void *emalloc(uint);
  75. void *erealloc(void*, uint);
  76. char *estrdup(char*);
  77. Range address(Mntdir*, Text*, Range, Range, void*, uint, uint, int (*)(void*, uint), int*, uint*);
  78. int rxexecute(Text*, Rune*, uint, uint, Rangeset*);
  79. int rxbexecute(Text*, uint, Rangeset*);
  80. Window* makenewwindow(Text *t);
  81. int expand(Text*, uint, uint, Expand*);
  82. Rune* skipbl(Rune*, int, int*);
  83. Rune* findbl(Rune*, int, int*);
  84. char* edittext(Window*, int, Rune*, int);
  85. void flushwarnings(void);
  86. #define runemalloc(a) (Rune*)emalloc((a)*sizeof(Rune))
  87. #define runerealloc(a, b) (Rune*)erealloc((a), (b)*sizeof(Rune))
  88. #define runemove(a, b, c) memmove((a), (b), (c)*sizeof(Rune))