Indentation: Change '& stuff' to '&stuff'
If the typedef wasn't perfect, indent would get confused and change: foo = (SomePointlessTypedef *) &stuff[1]; to: foo = (SomePointlessTypedef *) & stuff[1]; Fix this up with a really naïve sed script, plus some hand-editing to change some false positives in XKB back. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
58b1f739d7
commit
ab3a815a75
|
@ -1349,7 +1349,7 @@ PanoramiXPolyPoint(ClientPtr client)
|
||||||
int y_off = screenInfo.screens[j]->y;
|
int y_off = screenInfo.screens[j]->y;
|
||||||
|
|
||||||
if (x_off || y_off) {
|
if (x_off || y_off) {
|
||||||
xPoint *pnts = (xPoint *) & stuff[1];
|
xPoint *pnts = (xPoint *) &stuff[1];
|
||||||
int i =
|
int i =
|
||||||
(stuff->coordMode == CoordModePrevious) ? 1 : npoint;
|
(stuff->coordMode == CoordModePrevious) ? 1 : npoint;
|
||||||
|
|
||||||
|
@ -1414,7 +1414,7 @@ PanoramiXPolyLine(ClientPtr client)
|
||||||
int y_off = screenInfo.screens[j]->y;
|
int y_off = screenInfo.screens[j]->y;
|
||||||
|
|
||||||
if (x_off || y_off) {
|
if (x_off || y_off) {
|
||||||
xPoint *pnts = (xPoint *) & stuff[1];
|
xPoint *pnts = (xPoint *) &stuff[1];
|
||||||
int i =
|
int i =
|
||||||
(stuff->coordMode == CoordModePrevious) ? 1 : npoint;
|
(stuff->coordMode == CoordModePrevious) ? 1 : npoint;
|
||||||
|
|
||||||
|
@ -1483,7 +1483,7 @@ PanoramiXPolySegment(ClientPtr client)
|
||||||
int y_off = screenInfo.screens[j]->y;
|
int y_off = screenInfo.screens[j]->y;
|
||||||
|
|
||||||
if (x_off || y_off) {
|
if (x_off || y_off) {
|
||||||
xSegment *segs = (xSegment *) & stuff[1];
|
xSegment *segs = (xSegment *) &stuff[1];
|
||||||
|
|
||||||
for (i = nsegs; i--; segs++) {
|
for (i = nsegs; i--; segs++) {
|
||||||
segs->x1 -= x_off;
|
segs->x1 -= x_off;
|
||||||
|
@ -1618,7 +1618,7 @@ PanoramiXPolyArc(ClientPtr client)
|
||||||
int y_off = screenInfo.screens[j]->y;
|
int y_off = screenInfo.screens[j]->y;
|
||||||
|
|
||||||
if (x_off || y_off) {
|
if (x_off || y_off) {
|
||||||
xArc *arcs = (xArc *) & stuff[1];
|
xArc *arcs = (xArc *) &stuff[1];
|
||||||
|
|
||||||
for (i = narcs; i--; arcs++) {
|
for (i = narcs; i--; arcs++) {
|
||||||
arcs->x -= x_off;
|
arcs->x -= x_off;
|
||||||
|
@ -1681,7 +1681,7 @@ PanoramiXFillPoly(ClientPtr client)
|
||||||
int y_off = screenInfo.screens[j]->y;
|
int y_off = screenInfo.screens[j]->y;
|
||||||
|
|
||||||
if (x_off || y_off) {
|
if (x_off || y_off) {
|
||||||
DDXPointPtr pnts = (DDXPointPtr) & stuff[1];
|
DDXPointPtr pnts = (DDXPointPtr) &stuff[1];
|
||||||
int i = (stuff->coordMode == CoordModePrevious) ? 1 : count;
|
int i = (stuff->coordMode == CoordModePrevious) ? 1 : count;
|
||||||
|
|
||||||
while (i--) {
|
while (i--) {
|
||||||
|
@ -1816,7 +1816,7 @@ PanoramiXPolyFillArc(ClientPtr client)
|
||||||
int y_off = screenInfo.screens[j]->y;
|
int y_off = screenInfo.screens[j]->y;
|
||||||
|
|
||||||
if (x_off || y_off) {
|
if (x_off || y_off) {
|
||||||
xArc *arcs = (xArc *) & stuff[1];
|
xArc *arcs = (xArc *) &stuff[1];
|
||||||
|
|
||||||
for (i = narcs; i--; arcs++) {
|
for (i = narcs; i--; arcs++) {
|
||||||
arcs->x -= x_off;
|
arcs->x -= x_off;
|
||||||
|
|
|
@ -1557,7 +1557,7 @@ ProcSyncAwait(ClientPtr client)
|
||||||
|
|
||||||
/* don't need to do any more memory allocation for this request! */
|
/* don't need to do any more memory allocation for this request! */
|
||||||
|
|
||||||
pProtocolWaitConds = (xSyncWaitCondition *) & stuff[1];
|
pProtocolWaitConds = (xSyncWaitCondition *) &stuff[1];
|
||||||
|
|
||||||
pAwait = &(pAwaitUnion + 1)->await; /* skip over header */
|
pAwait = &(pAwaitUnion + 1)->await; /* skip over header */
|
||||||
for (i = 0; i < items; i++, pProtocolWaitConds++, pAwait++) {
|
for (i = 0; i < items; i++, pProtocolWaitConds++, pAwait++) {
|
||||||
|
|
|
@ -80,7 +80,7 @@ SProcXChangeDeviceControl(ClientPtr client)
|
||||||
swaps(&stuff->length);
|
swaps(&stuff->length);
|
||||||
REQUEST_AT_LEAST_SIZE(xChangeDeviceControlReq);
|
REQUEST_AT_LEAST_SIZE(xChangeDeviceControlReq);
|
||||||
swaps(&stuff->control);
|
swaps(&stuff->control);
|
||||||
ctl = (xDeviceCtl *) & stuff[1];
|
ctl = (xDeviceCtl *) &stuff[1];
|
||||||
swaps(&ctl->control);
|
swaps(&ctl->control);
|
||||||
swaps(&ctl->length);
|
swaps(&ctl->length);
|
||||||
switch (stuff->control) {
|
switch (stuff->control) {
|
||||||
|
@ -130,7 +130,7 @@ ProcXChangeDeviceControl(ClientPtr client)
|
||||||
|
|
||||||
switch (stuff->control) {
|
switch (stuff->control) {
|
||||||
case DEVICE_RESOLUTION:
|
case DEVICE_RESOLUTION:
|
||||||
r = (xDeviceResolutionCtl *) & stuff[1];
|
r = (xDeviceResolutionCtl *) &stuff[1];
|
||||||
if ((len < bytes_to_int32(sizeof(xDeviceResolutionCtl))) ||
|
if ((len < bytes_to_int32(sizeof(xDeviceResolutionCtl))) ||
|
||||||
(len !=
|
(len !=
|
||||||
bytes_to_int32(sizeof(xDeviceResolutionCtl)) + r->num_valuators)) {
|
bytes_to_int32(sizeof(xDeviceResolutionCtl)) + r->num_valuators)) {
|
||||||
|
@ -183,7 +183,7 @@ ProcXChangeDeviceControl(ClientPtr client)
|
||||||
ret = BadMatch;
|
ret = BadMatch;
|
||||||
break;
|
break;
|
||||||
case DEVICE_ENABLE:
|
case DEVICE_ENABLE:
|
||||||
e = (xDeviceEnableCtl *) & stuff[1];
|
e = (xDeviceEnableCtl *) &stuff[1];
|
||||||
|
|
||||||
status = ChangeDeviceControl(client, dev, (xDeviceCtl *) e);
|
status = ChangeDeviceControl(client, dev, (xDeviceCtl *) e);
|
||||||
|
|
||||||
|
|
24
Xi/chgfctl.c
24
Xi/chgfctl.c
|
@ -449,22 +449,22 @@ ProcXChangeFeedbackControl(ClientPtr client)
|
||||||
return BadLength;
|
return BadLength;
|
||||||
|
|
||||||
for (k = dev->kbdfeed; k; k = k->next)
|
for (k = dev->kbdfeed; k; k = k->next)
|
||||||
if (k->ctrl.id == ((xKbdFeedbackCtl *) & stuff[1])->id)
|
if (k->ctrl.id == ((xKbdFeedbackCtl *) &stuff[1])->id)
|
||||||
return ChangeKbdFeedback(client, dev, stuff->mask, k,
|
return ChangeKbdFeedback(client, dev, stuff->mask, k,
|
||||||
(xKbdFeedbackCtl *) & stuff[1]);
|
(xKbdFeedbackCtl *) &stuff[1]);
|
||||||
break;
|
break;
|
||||||
case PtrFeedbackClass:
|
case PtrFeedbackClass:
|
||||||
if (len != bytes_to_int32(sizeof(xPtrFeedbackCtl)))
|
if (len != bytes_to_int32(sizeof(xPtrFeedbackCtl)))
|
||||||
return BadLength;
|
return BadLength;
|
||||||
|
|
||||||
for (p = dev->ptrfeed; p; p = p->next)
|
for (p = dev->ptrfeed; p; p = p->next)
|
||||||
if (p->ctrl.id == ((xPtrFeedbackCtl *) & stuff[1])->id)
|
if (p->ctrl.id == ((xPtrFeedbackCtl *) &stuff[1])->id)
|
||||||
return ChangePtrFeedback(client, dev, stuff->mask, p,
|
return ChangePtrFeedback(client, dev, stuff->mask, p,
|
||||||
(xPtrFeedbackCtl *) & stuff[1]);
|
(xPtrFeedbackCtl *) &stuff[1]);
|
||||||
break;
|
break;
|
||||||
case StringFeedbackClass:
|
case StringFeedbackClass:
|
||||||
{
|
{
|
||||||
xStringFeedbackCtl *f = ((xStringFeedbackCtl *) & stuff[1]);
|
xStringFeedbackCtl *f = ((xStringFeedbackCtl *) &stuff[1]);
|
||||||
|
|
||||||
if (client->swapped) {
|
if (client->swapped) {
|
||||||
swaps(&f->num_keysyms);
|
swaps(&f->num_keysyms);
|
||||||
|
@ -474,9 +474,9 @@ ProcXChangeFeedbackControl(ClientPtr client)
|
||||||
return BadLength;
|
return BadLength;
|
||||||
|
|
||||||
for (s = dev->stringfeed; s; s = s->next)
|
for (s = dev->stringfeed; s; s = s->next)
|
||||||
if (s->ctrl.id == ((xStringFeedbackCtl *) & stuff[1])->id)
|
if (s->ctrl.id == ((xStringFeedbackCtl *) &stuff[1])->id)
|
||||||
return ChangeStringFeedback(client, dev, stuff->mask, s,
|
return ChangeStringFeedback(client, dev, stuff->mask, s,
|
||||||
(xStringFeedbackCtl *) & stuff[1]);
|
(xStringFeedbackCtl *) &stuff[1]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case IntegerFeedbackClass:
|
case IntegerFeedbackClass:
|
||||||
|
@ -484,7 +484,7 @@ ProcXChangeFeedbackControl(ClientPtr client)
|
||||||
return BadLength;
|
return BadLength;
|
||||||
|
|
||||||
for (i = dev->intfeed; i; i = i->next)
|
for (i = dev->intfeed; i; i = i->next)
|
||||||
if (i->ctrl.id == ((xIntegerFeedbackCtl *) & stuff[1])->id)
|
if (i->ctrl.id == ((xIntegerFeedbackCtl *) &stuff[1])->id)
|
||||||
return ChangeIntegerFeedback(client, dev, stuff->mask, i,
|
return ChangeIntegerFeedback(client, dev, stuff->mask, i,
|
||||||
(xIntegerFeedbackCtl *) &
|
(xIntegerFeedbackCtl *) &
|
||||||
stuff[1]);
|
stuff[1]);
|
||||||
|
@ -494,18 +494,18 @@ ProcXChangeFeedbackControl(ClientPtr client)
|
||||||
return BadLength;
|
return BadLength;
|
||||||
|
|
||||||
for (l = dev->leds; l; l = l->next)
|
for (l = dev->leds; l; l = l->next)
|
||||||
if (l->ctrl.id == ((xLedFeedbackCtl *) & stuff[1])->id)
|
if (l->ctrl.id == ((xLedFeedbackCtl *) &stuff[1])->id)
|
||||||
return ChangeLedFeedback(client, dev, stuff->mask, l,
|
return ChangeLedFeedback(client, dev, stuff->mask, l,
|
||||||
(xLedFeedbackCtl *) & stuff[1]);
|
(xLedFeedbackCtl *) &stuff[1]);
|
||||||
break;
|
break;
|
||||||
case BellFeedbackClass:
|
case BellFeedbackClass:
|
||||||
if (len != bytes_to_int32(sizeof(xBellFeedbackCtl)))
|
if (len != bytes_to_int32(sizeof(xBellFeedbackCtl)))
|
||||||
return BadLength;
|
return BadLength;
|
||||||
|
|
||||||
for (b = dev->bell; b; b = b->next)
|
for (b = dev->bell; b; b = b->next)
|
||||||
if (b->ctrl.id == ((xBellFeedbackCtl *) & stuff[1])->id)
|
if (b->ctrl.id == ((xBellFeedbackCtl *) &stuff[1])->id)
|
||||||
return ChangeBellFeedback(client, dev, stuff->mask, b,
|
return ChangeBellFeedback(client, dev, stuff->mask, b,
|
||||||
(xBellFeedbackCtl *) & stuff[1]);
|
(xBellFeedbackCtl *) &stuff[1]);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -110,7 +110,7 @@ ProcXChangeDeviceKeyMapping(ClientPtr client)
|
||||||
|
|
||||||
ret = ChangeKeyMapping(client, dev, len, DeviceMappingNotify,
|
ret = ChangeKeyMapping(client, dev, len, DeviceMappingNotify,
|
||||||
stuff->firstKeyCode, stuff->keyCodes,
|
stuff->firstKeyCode, stuff->keyCodes,
|
||||||
stuff->keySymsPerKeyCode, (KeySym *) & stuff[1]);
|
stuff->keySymsPerKeyCode, (KeySym *) &stuff[1]);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
@ -116,7 +116,7 @@ ProcXChangeDeviceDontPropagateList(ClientPtr client)
|
||||||
return BadMode;
|
return BadMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((rc = CreateMaskFromList(client, (XEventClass *) & stuff[1],
|
if ((rc = CreateMaskFromList(client, (XEventClass *) &stuff[1],
|
||||||
stuff->count, tmp, NULL,
|
stuff->count, tmp, NULL,
|
||||||
X_ChangeDeviceDontPropagateList)) != Success)
|
X_ChangeDeviceDontPropagateList)) != Success)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
|
@ -122,7 +122,7 @@ ProcXGrabDevice(ClientPtr client)
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
if ((rc = CreateMaskFromList(client, (XEventClass *) & stuff[1],
|
if ((rc = CreateMaskFromList(client, (XEventClass *) &stuff[1],
|
||||||
stuff->event_count, tmp, dev,
|
stuff->event_count, tmp, dev,
|
||||||
X_GrabDevice)) != Success)
|
X_GrabDevice)) != Success)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
|
@ -158,11 +158,11 @@ ProcXSelectExtensionEvent(ClientPtr client)
|
||||||
if (ret != Success)
|
if (ret != Success)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
if (HandleDevicePresenceMask(client, pWin, (XEventClass *) & stuff[1],
|
if (HandleDevicePresenceMask(client, pWin, (XEventClass *) &stuff[1],
|
||||||
&stuff->count) != Success)
|
&stuff->count) != Success)
|
||||||
return BadAlloc;
|
return BadAlloc;
|
||||||
|
|
||||||
if ((ret = CreateMaskFromList(client, (XEventClass *) & stuff[1],
|
if ((ret = CreateMaskFromList(client, (XEventClass *) &stuff[1],
|
||||||
stuff->count, tmp, NULL,
|
stuff->count, tmp, NULL,
|
||||||
X_SelectExtensionEvent)) != Success)
|
X_SelectExtensionEvent)) != Success)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
|
@ -417,7 +417,7 @@ ProcXIChangeHierarchy(ClientPtr client)
|
||||||
if (!stuff->num_changes)
|
if (!stuff->num_changes)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
any = (xXIAnyHierarchyChangeInfo *) & stuff[1];
|
any = (xXIAnyHierarchyChangeInfo *) &stuff[1];
|
||||||
while (stuff->num_changes--) {
|
while (stuff->num_changes--) {
|
||||||
SWAPIF(swaps(&any->type));
|
SWAPIF(swaps(&any->type));
|
||||||
SWAPIF(swaps(&any->length));
|
SWAPIF(swaps(&any->length));
|
||||||
|
|
|
@ -63,7 +63,7 @@ SProcXIPassiveGrabDevice(ClientPtr client)
|
||||||
swaps(&stuff->mask_len);
|
swaps(&stuff->mask_len);
|
||||||
swaps(&stuff->num_modifiers);
|
swaps(&stuff->num_modifiers);
|
||||||
|
|
||||||
mods = (xXIModifierInfo *) & stuff[1];
|
mods = (xXIModifierInfo *) &stuff[1];
|
||||||
|
|
||||||
for (i = 0; i < stuff->num_modifiers; i++, mods++) {
|
for (i = 0; i < stuff->num_modifiers; i++, mods++) {
|
||||||
swapl(&mods->base_mods);
|
swapl(&mods->base_mods);
|
||||||
|
@ -177,7 +177,7 @@ ProcXIPassiveGrabDevice(ClientPtr client)
|
||||||
if (ret != Success)
|
if (ret != Success)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
modifiers = (uint32_t *) & stuff[1] + stuff->mask_len;
|
modifiers = (uint32_t *) &stuff[1] + stuff->mask_len;
|
||||||
modifiers_failed =
|
modifiers_failed =
|
||||||
calloc(stuff->num_modifiers, sizeof(xXIGrabModifierInfo));
|
calloc(stuff->num_modifiers, sizeof(xXIGrabModifierInfo));
|
||||||
if (!modifiers_failed) {
|
if (!modifiers_failed) {
|
||||||
|
@ -257,7 +257,7 @@ SProcXIPassiveUngrabDevice(ClientPtr client)
|
||||||
swapl(&stuff->detail);
|
swapl(&stuff->detail);
|
||||||
swaps(&stuff->num_modifiers);
|
swaps(&stuff->num_modifiers);
|
||||||
|
|
||||||
modifiers = (uint32_t *) & stuff[1];
|
modifiers = (uint32_t *) &stuff[1];
|
||||||
|
|
||||||
for (i = 0; i < stuff->num_modifiers; i++, modifiers++)
|
for (i = 0; i < stuff->num_modifiers; i++, modifiers++)
|
||||||
swapl(modifiers);
|
swapl(modifiers);
|
||||||
|
@ -334,7 +334,7 @@ ProcXIPassiveUngrabDevice(ClientPtr client)
|
||||||
tempGrab->detail.exact = stuff->detail;
|
tempGrab->detail.exact = stuff->detail;
|
||||||
tempGrab->detail.pMask = NULL;
|
tempGrab->detail.pMask = NULL;
|
||||||
|
|
||||||
modifiers = (uint32_t *) & stuff[1];
|
modifiers = (uint32_t *) &stuff[1];
|
||||||
|
|
||||||
for (i = 0; i < stuff->num_modifiers; i++, modifiers++) {
|
for (i = 0; i < stuff->num_modifiers; i++, modifiers++) {
|
||||||
tempGrab->modifiersDetail.exact = *modifiers;
|
tempGrab->modifiersDetail.exact = *modifiers;
|
||||||
|
|
|
@ -71,7 +71,7 @@ SProcXISelectEvents(ClientPtr client)
|
||||||
swapl(&stuff->win);
|
swapl(&stuff->win);
|
||||||
swaps(&stuff->num_masks);
|
swaps(&stuff->num_masks);
|
||||||
|
|
||||||
evmask = (xXIEventMask *) & stuff[1];
|
evmask = (xXIEventMask *) &stuff[1];
|
||||||
for (i = 0; i < stuff->num_masks; i++) {
|
for (i = 0; i < stuff->num_masks; i++) {
|
||||||
swaps(&evmask->deviceid);
|
swaps(&evmask->deviceid);
|
||||||
swaps(&evmask->mask_len);
|
swaps(&evmask->mask_len);
|
||||||
|
@ -106,7 +106,7 @@ ProcXISelectEvents(ClientPtr client)
|
||||||
len = sz_xXISelectEventsReq;
|
len = sz_xXISelectEventsReq;
|
||||||
|
|
||||||
/* check request validity */
|
/* check request validity */
|
||||||
evmask = (xXIEventMask *) & stuff[1];
|
evmask = (xXIEventMask *) &stuff[1];
|
||||||
num_masks = stuff->num_masks;
|
num_masks = stuff->num_masks;
|
||||||
while (num_masks--) {
|
while (num_masks--) {
|
||||||
len += sizeof(xXIEventMask) + evmask->mask_len * 4;
|
len += sizeof(xXIEventMask) + evmask->mask_len * 4;
|
||||||
|
@ -205,7 +205,7 @@ ProcXISelectEvents(ClientPtr client)
|
||||||
return BadLength;
|
return BadLength;
|
||||||
|
|
||||||
/* Set masks on window */
|
/* Set masks on window */
|
||||||
evmask = (xXIEventMask *) & stuff[1];
|
evmask = (xXIEventMask *) &stuff[1];
|
||||||
num_masks = stuff->num_masks;
|
num_masks = stuff->num_masks;
|
||||||
while (num_masks--) {
|
while (num_masks--) {
|
||||||
if (evmask->deviceid == XIAllDevices ||
|
if (evmask->deviceid == XIAllDevices ||
|
||||||
|
|
|
@ -467,7 +467,7 @@ ProcDbeSwapBuffers(ClientPtr client)
|
||||||
return BadAlloc;
|
return BadAlloc;
|
||||||
|
|
||||||
/* Get to the swap info appended to the end of the request. */
|
/* Get to the swap info appended to the end of the request. */
|
||||||
dbeSwapInfo = (xDbeSwapInfo *) & stuff[1];
|
dbeSwapInfo = (xDbeSwapInfo *) &stuff[1];
|
||||||
|
|
||||||
/* Allocate array to record swap information. */
|
/* Allocate array to record swap information. */
|
||||||
swapInfo = (DbeSwapInfoPtr) malloc(nStuff * sizeof(DbeSwapInfoRec));
|
swapInfo = (DbeSwapInfoPtr) malloc(nStuff * sizeof(DbeSwapInfoRec));
|
||||||
|
|
|
@ -1718,7 +1718,7 @@ ProcChangeKeyboardMapping(ClientPtr client)
|
||||||
keysyms.minKeyCode = stuff->firstKeyCode;
|
keysyms.minKeyCode = stuff->firstKeyCode;
|
||||||
keysyms.maxKeyCode = stuff->firstKeyCode + stuff->keyCodes - 1;
|
keysyms.maxKeyCode = stuff->firstKeyCode + stuff->keyCodes - 1;
|
||||||
keysyms.mapWidth = stuff->keySymsPerKeyCode;
|
keysyms.mapWidth = stuff->keySymsPerKeyCode;
|
||||||
keysyms.map = (KeySym *) & stuff[1];
|
keysyms.map = (KeySym *) &stuff[1];
|
||||||
|
|
||||||
rc = XaceHook(XACE_DEVICE_ACCESS, client, pDev, DixManageAccess);
|
rc = XaceHook(XACE_DEVICE_ACCESS, client, pDev, DixManageAccess);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
|
@ -1763,7 +1763,7 @@ ProcSetPointerMapping(ClientPtr client)
|
||||||
rep.length = 0;
|
rep.length = 0;
|
||||||
rep.sequenceNumber = client->sequence;
|
rep.sequenceNumber = client->sequence;
|
||||||
rep.success = MappingSuccess;
|
rep.success = MappingSuccess;
|
||||||
map = (BYTE *) & stuff[1];
|
map = (BYTE *) &stuff[1];
|
||||||
|
|
||||||
/* So we're bounded here by the number of core buttons. This check
|
/* So we're bounded here by the number of core buttons. This check
|
||||||
* probably wants disabling through XFixes. */
|
* probably wants disabling through XFixes. */
|
||||||
|
|
|
@ -1696,7 +1696,7 @@ ProcPolyPoint(ClientPtr client)
|
||||||
npoint = bytes_to_int32((client->req_len << 2) - sizeof(xPolyPointReq));
|
npoint = bytes_to_int32((client->req_len << 2) - sizeof(xPolyPointReq));
|
||||||
if (npoint)
|
if (npoint)
|
||||||
(*pGC->ops->PolyPoint) (pDraw, pGC, stuff->coordMode, npoint,
|
(*pGC->ops->PolyPoint) (pDraw, pGC, stuff->coordMode, npoint,
|
||||||
(xPoint *) & stuff[1]);
|
(xPoint *) &stuff[1]);
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1719,7 +1719,7 @@ ProcPolyLine(ClientPtr client)
|
||||||
npoint = bytes_to_int32((client->req_len << 2) - sizeof(xPolyLineReq));
|
npoint = bytes_to_int32((client->req_len << 2) - sizeof(xPolyLineReq));
|
||||||
if (npoint > 1)
|
if (npoint > 1)
|
||||||
(*pGC->ops->Polylines) (pDraw, pGC, stuff->coordMode, npoint,
|
(*pGC->ops->Polylines) (pDraw, pGC, stuff->coordMode, npoint,
|
||||||
(DDXPointPtr) & stuff[1]);
|
(DDXPointPtr) &stuff[1]);
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1739,7 +1739,7 @@ ProcPolySegment(ClientPtr client)
|
||||||
return BadLength;
|
return BadLength;
|
||||||
nsegs >>= 3;
|
nsegs >>= 3;
|
||||||
if (nsegs)
|
if (nsegs)
|
||||||
(*pGC->ops->PolySegment) (pDraw, pGC, nsegs, (xSegment *) & stuff[1]);
|
(*pGC->ops->PolySegment) (pDraw, pGC, nsegs, (xSegment *) &stuff[1]);
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1780,7 +1780,7 @@ ProcPolyArc(ClientPtr client)
|
||||||
return BadLength;
|
return BadLength;
|
||||||
narcs /= sizeof(xArc);
|
narcs /= sizeof(xArc);
|
||||||
if (narcs)
|
if (narcs)
|
||||||
(*pGC->ops->PolyArc) (pDraw, pGC, narcs, (xArc *) & stuff[1]);
|
(*pGC->ops->PolyArc) (pDraw, pGC, narcs, (xArc *) &stuff[1]);
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1810,7 +1810,7 @@ ProcFillPoly(ClientPtr client)
|
||||||
if (things)
|
if (things)
|
||||||
(*pGC->ops->FillPolygon) (pDraw, pGC, stuff->shape,
|
(*pGC->ops->FillPolygon) (pDraw, pGC, stuff->shape,
|
||||||
stuff->coordMode, things,
|
stuff->coordMode, things,
|
||||||
(DDXPointPtr) & stuff[1]);
|
(DDXPointPtr) &stuff[1]);
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1852,7 +1852,7 @@ ProcPolyFillArc(ClientPtr client)
|
||||||
return BadLength;
|
return BadLength;
|
||||||
narcs /= sizeof(xArc);
|
narcs /= sizeof(xArc);
|
||||||
if (narcs)
|
if (narcs)
|
||||||
(*pGC->ops->PolyFillArc) (pDraw, pGC, narcs, (xArc *) & stuff[1]);
|
(*pGC->ops->PolyFillArc) (pDraw, pGC, narcs, (xArc *) &stuff[1]);
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2680,7 +2680,7 @@ ProcFreeColors(ClientPtr client)
|
||||||
return BadAccess;
|
return BadAccess;
|
||||||
count = bytes_to_int32((client->req_len << 2) - sizeof(xFreeColorsReq));
|
count = bytes_to_int32((client->req_len << 2) - sizeof(xFreeColorsReq));
|
||||||
return FreeColors(pcmp, client->index, count,
|
return FreeColors(pcmp, client->index, count,
|
||||||
(Pixel *) & stuff[1], (Pixel) stuff->planeMask);
|
(Pixel *) &stuff[1], (Pixel) stuff->planeMask);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
client->errorValue = stuff->cmap;
|
client->errorValue = stuff->cmap;
|
||||||
|
@ -2706,7 +2706,7 @@ ProcStoreColors(ClientPtr client)
|
||||||
if (count % sizeof(xColorItem))
|
if (count % sizeof(xColorItem))
|
||||||
return BadLength;
|
return BadLength;
|
||||||
count /= sizeof(xColorItem);
|
count /= sizeof(xColorItem);
|
||||||
return StoreColors(pcmp, count, (xColorItem *) & stuff[1], client);
|
return StoreColors(pcmp, count, (xColorItem *) &stuff[1], client);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
client->errorValue = stuff->cmap;
|
client->errorValue = stuff->cmap;
|
||||||
|
@ -2764,7 +2764,7 @@ ProcQueryColors(ClientPtr client)
|
||||||
if (!prgbs && count)
|
if (!prgbs && count)
|
||||||
return BadAlloc;
|
return BadAlloc;
|
||||||
if ((rc =
|
if ((rc =
|
||||||
QueryColors(pcmp, count, (Pixel *) & stuff[1], prgbs, client))) {
|
QueryColors(pcmp, count, (Pixel *) &stuff[1], prgbs, client))) {
|
||||||
free(prgbs);
|
free(prgbs);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
|
@ -807,7 +807,7 @@ SProcStoreColors(ClientPtr client)
|
||||||
swaps(&stuff->length);
|
swaps(&stuff->length);
|
||||||
REQUEST_AT_LEAST_SIZE(xStoreColorsReq);
|
REQUEST_AT_LEAST_SIZE(xStoreColorsReq);
|
||||||
swapl(&stuff->cmap);
|
swapl(&stuff->cmap);
|
||||||
pItem = (xColorItem *) & stuff[1];
|
pItem = (xColorItem *) &stuff[1];
|
||||||
for (count = LengthRestB(stuff) / sizeof(xColorItem); --count >= 0;)
|
for (count = LengthRestB(stuff) / sizeof(xColorItem); --count >= 0;)
|
||||||
SwapColorItem(pItem++);
|
SwapColorItem(pItem++);
|
||||||
return ((*ProcVector[X_StoreColors]) (client));
|
return ((*ProcVector[X_StoreColors]) (client));
|
||||||
|
|
|
@ -757,7 +757,7 @@ ProcRenderTrapezoids(ClientPtr client)
|
||||||
if (ntraps)
|
if (ntraps)
|
||||||
CompositeTrapezoids(stuff->op, pSrc, pDst, pFormat,
|
CompositeTrapezoids(stuff->op, pSrc, pDst, pFormat,
|
||||||
stuff->xSrc, stuff->ySrc,
|
stuff->xSrc, stuff->ySrc,
|
||||||
ntraps, (xTrapezoid *) & stuff[1]);
|
ntraps, (xTrapezoid *) &stuff[1]);
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -796,7 +796,7 @@ ProcRenderTriangles(ClientPtr client)
|
||||||
if (ntris)
|
if (ntris)
|
||||||
CompositeTriangles(stuff->op, pSrc, pDst, pFormat,
|
CompositeTriangles(stuff->op, pSrc, pDst, pFormat,
|
||||||
stuff->xSrc, stuff->ySrc,
|
stuff->xSrc, stuff->ySrc,
|
||||||
ntris, (xTriangle *) & stuff[1]);
|
ntris, (xTriangle *) &stuff[1]);
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -835,7 +835,7 @@ ProcRenderTriStrip(ClientPtr client)
|
||||||
if (npoints >= 3)
|
if (npoints >= 3)
|
||||||
CompositeTriStrip(stuff->op, pSrc, pDst, pFormat,
|
CompositeTriStrip(stuff->op, pSrc, pDst, pFormat,
|
||||||
stuff->xSrc, stuff->ySrc,
|
stuff->xSrc, stuff->ySrc,
|
||||||
npoints, (xPointFixed *) & stuff[1]);
|
npoints, (xPointFixed *) &stuff[1]);
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -874,7 +874,7 @@ ProcRenderTriFan(ClientPtr client)
|
||||||
if (npoints >= 3)
|
if (npoints >= 3)
|
||||||
CompositeTriFan(stuff->op, pSrc, pDst, pFormat,
|
CompositeTriFan(stuff->op, pSrc, pDst, pFormat,
|
||||||
stuff->xSrc, stuff->ySrc,
|
stuff->xSrc, stuff->ySrc,
|
||||||
npoints, (xPointFixed *) & stuff[1]);
|
npoints, (xPointFixed *) &stuff[1]);
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1652,7 +1652,7 @@ ProcRenderSetPictureTransform(ClientPtr client)
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xRenderSetPictureTransformReq);
|
REQUEST_SIZE_MATCH(xRenderSetPictureTransformReq);
|
||||||
VERIFY_PICTURE(pPicture, stuff->picture, client, DixSetAttrAccess);
|
VERIFY_PICTURE(pPicture, stuff->picture, client, DixSetAttrAccess);
|
||||||
return SetPictureTransform(pPicture, (PictTransform *) & stuff->transform);
|
return SetPictureTransform(pPicture, (PictTransform *) &stuff->transform);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -1836,7 +1836,7 @@ ProcRenderAddTraps(ClientPtr client)
|
||||||
ntraps /= sizeof(xTrap);
|
ntraps /= sizeof(xTrap);
|
||||||
if (ntraps)
|
if (ntraps)
|
||||||
AddTraps(pPicture,
|
AddTraps(pPicture,
|
||||||
stuff->xOff, stuff->yOff, ntraps, (xTrap *) & stuff[1]);
|
stuff->xOff, stuff->yOff, ntraps, (xTrap *) &stuff[1]);
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3230,7 +3230,7 @@ ProcXkbSetIndicatorMap(ClientPtr client)
|
||||||
return BadLength;
|
return BadLength;
|
||||||
}
|
}
|
||||||
|
|
||||||
from = (xkbIndicatorMapWireDesc *) & stuff[1];
|
from = (xkbIndicatorMapWireDesc *) &stuff[1];
|
||||||
for (i = 0, bit = 1; i < XkbNumIndicators; i++, bit <<= 1) {
|
for (i = 0, bit = 1; i < XkbNumIndicators; i++, bit <<= 1) {
|
||||||
if (stuff->which & bit) {
|
if (stuff->which & bit) {
|
||||||
if (client->swapped) {
|
if (client->swapped) {
|
||||||
|
@ -3243,7 +3243,7 @@ ProcXkbSetIndicatorMap(ClientPtr client)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
from = (xkbIndicatorMapWireDesc *) & stuff[1];
|
from = (xkbIndicatorMapWireDesc *) &stuff[1];
|
||||||
rc = _XkbSetIndicatorMap(client, dev, stuff->which, from);
|
rc = _XkbSetIndicatorMap(client, dev, stuff->which, from);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
Loading…
Reference in New Issue