Lines Matching defs:rep
179 register xReply *rep;
237 STARTITERATE (rep,xReply, buf, (len > 0), len--) {
238 if (rep->generic.type == X_Error)
239 _XError(dpy, (xError *)rep);
241 _XEnq(dpy, (xEvent *) rep);
630 * dpy->last_request_read <= rep->sequenceNumber <= dpy->request
631 * The right choice for rep->sequenceNumber is the largest that
636 _XSetLastRequestRead(Display *dpy, xGenericReply *rep)
645 if ((rep->type & 0x7f) == KeymapNotify)
649 rep->sequenceNumber;
657 (unsigned int) rep->type);
671 * specified rep. Mean while we must handle error and event packets that
676 xReply *rep,
689 N_XRead(dpy, (char *)rep, (long)SIZEOF(xReply));
690 switch ((int)rep->generic.type) {
696 if (rep->generic.sequenceNumber == (cur_request & 0xffff))
699 (void) _XSetLastRequestRead(dpy, &rep->generic);
701 if (discard && (rep->generic.length > 0))
703 _EatData32 (dpy, rep->generic.length);
706 if ((unsigned) extra == rep->generic.length) {
711 N_XRead (dpy, (char *) (NEXTPTR(rep,xReply)),
715 if ((unsigned) extra < rep->generic.length) {
717 N_XRead (dpy, (char *) (NEXTPTR(rep,xReply)),
720 _EatData32 (dpy, rep->generic.length - extra);
724 *if we get here, then extra > rep->generic.length--meaning we
728 N_XRead (dpy, (char *) (NEXTPTR(rep,xReply)),
729 ((long) rep->generic.length) << 2);
738 xError *err = (xError *) rep;
741 serial = _XSetLastRequestRead(dpy, (xGenericReply *)rep);
1395 int _XError (Display *dpy, xError *rep)
1405 event.xerror.serial = _XSetLastRequestRead(dpy, (xGenericReply *)rep);
1406 event.xerror.resourceid = rep->resourceID;
1407 event.xerror.error_code = rep->errorCode;
1408 event.xerror.request_code = rep->majorCode;
1409 event.xerror.minor_code = rep->minorCode;
1411 !(*dpy->error_vec[rep->errorCode])(dpy, &event.xerror, rep))