shithub: vexed

ref: 52c0e4fdfba63b17eb6df7491a4b1d9d8d03ce19
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);