shithub: pplay

ref: faa5d55642c8bbd26151561eef13b6525f786154
dir: /fns.h/

View raw version
void	freechain(Chunk*);
void	recalcsize(void);
void	paranoia(int);
void	setdot(Dot*, Chunk*);
Chunk*	replicate(Chunk*, Chunk*);
int	splitrange(usize, usize, Chunk**, Chunk**);
void	graphfrom(Chunk*);
Chunk*	inserton(usize, usize, Chunk*, Chunk**);
Chunk*	insertat(usize, Chunk*);
Chunk*	croprange(usize, usize, Chunk**);
Chunk*	cutrange(usize, usize, Chunk**);
Chunk*	readintochunks(int);
int	cmd(char*);
void	initcmd(void);
void	update(void);
void	setzoom(int, int);
int	zoominto(vlong, vlong);
void	setpan(int);
void	setloop(vlong);
void	setofs(usize);
void	setjump(usize);
void	redraw(int);
void	initdrw(void);
int	advance(Dot*, usize);
int	jump(usize);
Chunk*	p2c(usize, usize*);
usize	c2p(Chunk*);
void	setrange(usize, usize);
int	setpos(usize);
uchar*	getslice(Dot*, usize, usize*);
vlong	getbuf(Dot, usize, uchar*, usize);
int	loadin(int);
void*	emalloc(usize);
void*	erealloc(void*, usize, usize);
char*	estrdup(char*);
int	setpri(int);