]> git.lizzy.rs Git - plan9front.git/blob - sys/src/cmd/rio/fns.h
rio: second attempt...
[plan9front.git] / sys / src / cmd / rio / fns.h
1 int     whide(Window*);
2 int     wunhide(Window*);
3 void    freescrtemps(void);
4 int     parsewctl(char**, Rectangle, Rectangle*, int*, int*, int*, int*, char**, char*, char*);
5 int     writewctl(Xfid*, char*);
6 Window *new(Image*, int, int, int, char*, char*, char**);
7 void    riosetcursor(Cursor*);
8 int     min(int, int);
9 int     max(int, int);
10 Rune*   strrune(Rune*, Rune);
11 int     isalnum(Rune);
12 void    timerstop(Timer*);
13 void    timercancel(Timer*);
14 Timer*  timerstart(int);
15 void    error(char*);
16 void    killprocs(void);
17 int     shutdown(void*, char*);
18 void    iconinit(void);
19 void    *erealloc(void*, uint);
20 void *emalloc(uint);
21 char *estrdup(char*);
22 void    button3menu(void);
23 void    button2menu(Window*);
24 void    cvttorunes(char*, int, Rune*, int*, int*, int*);
25 /* was (byte*,int)      runetobyte(Rune*, int); */
26 char* runetobyte(Rune*, int, int*);
27 void    putsnarf(void);
28 void    getsnarf(void);
29 void    timerinit(void);
30 int     goodrect(Rectangle);
31 int     inborder(Rectangle, Point);
32
33 #define runemalloc(n)           malloc((n)*sizeof(Rune))
34 #define runerealloc(a, n)       realloc(a, (n)*sizeof(Rune))
35 #define runemove(a, b, n)       memmove(a, b, (n)*sizeof(Rune))