1: #include <X/mit-copyright.h>
   2: 
   3: /* Copyright    Massachusetts Institute of Technology    1985	*/
   4: 
   5: /*
   6:  * 	XError - non-fatal error reporting routine.  Called when an
   7:  * 	X_Error packet is encountered in the input stream.
   8:  *
   9:  *	File:		XError.c
  10:  */
  11: 
  12: #ifndef lint
  13: static char *rcsid_XError_c = "$Header: XError.c,v 10.3 86/02/01 16:10:25 tony Rel $";
  14: #endif
  15: 
  16: #include "xwm.h"
  17: 
  18: XError(dpy, rep)
  19:     Display *dpy;
  20:     XErrorEvent *rep;
  21: {
  22:     if (!Debug) return;
  23:     fprintf(stderr, "\n");
  24:     fprintf(stderr, "xwm: X error occured during an xwm operation.\n");
  25:     fprintf(stderr, "     Description: '%s'\n", XErrDescrip(rep->error_code));
  26:     fprintf(stderr, "     Request code: %d\n", rep->request_code);
  27:     fprintf(stderr, "     Request function: %d\n", rep->func);
  28:     fprintf(stderr, "     Request window 0x%x\n", rep->window);
  29:     fprintf(stderr, "     Error Serial #%d\n", rep->serial);
  30:     fprintf(stderr, "     Current serial #%d\n", dpy->request);
  31:     fprintf(stderr, "\n");
  32: }

Defined functions

XError defined in line 18; used 1 times

Defined variables

rcsid_XError_c defined in line 13; never used
Last modified: 1986-02-01
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 817
Valid CSS Valid XHTML 1.0 Strict