1 void setenv(byte*, byte*); 2 Font* getfont(int, int, byte*); 3 (byte*, Rune*, int) getarg(Text*, int, int); 4 (byte*, byte*) getbytearg(Text*, int, int); 5 void new(Text*, Text*, Text*, int, int, Rune*, int); 6 void scrsleep(uint); 7 void savemouse(Window*); 8 void restoremouse(Window*); 9 void clearmouse(); 10 (Rune*, int) cleanname(Rune*, int); 11 void run(Window*, byte*, Rune*, int, int, byte*, byte*); 12 void fsysclose(); 13 void setcurtext(Text*, int); 14 int isfilec(Rune); 15 void rxinit(); 16 (Rune*, int) dirname(Text*, Rune*, int); 17 void error(byte*); 18 void warning(Mntdir*, byte*, ...); 19 void cvttorunes(byte*, int, Rune*, int*, int*, int*); 20 void* tmalloc(uint); 21 void tfree(); 22 void killprocs(); 23 void killtasks(); 24 int runeeq(Rune*, uint, Rune*, uint); 25 int ALEF_tid(); 26 Rune* strrune(Rune*, Rune); 27 void iconinit(); 28 Timer* timerstart(int); 29 void timerstop(Timer*); 30 void timerinit(); 31 int runestrlen(Rune*); 32 void cut(Text*, Text*, Text*, int, int, Rune*, int); 33 void paste(Text*, Text*, Text*, int, int, Rune*, int); 34 void get(Text*, Text*, Text*, int, int, Rune*, int); 35 void put(Text*, Text*, Text*, int, int, Rune*, int); 36 void fontx(Text*, Text*, Text*, int, int, Rune*, int); 37 void timerwaittask(Timer*); 38 int isalnum(Rune); 39 void execute(Text*, uint, uint, int, Text*); 40 int search(Text*, Rune*, uint); 41 void look3(Text*, uint, uint, int); 42 uint min(uint, uint); 43 uint max(uint, uint); 44 Window* lookfile(Rune*, int); 45 Window* lookid(int, int); 46 byte* runetobyte(Rune*, int); 47 (Rune*,int) bytetorune(byte*); 48 void fsysinit(); 49 Mntdir* fsysmount(Rune*, int, Rune**, int); 50 void fsysdelid(Mntdir*); 51 Xfid* respond(Xfid*, Fcall*, byte*); 52 void* fbufalloc(); 53 void fbuffree(void*); 54 int rxcompile(Rune*); 55 int rgetc(Rune*, uint); 56 int tgetc(Text*, uint); 57 int isaddrc(int); 58 (Rune*, int) findbl(Rune*, int); 59 (Rune*, int) skipbl(Rune*, int); 60 (int, Rangeset) rxexecute(Text*, uint, uint); 61 (int, Rangeset) rxbexecute(Text*, uint); 62 (int, int, Range) address(Text*, Range, Range, void*, uint, uint, int (*)(void*, uint), int); 63 Window* newwindow(Text *t); 64 int expand(Text*, uint, uint, Expand*); 65 66 #define runemalloc(a) (Rune*)malloc((a)*sizeof(Rune)) 67 #define runerealloc(a, b) (Rune*)realloc((a), (b)*sizeof(Rune)) 68 #define runemove(a, b, c) memmove((a), (b), (c)*sizeof(Rune)) 69