/*
	bits.h
*/

typedef unsigned long  int   dword;
typedef unsigned short int    word;
typedef unsigned char         byte;

#define Putg(bp,x,y,pg) ( GDS_put_block( \
	(bp)->b,x,y,(x)+(bp)->wx-1,(y)+(bp)->wy-1,pg,PSET) \
	)

typedef struct {
	signed short int wx,wy;
	word s;
	byte *b;
} BITS;

BITS *bitsini( int x, int y );
int bitschg( BITS *b, BITS *n, int x, int y );
int setbitg( BITS *b, int x, int y, byte c );
void clbitg( BITS *b );
