#define	ERROR_NOMEMORY		(-1)
#define	ERROR_CANNOTOPEN	(-2)
#define	ERROR_INVALIDFORMAT	(-3)
#define	ERROR_DISKFULL		(-4)
#define	ERROR_INVALIDPIXELSIZE	(-5)
#define	ERROR_OTHER			(-100)

#define	WHITE	15
#define	BLACK	8
#define	WINBACK	6
#define	RED		10
#define	GRAY	7

#define	XOR		4		/* 描画モード */

#define	COLORMODE	0

#define	MORPH_PIXELSIZE		16

#ifndef	MODULE_MAIN
	extern	char	*guiEgbPtr ;			/*	EGB のワークアドレス	*/
#endif

#define	_iskanji(c)	(((c)&0xff) >= 0x81 && ((c)&0xff)<=0x9f || \
					 ((c)&0xff) >= 0xe0 && ((c)&0xff)<=0xfc)

#define	_iskanji1(kcode)	((((kcode)>>8)&0xff) <= 0x97)
