shithub: widget

ref: b9f2b8c6a28c2d4744119c7254767a0f1b51ed2e
dir: /libwidget/w-internal.h/

View raw version
static void*
emalloc(ulong sz)
{
	void *p;

	p = malloc(sz);
	if(p == nil)
		werror("malloc: %r");
	setmalloctag(p, getcallerpc(&sz));
	return p;
}

/* Widgetctl->flags */
enum
{
	OURKBD		= 1<<0,
	OURMOUSE	= 1<<1
};