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 void scrsleep(uint); 20 void savemouse(Window*); 21 void restoremouse(Window*); 22 void clearmouse(void); 23 void allwindows(void(*)(Window*, void*), void*); 24 uint loadfile(int, uint, int*, int(*)(void*, uint, Rune*, int), void*); 25 26 Window* errorwin(Mntdir*, int); 27 Window* errorwinforwin(Window*); 28 Runestr cleanrname(Runestr); 29 void run(Window*, char*, Rune*, int, int, char*, char*, int); 30 void fsysclose(void); 31 void setcurtext(Text*, int); 32 int isfilec(Rune); 33 void rxinit(void); 34 int rxnull(void); 35 Runestr dirname(Text*, Rune*, int); 36 void error(char*); 37 void cvttorunes(char*, int, Rune*, int*, int*, int*); 38 void* tmalloc(uint); 39 void tfree(void); 40 void killprocs(void); 41 void killtasks(void); 42 int runeeq(Rune*, uint, Rune*, uint); 43 int ALEF_tid(void); 44 void iconinit(void); 45 Timer* timerstart(int); 46 void timerstop(Timer*); 47 void timercancel(Timer*); 48 void timerinit(void); 49 void cut(Text*, Text*, Text*, int, int, Rune*, int); 50 void paste(Text*, Text*, Text*, int, int, Rune*, int); 51 void get(Text*, Text*, Text*, int, int, Rune*, int); 52 void put(Text*, Text*, Text*, int, int, Rune*, int); 53 void putfile(File*, int, int, Rune*, int); 54 void fontx(Text*, Text*, Text*, int, int, Rune*, int); 55 int isalnum(Rune); 56 void execute(Text*, uint, uint, int, Text*); 57 int search(Text*, Rune*, uint); 58 void look3(Text*, uint, uint, int); 59 void editcmd(Text*, Rune*, uint); 60 uint min(uint, uint); 61 uint max(uint, uint); 62 Window* lookfile(Rune*, int); 63 Window* lookid(int, int); 64 char* runetobyte(Rune*, int); 65 Rune* bytetorune(char*, int*); 66 void fsysinit(void); 67 Mntdir* fsysmount(Rune*, int, Rune**, int); 68 void fsysincid(Mntdir*); 69 void fsysdelid(Mntdir*); 70 Xfid* respond(Xfid*, Fcall*, char*); 71 int rxcompile(Rune*); 72 int rgetc(void*, uint); 73 int tgetc(void*, uint); 74 int isaddrc(int); 75 int isregexc(int); 76 void *emalloc(uint); 77 void *erealloc(void*, uint); 78 char *estrdup(char*); 79 Range address(Mntdir*, Text*, Range, Range, void*, uint, uint, int (*)(void*, uint), int*, uint*); 80 int rxexecute(Text*, Rune*, uint, uint, Rangeset*); 81 int rxbexecute(Text*, uint, Rangeset*); 82 Window* makenewwindow(Text *t); 83 int expand(Text*, uint, uint, Expand*); 84 Rune* skipbl(Rune*, int, int*); 85 Rune* findbl(Rune*, int, int*); 86 char* edittext(Window*, int, Rune*, int); 87 void flushwarnings(void); 88 89 #define runemalloc(a) (Rune*)emalloc((a)*sizeof(Rune)) 90 #define runerealloc(a, b) (Rune*)erealloc((a), (b)*sizeof(Rune)) 91 #define runemove(a, b, c) memmove((a), (b), (c)*sizeof(Rune)) 92