File:  [CSRG BSD Unix] / 43BSDTahoe / new / X / Xlib / XErrDescrip.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:58 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43tahoe
BSD 4.3tahoe

#include <X/mit-copyright.h>

/* $Header: /var/lib/cvsd/repos/CSRG/43BSDTahoe/new/X/Xlib/XErrDescrip.c,v 1.1.1.1 2018/04/24 16:12:58 root Exp $ */
/* Copyright    Massachusetts Institute of Technology    1985	*/

#include "XlibInternal.h"
#define num_error_codes 13

char *XErrorList[num_error_codes + 1] = {
	/* No error		*/	"",
	/* BadRequest		*/	"bad request code",
	/* BadValue		*/	"integer parameter out of range",
	/* BadWindow		*/	"parameter not a Window",
	/* BadPixmap		*/	"parameter not a Pixmap",
	/* BadBitmap		*/	"parameter not a Bitmap",
	/* BadCursor		*/	"parameter not a Cursor",
	/* BadFont		*/	"parameter not a Font",
	/* BadMatch		*/	"parameter mismatch",
	/* BadTile		*/	"Pixmap shape invalid for tiling",
	/* BadGrab		*/	"button/mouse already grabbed",
	/* BadAccess		*/	"access control violation",
	/* BadAlloc		*/	"insufficient resources",
    	/* BadColor 	    	*/  	"no such color",
};

char *XErrDescrip (code)
    register int code;
{
    if (code <= num_error_codes && code > 0)
	return (XErrorList[code]);
    return("Unknown error");
}


unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.