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