fns.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * This file is part of the UCB release of Plan 9. It is subject to the license
  3. * terms in the LICENSE file found in the top-level directory of this
  4. * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
  5. * part of the UCB release of Plan 9, including this file, may be copied,
  6. * modified, propagated, or distributed except according to the terms contained
  7. * in the LICENSE file.
  8. */
  9. void keyboardsend(char*, int);
  10. int whide(Window*);
  11. int wunhide(int);
  12. void freescrtemps(void);
  13. int parsewctl(char**, Rectangle, Rectangle*, int*, int*, int*, int*, char**, char*, char*);
  14. int writewctl(Xfid*, char*);
  15. Window *new(Image*, int, int, int, char*, char*, char**);
  16. void riosetcursor(Cursor*, int);
  17. int min(int, int);
  18. int max(int, int);
  19. Rune* strrune(Rune*, Rune);
  20. int isalnum(Rune);
  21. void timerstop(Timer*);
  22. void timercancel(Timer*);
  23. Timer* timerstart(int);
  24. void error(char*);
  25. void killprocs(void);
  26. int shutdown(void*, char*);
  27. void iconinit(void);
  28. void *erealloc(void*, uint);
  29. void *emalloc(uint);
  30. char *estrdup(char*);
  31. void button3menu(void);
  32. void button2menu(Window*);
  33. void cvttorunes(char*, int, Rune*, int*, int*, int*);
  34. /* was (byte*,int) runetobyte(Rune*, int); */
  35. char* runetobyte(Rune*, int, int*);
  36. void putsnarf(void);
  37. void getsnarf(void);
  38. void timerinit(void);
  39. int goodrect(Rectangle);
  40. #define runemalloc(n) malloc((n)*sizeof(Rune))
  41. #define runerealloc(a, n) realloc(a, (n)*sizeof(Rune))
  42. #define runemove(a, b, n) memmove(a, b, (n)*sizeof(Rune))