-
Notifications
You must be signed in to change notification settings - Fork 0
/
fns.h
43 lines (42 loc) · 991 Bytes
/
fns.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
void dprint(Chunk*, char*, ...);
void freechain(Chunk*);
void killreader(void);
int unpop(char*);
int popop(char*);
int cpaste(Dot*);
Chunk* ccopy(Dot*);
void chold(Chunk*, Dot*);
void ccut(Dot*);
void ccrop(Dot*);
Chunk* loadfile(int, Dot*);
int cmd(char*);
void appendfile(char*);
void refresh(int);
void setcenter(int);
void setzoom(int, int);
int zoominto(vlong, vlong);
void setrange(usize, usize);
int setloop(vlong);
int setpan(int);
void setpage(int);
int setjump(vlong);
vlong ss2view(int);
vlong view2ss(int);
void redraw(int);
void initdrw(int);
void advance(usize);
Chunk* p2c(usize, usize*, Dot*);
int setpos(usize);
uchar* getslice(Dot*, usize, usize*);
vlong getbuf(Dot, usize, uchar*, usize);
int χfmt(Fmt*);
int Δfmt(Fmt*);
int τfmt(Fmt*);
void* emalloc(usize);
void* erealloc(void*, usize, usize);
char* estrdup(char*);
int setpri(int);
#pragma varargck argpos dprint 2
#pragma varargck type "χ" Chunk*
#pragma varargck type "Δ" Dot*
#pragma varargck type "τ" ssize