1 #ifndef XLIBINT_H_NOT_AVAILABLE
10 #include <X11/Xlibint.h>
16 static int dummy_handle_x_errors( dpy, event)
27 register Display *dpy;
34 register xAllocColorReq *req;
41 function = XSetErrorHandler( dummy_handle_x_errors );
46 for (i = 0; i < ndefs; i++)
48 GetReq(AllocColor, req);
51 req->red = defs[i].red;
52 req->green = defs[i].green;
53 req->blue = defs[i].blue;
59 statuses[
counter] = _XReply(dpy, (xReply *) &rep, 0, xTrue);
61 defs[
counter].pixel = rep.pixel;
63 defs[
counter].green = rep.green;
74 XSetErrorHandler( function );
76 return(return_status);
int XAllocColors(register Display *dpy, Colormap cmap, XColor *defs, int ndefs, int *statuses)