shithub: vexed

ref: 042c5ee134f92fdf7930eecff63d5edf4d25138c
dir: /a.h/

View raw version
typedef struct Buffer Buffer;

struct Buffer
{
	uchar *data;
	usize count;
	usize size;
};

int readfile(Buffer*, char*);
int writefile(Buffer*, char*);
int insert(Buffer*, int);
int append(Buffer*, int);

/* COLORS */
enum
{
	BACK,
	ADDR,
	HEX,
	ASCII,
	SCROLL,
	NCOLS,
};

Image* cols[NCOLS];
void initcols(int);