Annotation of researchv9/X11/src/X.V11R1/clients/uwm/XError.c, revision 1.1.1.1

1.1       root        1: #ifndef lint
                      2: static char *rcsid_XError_c = "$Header: XError.c,v 1.4 87/09/11 08:21:49 toddb Exp $";
                      3: #endif lint
                      4: 
                      5: #include <X11/copyright.h>
                      6: 
                      7: /*
                      8:  * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
                      9:  *
                     10:  *                         All Rights Reserved
                     11:  *
                     12:  * Permission to use, copy, modify, and distribute this software and its
                     13:  * documentation for any purpose and without fee is hereby granted,
                     14:  * provided that the above copyright notice appear in all copies and that
                     15:  * both that copyright notice and this permission notice appear in
                     16:  * supporting documentation, and that the name of Digital Equipment
                     17:  * Corporation not be used in advertising or publicity pertaining to
                     18:  * distribution of the software without specific, written prior permission.
                     19:  *
                     20:  *
                     21:  * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
                     22:  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
                     23:  * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
                     24:  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
                     25:  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
                     26:  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
                     27:  * SOFTWARE.
                     28:  */
                     29: 
                     30:  
                     31: 
                     32: /*
                     33:  * MODIFICATION HISTORY
                     34:  *
                     35:  * 000 -- M. Gancarz, DEC Ultrix Engineering Group
                     36:  */
                     37: 
                     38: #ifndef lint
                     39: static char *sccsid = "@(#)XError.c    3.8     1/24/86";
                     40: #endif
                     41: 
                     42: #include "uwm.h"
                     43: 
                     44: XError(dpy, rep)
                     45: Display *dpy;
                     46: XErrorEvent *rep;
                     47: {
                     48: #ifdef DEBUG
                     49:     char buffer[BUFSIZ];
                     50:     XGetErrorText(dpy, rep->error_code, buffer, BUFSIZ);
                     51:     fprintf(stderr, "uwm: X error occurred during a uwm operation.\n");
                     52:     fprintf(stderr, "     Description: '%s'\n", buffer);
                     53:     fprintf(stderr, "     Request code: %d\n", rep->request_code);
                     54:     fprintf(stderr, "     Request function: %d\n", rep->func);
                     55:     fprintf(stderr, "     Request window 0x%x\n", rep->window);
                     56:     fprintf(stderr, "     Error Serial #%d\n", rep->serial);
                     57:     fprintf(stderr, "     Current serial #%d\n", dpy->request);
                     58: #endif
                     59: }

unix.superglobalmegacorp.com

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