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 int 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*, DigestState*);
29 void movetodel(Window*);
31 Window* errorwin(Mntdir*, int);
32 Window* errorwinforwin(Window*);
33 Runestr cleanrname(Runestr);
34 void run(Window*, char*, Rune*, int, int, char*, char*, int);
35 void fsysclose(void);
36 void setcurtext(Text*, int);
37 int isfilec(Rune);
38 void rxinit(void);
39 int rxnull(void);
40 Runestr dirname(Text*, Rune*, int);
41 void error(char*);
42 void cvttorunes(char*, int, Rune*, int*, int*, int*);
43 void* tmalloc(uint);
44 void tfree(void);
45 void killprocs(void);
46 void killtasks(void);
47 int runeeq(Rune*, uint, Rune*, uint);
48 int ALEF_tid(void);
49 void iconinit(void);
50 Timer* timerstart(int);
51 void timerstop(Timer*);
52 void timercancel(Timer*);
53 void timerinit(void);
54 void cut(Text*, Text*, Text*, int, int, Rune*, int);
55 void paste(Text*, Text*, Text*, int, int, Rune*, int);
56 void get(Text*, Text*, Text*, int, int, Rune*, int);
57 void put(Text*, Text*, Text*, int, int, Rune*, int);
58 void putfile(File*, int, int, Rune*, int);
59 void fontx(Text*, Text*, Text*, int, int, Rune*, int);
60 #undef isalnum
61 #define isalnum acmeisalnum
62 int isalnum(Rune);
63 void execute(Text*, uint, uint, int, Text*);
64 int search(Text*, Rune*, uint);
65 void look3(Text*, uint, uint, int);
66 void editcmd(Text*, Rune*, uint);
67 uint min(uint, uint);
68 uint max(uint, uint);
69 Window* lookfile(Rune*, int);
70 Window* lookid(int, int);
71 char* runetobyte(Rune*, int);
72 Rune* bytetorune(char*, int*);
73 void fsysinit(void);
74 Mntdir* fsysmount(Rune*, int, Rune**, int);
75 void fsysdelid(Mntdir*);
76 void fsysincid(Mntdir*);
77 Xfid* respond(Xfid*, Fcall*, char*);
78 int rxcompile(Rune*);
79 int rgetc(void*, uint);
80 int tgetc(void*, uint);
81 int isaddrc(int);
82 int isregexc(int);
83 void *emalloc(uint);
84 void *erealloc(void*, uint);
85 char *estrdup(char*);
86 Range address(uint, Text*, Range, Range, void*, uint, uint, int (*)(void*, uint), int*, uint*);
87 int rxexecute(Text*, Rune*, uint, uint, Rangeset*);
88 int rxbexecute(Text*, uint, Rangeset*);
89 Window* makenewwindow(Text *t);
90 int expand(Text*, uint, uint, Expand*);
91 Rune* skipbl(Rune*, int, int*);
92 Rune* findbl(Rune*, int, int*);
93 char* edittext(Window*, int, Rune*, int);
94 void flushwarnings(void);
95 void startplumbing(void);
96 long nlcount(Text*, long, long, long*);
97 long nlcounttopos(Text*, long, long, long);
99 Runestr runestr(Rune*, uint);
100 Range range(int, int);
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))
106 int ismtpt(char*);