Blob


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