fns.h 2.9 KB

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