|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: ┃ T X ┃
Length: 1421 (0x58d) Types: TextFile Names: »XCreateWinBat.c«
└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki └─ ⟦526ad3590⟧ »EUUGD11/gnu-31mar87/X.V10.R4.tar.Z« └─⟦2109abc41⟧ └─ ⟦this⟧ »./X.V10R4/Xlib/XCreateWinBat.c«
#include <X/mit-copyright.h> /* $Header: XCreateWinBat.c,v 10.5 86/04/22 15:26:22 jg Rel $ */ /* Copyright Massachusetts Institute of Technology 1985 */ #include "XlibInternal.h" int XCreateWindowBatch(defs, ndefs) BatchFrame defs[]; int ndefs; { register Display *dpy; register int i; register BatchFrame *frame = defs; int nresult = 0; /* * Issue requests. */ for (i=0; i < ndefs; i++) { register XReq *req; if (frame->type == IsOpaque) { GetReq(X_CreateWindow, frame->parent); req->params0 = frame->height; req->params1 = frame->width; req->params2 = frame->x; req->params3 = frame->y; req->param.l[2] = frame->border; req->param.l[3] = frame->background; req->func = (frame++)->bdrwidth; } else { GetReq(X_CreateTransparency, frame->parent); req->params0 = frame->height; req->params1 = frame->width; req->params2 = frame->x; req->params3 = (frame++)->y; } } /* * Reset request number to its old value, so that * error packets are processed correctly. */ dpy->request -= ndefs; /* * Retrieve replies. */ frame = defs; for (i=0;i<ndefs;i++) { XRep rep; /* * Increment request number so error packets * are processed correctly. */ dpy->request++; if (!_XReply(dpy, &rep)) (frame++)->self = NULL; else { (frame++)->self = rep.param.l[0]; nresult++; } } return (nresult); }