1: #include <X/mit-copyright.h>
   2: 
   3: /* $Header: XErrDescrip.c,v 10.4 86/02/01 15:32:52 tony Rel $ */
   4: /* Copyright    Massachusetts Institute of Technology    1985	*/
   5: 
   6: #include "XlibInternal.h"
   7: #define num_error_codes 13
   8: 
   9: char *XErrorList[num_error_codes + 1] = {
  10:     /* No error		*/ "",
  11:     /* BadRequest		*/   "bad request code",
  12:     /* BadValue		*/ "integer parameter out of range",
  13:     /* BadWindow		*/    "parameter not a Window",
  14:     /* BadPixmap		*/    "parameter not a Pixmap",
  15:     /* BadBitmap		*/    "parameter not a Bitmap",
  16:     /* BadCursor		*/    "parameter not a Cursor",
  17:     /* BadFont		*/  "parameter not a Font",
  18:     /* BadMatch		*/ "parameter mismatch",
  19:     /* BadTile		*/  "Pixmap shape invalid for tiling",
  20:     /* BadGrab		*/  "button/mouse already grabbed",
  21:     /* BadAccess		*/    "access control violation",
  22:     /* BadAlloc		*/ "insufficient resources",
  23:         /* BadColor 	    	*/    "no such color",
  24: };
  25: 
  26: char *XErrDescrip (code)
  27:     register int code;
  28: {
  29:     if (code <= num_error_codes && code > 0)
  30:     return (XErrorList[code]);
  31:     return("Unknown error");
  32: }

Defined functions

Defined variables

XErrorList defined in line 9; used 1 times
  • in line 30

Defined macros

num_error_codes defined in line 7; used 2 times
  • in line 9, 29
Last modified: 1986-02-01
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 785
Valid CSS Valid XHTML 1.0 Strict