summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2017-02-16 14:56:45 -0500
committerAdam Jackson <ajax@redhat.com>2017-03-01 10:16:20 -0500
commitdc7ceda90fdedb2212f105095fe8d449bfdb0eb4 (patch)
tree3ac043c6520ea3a18987ec97792510f5906af74b /dix
parent8c9909a99292b2fb4a86de694bb0029f61e35662 (diff)
dispatch: Mark swapped dispatch as _X_COLD
This touches everything that ends up in the Xorg binary; the big missing part is GLX since that's all generated code. Cuts about 14k from the binary on amd64. Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'dix')
-rw-r--r--dix/swaprep.c164
-rw-r--r--dix/swapreq.c136
2 files changed, 150 insertions, 150 deletions
diff --git a/dix/swaprep.c b/dix/swaprep.c
index 905fef710..08344d7f7 100644
--- a/dix/swaprep.c
+++ b/dix/swaprep.c
@@ -68,7 +68,7 @@ static void SwapFont(xQueryFontReply * pr, Bool hasGlyphs);
*
* \param size size in bytes
*/
-void
+void _X_COLD
Swap32Write(ClientPtr pClient, int size, CARD32 *pbuf)
{
int i;
@@ -87,7 +87,7 @@ Swap32Write(ClientPtr pClient, int size, CARD32 *pbuf)
*
* \param size size in bytes
*/
-void
+void _X_COLD
CopySwap32Write(ClientPtr pClient, int size, CARD32 *pbuf)
{
int bufsize = size;
@@ -134,7 +134,7 @@ CopySwap32Write(ClientPtr pClient, int size, CARD32 *pbuf)
*
* \param size size in bytes
*/
-void
+void _X_COLD
CopySwap16Write(ClientPtr pClient, int size, short *pbuf)
{
int bufsize = size;
@@ -178,7 +178,7 @@ CopySwap16Write(ClientPtr pClient, int size, short *pbuf)
}
/* Extra-small reply */
-void
+void _X_COLD
SGenericReply(ClientPtr pClient, int size, xGenericReply * pRep)
{
swaps(&pRep->sequenceNumber);
@@ -186,7 +186,7 @@ SGenericReply(ClientPtr pClient, int size, xGenericReply * pRep)
}
/* Extra-large reply */
-void
+void _X_COLD
SGetWindowAttributesReply(ClientPtr pClient, int size,
xGetWindowAttributesReply * pRep)
{
@@ -203,7 +203,7 @@ SGetWindowAttributesReply(ClientPtr pClient, int size,
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SGetGeometryReply(ClientPtr pClient, int size, xGetGeometryReply * pRep)
{
swaps(&pRep->sequenceNumber);
@@ -216,7 +216,7 @@ SGetGeometryReply(ClientPtr pClient, int size, xGetGeometryReply * pRep)
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SQueryTreeReply(ClientPtr pClient, int size, xQueryTreeReply * pRep)
{
swaps(&pRep->sequenceNumber);
@@ -227,7 +227,7 @@ SQueryTreeReply(ClientPtr pClient, int size, xQueryTreeReply * pRep)
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SInternAtomReply(ClientPtr pClient, int size, xInternAtomReply * pRep)
{
swaps(&pRep->sequenceNumber);
@@ -235,7 +235,7 @@ SInternAtomReply(ClientPtr pClient, int size, xInternAtomReply * pRep)
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SGetAtomNameReply(ClientPtr pClient, int size, xGetAtomNameReply * pRep)
{
swaps(&pRep->sequenceNumber);
@@ -244,7 +244,7 @@ SGetAtomNameReply(ClientPtr pClient, int size, xGetAtomNameReply * pRep)
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SGetPropertyReply(ClientPtr pClient, int size, xGetPropertyReply * pRep)
{
swaps(&pRep->sequenceNumber);
@@ -255,7 +255,7 @@ SGetPropertyReply(ClientPtr pClient, int size, xGetPropertyReply * pRep)
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SListPropertiesReply(ClientPtr pClient, int size, xListPropertiesReply * pRep)
{
swaps(&pRep->sequenceNumber);
@@ -264,7 +264,7 @@ SListPropertiesReply(ClientPtr pClient, int size, xListPropertiesReply * pRep)
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SGetSelectionOwnerReply(ClientPtr pClient, int size,
xGetSelectionOwnerReply * pRep)
{
@@ -273,7 +273,7 @@ SGetSelectionOwnerReply(ClientPtr pClient, int size,
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SQueryPointerReply(ClientPtr pClient, int size, xQueryPointerReply * pRep)
{
swaps(&pRep->sequenceNumber);
@@ -287,7 +287,7 @@ SQueryPointerReply(ClientPtr pClient, int size, xQueryPointerReply * pRep)
WriteToClient(pClient, size, pRep);
}
-static void
+static void _X_COLD
SwapTimecoord(xTimecoord * pCoord)
{
swapl(&pCoord->time);
@@ -295,7 +295,7 @@ SwapTimecoord(xTimecoord * pCoord)
swaps(&pCoord->y);
}
-void
+void _X_COLD
SwapTimeCoordWrite(ClientPtr pClient, int size, xTimecoord * pRep)
{
int i, n;
@@ -311,7 +311,7 @@ SwapTimeCoordWrite(ClientPtr pClient, int size, xTimecoord * pRep)
}
-void
+void _X_COLD
SGetMotionEventsReply(ClientPtr pClient, int size, xGetMotionEventsReply * pRep)
{
swaps(&pRep->sequenceNumber);
@@ -320,7 +320,7 @@ SGetMotionEventsReply(ClientPtr pClient, int size, xGetMotionEventsReply * pRep)
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
STranslateCoordsReply(ClientPtr pClient, int size, xTranslateCoordsReply * pRep)
{
swaps(&pRep->sequenceNumber);
@@ -330,7 +330,7 @@ STranslateCoordsReply(ClientPtr pClient, int size, xTranslateCoordsReply * pRep)
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SGetInputFocusReply(ClientPtr pClient, int size, xGetInputFocusReply * pRep)
{
swaps(&pRep->sequenceNumber);
@@ -339,7 +339,7 @@ SGetInputFocusReply(ClientPtr pClient, int size, xGetInputFocusReply * pRep)
}
/* extra long reply */
-void
+void _X_COLD
SQueryKeymapReply(ClientPtr pClient, int size, xQueryKeymapReply * pRep)
{
swaps(&pRep->sequenceNumber);
@@ -347,7 +347,7 @@ SQueryKeymapReply(ClientPtr pClient, int size, xQueryKeymapReply * pRep)
WriteToClient(pClient, size, pRep);
}
-static void
+static void _X_COLD
SwapCharInfo(xCharInfo * pInfo)
{
swaps(&pInfo->leftSideBearing);
@@ -358,7 +358,7 @@ SwapCharInfo(xCharInfo * pInfo)
swaps(&pInfo->attributes);
}
-static void
+static void _X_COLD
SwapFontInfo(xQueryFontReply * pr)
{
swaps(&pr->minCharOrByte2);
@@ -372,7 +372,7 @@ SwapFontInfo(xQueryFontReply * pr)
swapl(&pr->nCharInfos);
}
-static void
+static void _X_COLD
SwapFont(xQueryFontReply * pr, Bool hasGlyphs)
{
unsigned i;
@@ -401,14 +401,14 @@ SwapFont(xQueryFontReply * pr, Bool hasGlyphs)
}
}
-void
+void _X_COLD
SQueryFontReply(ClientPtr pClient, int size, xQueryFontReply * pRep)
{
SwapFont(pRep, TRUE);
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SQueryTextExtentsReply(ClientPtr pClient, int size,
xQueryTextExtentsReply * pRep)
{
@@ -423,7 +423,7 @@ SQueryTextExtentsReply(ClientPtr pClient, int size,
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SListFontsReply(ClientPtr pClient, int size, xListFontsReply * pRep)
{
swaps(&pRep->sequenceNumber);
@@ -432,7 +432,7 @@ SListFontsReply(ClientPtr pClient, int size, xListFontsReply * pRep)
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SListFontsWithInfoReply(ClientPtr pClient, int size,
xListFontsWithInfoReply * pRep)
{
@@ -440,7 +440,7 @@ SListFontsWithInfoReply(ClientPtr pClient, int size,
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SGetFontPathReply(ClientPtr pClient, int size, xGetFontPathReply * pRep)
{
swaps(&pRep->sequenceNumber);
@@ -449,7 +449,7 @@ SGetFontPathReply(ClientPtr pClient, int size, xGetFontPathReply * pRep)
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SGetImageReply(ClientPtr pClient, int size, xGetImageReply * pRep)
{
swaps(&pRep->sequenceNumber);
@@ -459,7 +459,7 @@ SGetImageReply(ClientPtr pClient, int size, xGetImageReply * pRep)
/* Fortunately, image doesn't need swapping */
}
-void
+void _X_COLD
SListInstalledColormapsReply(ClientPtr pClient, int size,
xListInstalledColormapsReply * pRep)
{
@@ -469,7 +469,7 @@ SListInstalledColormapsReply(ClientPtr pClient, int size,
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SAllocColorReply(ClientPtr pClient, int size, xAllocColorReply * pRep)
{
swaps(&pRep->sequenceNumber);
@@ -480,7 +480,7 @@ SAllocColorReply(ClientPtr pClient, int size, xAllocColorReply * pRep)
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SAllocNamedColorReply(ClientPtr pClient, int size, xAllocNamedColorReply * pRep)
{
swaps(&pRep->sequenceNumber);
@@ -494,7 +494,7 @@ SAllocNamedColorReply(ClientPtr pClient, int size, xAllocNamedColorReply * pRep)
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SAllocColorCellsReply(ClientPtr pClient, int size, xAllocColorCellsReply * pRep)
{
swaps(&pRep->sequenceNumber);
@@ -504,7 +504,7 @@ SAllocColorCellsReply(ClientPtr pClient, int size, xAllocColorCellsReply * pRep)
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SAllocColorPlanesReply(ClientPtr pClient, int size,
xAllocColorPlanesReply * pRep)
{
@@ -517,7 +517,7 @@ SAllocColorPlanesReply(ClientPtr pClient, int size,
WriteToClient(pClient, size, pRep);
}
-static void
+static void _X_COLD
SwapRGB(xrgb * prgb)
{
swaps(&prgb->red);
@@ -525,7 +525,7 @@ SwapRGB(xrgb * prgb)
swaps(&prgb->blue);
}
-void
+void _X_COLD
SQColorsExtend(ClientPtr pClient, int size, xrgb * prgb)
{
int i, n;
@@ -540,7 +540,7 @@ SQColorsExtend(ClientPtr pClient, int size, xrgb * prgb)
WriteToClient(pClient, size, prgb);
}
-void
+void _X_COLD
SQueryColorsReply(ClientPtr pClient, int size, xQueryColorsReply * pRep)
{
swaps(&pRep->sequenceNumber);
@@ -549,7 +549,7 @@ SQueryColorsReply(ClientPtr pClient, int size, xQueryColorsReply * pRep)
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SLookupColorReply(ClientPtr pClient, int size, xLookupColorReply * pRep)
{
swaps(&pRep->sequenceNumber);
@@ -562,7 +562,7 @@ SLookupColorReply(ClientPtr pClient, int size, xLookupColorReply * pRep)
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SQueryBestSizeReply(ClientPtr pClient, int size, xQueryBestSizeReply * pRep)
{
swaps(&pRep->sequenceNumber);
@@ -571,7 +571,7 @@ SQueryBestSizeReply(ClientPtr pClient, int size, xQueryBestSizeReply * pRep)
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SListExtensionsReply(ClientPtr pClient, int size, xListExtensionsReply * pRep)
{
swaps(&pRep->sequenceNumber);
@@ -579,7 +579,7 @@ SListExtensionsReply(ClientPtr pClient, int size, xListExtensionsReply * pRep)
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SGetKeyboardMappingReply(ClientPtr pClient, int size,
xGetKeyboardMappingReply * pRep)
{
@@ -588,7 +588,7 @@ SGetKeyboardMappingReply(ClientPtr pClient, int size,
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SGetPointerMappingReply(ClientPtr pClient, int size,
xGetPointerMappingReply * pRep)
{
@@ -597,7 +597,7 @@ SGetPointerMappingReply(ClientPtr pClient, int size,
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SGetModifierMappingReply(ClientPtr pClient, int size,
xGetModifierMappingReply * pRep)
{
@@ -606,7 +606,7 @@ SGetModifierMappingReply(ClientPtr pClient, int size,
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SGetKeyboardControlReply(ClientPtr pClient, int size,
xGetKeyboardControlReply * pRep)
{
@@ -618,7 +618,7 @@ SGetKeyboardControlReply(ClientPtr pClient, int size,
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SGetPointerControlReply(ClientPtr pClient, int size,
xGetPointerControlReply * pRep)
{
@@ -629,7 +629,7 @@ SGetPointerControlReply(ClientPtr pClient, int size,
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SGetScreenSaverReply(ClientPtr pClient, int size, xGetScreenSaverReply * pRep)
{
swaps(&pRep->sequenceNumber);
@@ -638,7 +638,7 @@ SGetScreenSaverReply(ClientPtr pClient, int size, xGetScreenSaverReply * pRep)
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SLHostsExtend(ClientPtr pClient, int size, char *buf)
{
char *bufT = buf;
@@ -654,7 +654,7 @@ SLHostsExtend(ClientPtr pClient, int size, char *buf)
WriteToClient(pClient, size, buf);
}
-void
+void _X_COLD
SListHostsReply(ClientPtr pClient, int size, xListHostsReply * pRep)
{
swaps(&pRep->sequenceNumber);
@@ -663,7 +663,7 @@ SListHostsReply(ClientPtr pClient, int size, xListHostsReply * pRep)
WriteToClient(pClient, size, pRep);
}
-void
+void _X_COLD
SErrorEvent(xError * from, xError * to)
{
to->type = X_Error;
@@ -674,7 +674,7 @@ SErrorEvent(xError * from, xError * to)
to->majorCode = from->majorCode;
}
-void
+void _X_COLD
SKeyButtonPtrEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -692,7 +692,7 @@ SKeyButtonPtrEvent(xEvent *from, xEvent *to)
to->u.keyButtonPointer.sameScreen = from->u.keyButtonPointer.sameScreen;
}
-void
+void _X_COLD
SEnterLeaveEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -711,7 +711,7 @@ SEnterLeaveEvent(xEvent *from, xEvent *to)
to->u.enterLeave.flags = from->u.enterLeave.flags;
}
-void
+void _X_COLD
SFocusEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -721,7 +721,7 @@ SFocusEvent(xEvent *from, xEvent *to)
to->u.focus.mode = from->u.focus.mode;
}
-void
+void _X_COLD
SExposeEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -734,7 +734,7 @@ SExposeEvent(xEvent *from, xEvent *to)
cpswaps(from->u.expose.count, to->u.expose.count);
}
-void
+void _X_COLD
SGraphicsExposureEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -750,7 +750,7 @@ SGraphicsExposureEvent(xEvent *from, xEvent *to)
to->u.graphicsExposure.majorEvent = from->u.graphicsExposure.majorEvent;
}
-void
+void _X_COLD
SNoExposureEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -760,7 +760,7 @@ SNoExposureEvent(xEvent *from, xEvent *to)
to->u.noExposure.majorEvent = from->u.noExposure.majorEvent;
}
-void
+void _X_COLD
SVisibilityEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -769,7 +769,7 @@ SVisibilityEvent(xEvent *from, xEvent *to)
to->u.visibility.state = from->u.visibility.state;
}
-void
+void _X_COLD
SCreateNotifyEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -784,7 +784,7 @@ SCreateNotifyEvent(xEvent *from, xEvent *to)
to->u.createNotify.override = from->u.createNotify.override;
}
-void
+void _X_COLD
SDestroyNotifyEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -793,7 +793,7 @@ SDestroyNotifyEvent(xEvent *from, xEvent *to)
cpswapl(from->u.destroyNotify.window, to->u.destroyNotify.window);
}
-void
+void _X_COLD
SUnmapNotifyEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -803,7 +803,7 @@ SUnmapNotifyEvent(xEvent *from, xEvent *to)
to->u.unmapNotify.fromConfigure = from->u.unmapNotify.fromConfigure;
}
-void
+void _X_COLD
SMapNotifyEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -813,7 +813,7 @@ SMapNotifyEvent(xEvent *from, xEvent *to)
to->u.mapNotify.override = from->u.mapNotify.override;
}
-void
+void _X_COLD
SMapRequestEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -822,7 +822,7 @@ SMapRequestEvent(xEvent *from, xEvent *to)
cpswapl(from->u.mapRequest.window, to->u.mapRequest.window);
}
-void
+void _X_COLD
SReparentEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -835,7 +835,7 @@ SReparentEvent(xEvent *from, xEvent *to)
to->u.reparent.override = from->u.reparent.override;
}
-void
+void _X_COLD
SConfigureNotifyEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -853,7 +853,7 @@ SConfigureNotifyEvent(xEvent *from, xEvent *to)
to->u.configureNotify.override = from->u.configureNotify.override;
}
-void
+void _X_COLD
SConfigureRequestEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -872,7 +872,7 @@ SConfigureRequestEvent(xEvent *from, xEvent *to)
to->u.configureRequest.valueMask);
}
-void
+void _X_COLD
SGravityEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -883,7 +883,7 @@ SGravityEvent(xEvent *from, xEvent *to)
cpswaps(from->u.gravity.y, to->u.gravity.y);
}
-void
+void _X_COLD
SResizeRequestEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -893,7 +893,7 @@ SResizeRequestEvent(xEvent *from, xEvent *to)
cpswaps(from->u.resizeRequest.height, to->u.resizeRequest.height);
}
-void
+void _X_COLD
SCirculateEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -905,7 +905,7 @@ SCirculateEvent(xEvent *from, xEvent *to)
to->u.circulate.place = from->u.circulate.place;
}
-void
+void _X_COLD
SPropertyEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -916,7 +916,7 @@ SPropertyEvent(xEvent *from, xEvent *to)
to->u.property.state = from->u.property.state;
}
-void
+void _X_COLD
SSelectionClearEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -926,7 +926,7 @@ SSelectionClearEvent(xEvent *from, xEvent *to)
cpswapl(from->u.selectionClear.atom, to->u.selectionClear.atom);
}
-void
+void _X_COLD
SSelectionRequestEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -941,7 +941,7 @@ SSelectionRequestEvent(xEvent *from, xEvent *to)
cpswapl(from->u.selectionRequest.property, to->u.selectionRequest.property);
}
-void
+void _X_COLD
SSelectionNotifyEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -953,7 +953,7 @@ SSelectionNotifyEvent(xEvent *from, xEvent *to)
cpswapl(from->u.selectionNotify.property, to->u.selectionNotify.property);
}
-void
+void _X_COLD
SColormapEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -964,7 +964,7 @@ SColormapEvent(xEvent *from, xEvent *to)
to->u.colormap.state = from->u.colormap.state;
}
-void
+void _X_COLD
SMappingEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -974,7 +974,7 @@ SMappingEvent(xEvent *from, xEvent *to)
to->u.mappingNotify.count = from->u.mappingNotify.count;
}
-void
+void _X_COLD
SClientMessageEvent(xEvent *from, xEvent *to)
{
to->u.u.type = from->u.u.type;
@@ -1024,7 +1024,7 @@ SClientMessageEvent(xEvent *from, xEvent *to)
}
}
-void
+void _X_COLD
SKeymapNotifyEvent(xEvent *from, xEvent *to)
{
/* Keymap notify events are special; they have no
@@ -1032,7 +1032,7 @@ SKeymapNotifyEvent(xEvent *from, xEvent *to)
*to = *from;
}
-static void
+static void _X_COLD
SwapConnSetup(xConnSetup * pConnSetup, xConnSetup * pConnSetupT)
{
cpswapl(pConnSetup->release, pConnSetupT->release);
@@ -1051,7 +1051,7 @@ SwapConnSetup(xConnSetup * pConnSetup, xConnSetup * pConnSetupT)
pConnSetupT->bitmapScanlinePad = pConnSetup->bitmapScanlinePad;
}
-static void
+static void _X_COLD
SwapWinRoot(xWindowRoot * pRoot, xWindowRoot * pRootT)
{
cpswapl(pRoot->windowId, pRootT->windowId);
@@ -1072,7 +1072,7 @@ SwapWinRoot(xWindowRoot * pRoot, xWindowRoot * pRootT)
pRootT->nDepths = pRoot->nDepths;
}
-static void
+static void _X_COLD
SwapVisual(xVisualType * pVis, xVisualType * pVisT)
{
cpswapl(pVis->visualID, pVisT->visualID);
@@ -1084,7 +1084,7 @@ SwapVisual(xVisualType * pVis, xVisualType * pVisT)
cpswapl(pVis->blueMask, pVisT->blueMask);
}
-void
+void _X_COLD
SwapConnSetupInfo(char *pInfo, char *pInfoT)
{
int i, j, k;
@@ -1129,7 +1129,7 @@ SwapConnSetupInfo(char *pInfo, char *pInfoT)
}
}
-void
+void _X_COLD
WriteSConnectionInfo(ClientPtr pClient, unsigned long size, char *pInfo)
{
char *pInfoTBase;
@@ -1144,7 +1144,7 @@ WriteSConnectionInfo(ClientPtr pClient, unsigned long size, char *pInfo)
free(pInfoTBase);
}
-void
+void _X_COLD
SwapConnSetupPrefix(xConnSetupPrefix * pcspFrom, xConnSetupPrefix * pcspTo)
{
pcspTo->success = pcspFrom->success;
@@ -1154,7 +1154,7 @@ SwapConnSetupPrefix(xConnSetupPrefix * pcspFrom, xConnSetupPrefix * pcspTo)
cpswaps(pcspFrom->length, pcspTo->length);
}
-void
+void _X_COLD
WriteSConnSetupPrefix(ClientPtr pClient, xConnSetupPrefix * pcsp)
{
xConnSetupPrefix cspT;
@@ -1167,7 +1167,7 @@ WriteSConnSetupPrefix(ClientPtr pClient, xConnSetupPrefix * pcsp)
* Dummy entry for ReplySwapVector[]
*/
-void
+void _X_COLD
ReplyNotSwappd(ClientPtr pClient, int size, void *pbuf)
{
FatalError("Not implemented");
diff --git a/dix/swapreq.c b/dix/swapreq.c
index 61d3ce0f4..719e9b81c 100644
--- a/dix/swapreq.c
+++ b/dix/swapreq.c
@@ -116,7 +116,7 @@ SwapShorts(short *list, unsigned long count)
/* The following is used for all requests that have
no fields to be swapped (except "length") */
-int
+int _X_COLD
SProcSimpleReq(ClientPtr client)
{
REQUEST(xReq);
@@ -127,7 +127,7 @@ SProcSimpleReq(ClientPtr client)
/* The following is used for all requests that have
only a single 32-bit field to be swapped, coming
right after the "length" field */
-int
+int _X_COLD
SProcResourceReq(ClientPtr client)
{
REQUEST(xResourceReq);
@@ -137,7 +137,7 @@ SProcResourceReq(ClientPtr client)
return (*ProcVector[stuff->reqType]) (client);
}
-int
+int _X_COLD
SProcCreateWindow(ClientPtr client)
{
REQUEST(xCreateWindowReq);
@@ -157,7 +157,7 @@ SProcCreateWindow(ClientPtr client)
return ((*ProcVector[X_CreateWindow]) (client));
}
-int
+int _X_COLD
SProcChangeWindowAttributes(ClientPtr client)
{
REQUEST(xChangeWindowAttributesReq);
@@ -169,7 +169,7 @@ SProcChangeWindowAttributes(ClientPtr client)
return ((*ProcVector[X_ChangeWindowAttributes]) (client));
}
-int
+int _X_COLD
SProcReparentWindow(ClientPtr client)
{
REQUEST(xReparentWindowReq);
@@ -182,7 +182,7 @@ SProcReparentWindow(ClientPtr client)
return ((*ProcVector[X_ReparentWindow]) (client));
}
-int
+int _X_COLD
SProcConfigureWindow(ClientPtr client)
{
REQUEST(xConfigureWindowReq);
@@ -195,7 +195,7 @@ SProcConfigureWindow(ClientPtr client)
}
-int
+int _X_COLD
SProcInternAtom(ClientPtr client)
{
REQUEST(xInternAtomReq);
@@ -205,7 +205,7 @@ SProcInternAtom(ClientPtr client)
return ((*ProcVector[X_InternAtom]) (client));
}
-int
+int _X_COLD
SProcChangeProperty(ClientPtr client)
{
REQUEST(xChangePropertyReq);
@@ -228,7 +228,7 @@ SProcChangeProperty(ClientPtr client)
return ((*ProcVector[X_ChangeProperty]) (client));
}
-int
+int _X_COLD
SProcDeleteProperty(ClientPtr client)
{
REQUEST(xDeletePropertyReq);
@@ -240,7 +240,7 @@ SProcDeleteProperty(ClientPtr client)
}
-int
+int _X_COLD
SProcGetProperty(ClientPtr client)
{
REQUEST(xGetPropertyReq);
@@ -254,7 +254,7 @@ SProcGetProperty(ClientPtr client)
return ((*ProcVector[X_GetProperty]) (client));
}
-int
+int _X_COLD
SProcSetSelectionOwner(ClientPtr client)
{
REQUEST(xSetSelectionOwnerReq);
@@ -266,7 +266,7 @@ SProcSetSelectionOwner(ClientPtr client)
return ((*ProcVector[X_SetSelectionOwner]) (client));
}
-int
+int _X_COLD
SProcConvertSelection(ClientPtr client)
{
REQUEST(xConvertSelectionReq);
@@ -280,7 +280,7 @@ SProcConvertSelection(ClientPtr client)
return ((*ProcVector[X_ConvertSelection]) (client));
}
-int
+int _X_COLD
SProcSendEvent(ClientPtr client)
{
xEvent eventT = { .u.u.type = 0 };
@@ -302,7 +302,7 @@ SProcSendEvent(ClientPtr client)
return ((*ProcVector[X_SendEvent]) (client));
}
-int
+int _X_COLD
SProcGrabPointer(ClientPtr client)
{
REQUEST(xGrabPointerReq);
@@ -316,7 +316,7 @@ SProcGrabPointer(ClientPtr client)
return ((*ProcVector[X_GrabPointer]) (client));
}
-int
+int _X_COLD
SProcGrabButton(ClientPtr client)
{
REQUEST(xGrabButtonReq);
@@ -330,7 +330,7 @@ SProcGrabButton(ClientPtr client)
return ((*ProcVector[X_GrabButton]) (client));
}
-int
+int _X_COLD
SProcUngrabButton(ClientPtr client)
{
REQUEST(xUngrabButtonReq);
@@ -341,7 +341,7 @@ SProcUngrabButton(ClientPtr client)
return ((*ProcVector[X_UngrabButton]) (client));
}
-int
+int _X_COLD
SProcChangeActivePointerGrab(ClientPtr client)
{
REQUEST(xChangeActivePointerGrabReq);
@@ -353,7 +353,7 @@ SProcChangeActivePointerGrab(ClientPtr client)
return ((*ProcVector[X_ChangeActivePointerGrab]) (client));
}
-int
+int _X_COLD
SProcGrabKeyboard(ClientPtr client)
{
REQUEST(xGrabKeyboardReq);
@@ -364,7 +364,7 @@ SProcGrabKeyboard(ClientPtr client)
return ((*ProcVector[X_GrabKeyboard]) (client));
}
-int
+int _X_COLD
SProcGrabKey(ClientPtr client)
{
REQUEST(xGrabKeyReq);
@@ -375,7 +375,7 @@ SProcGrabKey(ClientPtr client)
return ((*ProcVector[X_GrabKey]) (client));
}
-int
+int _X_COLD
SProcUngrabKey(ClientPtr client)
{
REQUEST(xUngrabKeyReq);
@@ -386,7 +386,7 @@ SProcUngrabKey(ClientPtr client)
return ((*ProcVector[X_UngrabKey]) (client));
}
-int
+int _X_COLD
SProcGetMotionEvents(ClientPtr client)
{
REQUEST(xGetMotionEventsReq);
@@ -398,7 +398,7 @@ SProcGetMotionEvents(ClientPtr client)
return ((*ProcVector[X_GetMotionEvents]) (client));
}
-int
+int _X_COLD
SProcTranslateCoords(ClientPtr client)
{
REQUEST(xTranslateCoordsReq);
@@ -411,7 +411,7 @@ SProcTranslateCoords(ClientPtr client)
return ((*ProcVector[X_TranslateCoords]) (client));
}
-int
+int _X_COLD
SProcWarpPointer(ClientPtr client)
{
REQUEST(xWarpPointerReq);
@@ -428,7 +428,7 @@ SProcWarpPointer(ClientPtr client)
return ((*ProcVector[X_WarpPointer]) (client));
}
-int
+int _X_COLD
SProcSetInputFocus(ClientPtr client)
{
REQUEST(xSetInputFocusReq);
@@ -439,7 +439,7 @@ SProcSetInputFocus(ClientPtr client)
return ((*ProcVector[X_SetInputFocus]) (client));
}
-int
+int _X_COLD
SProcOpenFont(ClientPtr client)
{
REQUEST(xOpenFontReq);
@@ -450,7 +450,7 @@ SProcOpenFont(ClientPtr client)
return ((*ProcVector[X_OpenFont]) (client));
}
-int
+int _X_COLD
SProcListFonts(ClientPtr client)
{
REQUEST(xListFontsReq);
@@ -461,7 +461,7 @@ SProcListFonts(ClientPtr client)
return ((*ProcVector[X_ListFonts]) (client));
}
-int
+int _X_COLD
SProcListFontsWithInfo(ClientPtr client)
{
REQUEST(xListFontsWithInfoReq);
@@ -472,7 +472,7 @@ SProcListFontsWithInfo(ClientPtr client)
return ((*ProcVector[X_ListFontsWithInfo]) (client));
}
-int
+int _X_COLD
SProcSetFontPath(ClientPtr client)
{
REQUEST(xSetFontPathReq);
@@ -482,7 +482,7 @@ SProcSetFontPath(ClientPtr client)
return ((*ProcVector[X_SetFontPath]) (client));
}
-int
+int _X_COLD
SProcCreatePixmap(ClientPtr client)
{
REQUEST(xCreatePixmapReq);
@@ -496,7 +496,7 @@ SProcCreatePixmap(ClientPtr client)
return ((*ProcVector[X_CreatePixmap]) (client));
}
-int
+int _X_COLD
SProcCreateGC(ClientPtr client)
{
REQUEST(xCreateGCReq);
@@ -509,7 +509,7 @@ SProcCreateGC(ClientPtr client)
return ((*ProcVector[X_CreateGC]) (client));
}
-int
+int _X_COLD
SProcChangeGC(ClientPtr client)
{
REQUEST(xChangeGCReq);
@@ -521,7 +521,7 @@ SProcChangeGC(ClientPtr client)
return ((*ProcVector[X_ChangeGC]) (client));
}
-int
+int _X_COLD
SProcCopyGC(ClientPtr client)
{
REQUEST(xCopyGCReq);
@@ -533,7 +533,7 @@ SProcCopyGC(ClientPtr client)
return ((*ProcVector[X_CopyGC]) (client));
}
-int
+int _X_COLD
SProcSetDashes(ClientPtr client)
{
REQUEST(xSetDashesReq);
@@ -546,7 +546,7 @@ SProcSetDashes(ClientPtr client)
}
-int
+int _X_COLD
SProcSetClipRectangles(ClientPtr client)
{
REQUEST(xSetClipRectanglesReq);
@@ -559,7 +559,7 @@ SProcSetClipRectangles(ClientPtr client)
return ((*ProcVector[X_SetClipRectangles]) (client));
}
-int
+int _X_COLD
SProcClearToBackground(ClientPtr client)
{
REQUEST(xClearAreaReq);
@@ -573,7 +573,7 @@ SProcClearToBackground(ClientPtr client)
return ((*ProcVector[X_ClearArea]) (client));
}
-int
+int _X_COLD
SProcCopyArea(ClientPtr client)
{
REQUEST(xCopyAreaReq);
@@ -591,7 +591,7 @@ SProcCopyArea(ClientPtr client)
return ((*ProcVector[X_CopyArea]) (client));
}
-int
+int _X_COLD
SProcCopyPlane(ClientPtr client)
{
REQUEST(xCopyPlaneReq);
@@ -612,7 +612,7 @@ SProcCopyPlane(ClientPtr client)
/* The following routine is used for all Poly drawing requests
(except FillPoly, which uses a different request format) */
-int
+int _X_COLD
SProcPoly(ClientPtr client)
{
REQUEST(xPolyPointReq);
@@ -627,7 +627,7 @@ SProcPoly(ClientPtr client)
/* cannot use SProcPoly for this one, because xFillPolyReq
is longer than xPolyPointReq, and we don't want to swap
the difference as shorts! */
-int
+int _X_COLD
SProcFillPoly(ClientPtr client)
{
REQUEST(xFillPolyReq);
@@ -639,7 +639,7 @@ SProcFillPoly(ClientPtr client)
return ((*ProcVector[X_FillPoly]) (client));
}
-int
+int _X_COLD
SProcPutImage(ClientPtr client)
{
REQUEST(xPutImageReq);
@@ -656,7 +656,7 @@ SProcPutImage(ClientPtr client)
}
-int
+int _X_COLD
SProcGetImage(ClientPtr client)
{
REQUEST(xGetImageReq);
@@ -673,7 +673,7 @@ SProcGetImage(ClientPtr client)
/* ProcPolyText used for both PolyText8 and PolyText16 */
-int
+int _X_COLD
SProcPolyText(ClientPtr client)
{
REQUEST(xPolyTextReq);
@@ -688,7 +688,7 @@ SProcPolyText(ClientPtr client)
/* ProcImageText used for both ImageText8 and ImageText16 */
-int
+int _X_COLD
SProcImageText(ClientPtr client)
{
REQUEST(xImageTextReq);
@@ -701,7 +701,7 @@ SProcImageText(ClientPtr client)
return ((*ProcVector[stuff->reqType]) (client));
}
-int
+int _X_COLD
SProcCreateColormap(ClientPtr client)
{
REQUEST(xCreateColormapReq);
@@ -713,7 +713,7 @@ SProcCreateColormap(ClientPtr client)
return ((*ProcVector[X_CreateColormap]) (client));
}
-int
+int _X_COLD
SProcCopyColormapAndFree(ClientPtr client)
{
REQUEST(xCopyColormapAndFreeReq);
@@ -725,7 +725,7 @@ SProcCopyColormapAndFree(ClientPtr client)
}
-int
+int _X_COLD
SProcAllocColor(ClientPtr client)
{
REQUEST(xAllocColorReq);
@@ -738,7 +738,7 @@ SProcAllocColor(ClientPtr client)
return ((*ProcVector[X_AllocColor]) (client));
}
-int
+int _X_COLD
SProcAllocNamedColor(ClientPtr client)
{
REQUEST(xAllocNamedColorReq);
@@ -749,7 +749,7 @@ SProcAllocNamedColor(ClientPtr client)
return ((*ProcVector[X_AllocNamedColor]) (client));
}
-int
+int _X_COLD
SProcAllocColorCells(ClientPtr client)
{
REQUEST(xAllocColorCellsReq);
@@ -761,7 +761,7 @@ SProcAllocColorCells(ClientPtr client)
return ((*ProcVector[X_AllocColorCells]) (client));
}
-int
+int _X_COLD
SProcAllocColorPlanes(ClientPtr client)
{
REQUEST(xAllocColorPlanesReq);
@@ -775,7 +775,7 @@ SProcAllocColorPlanes(ClientPtr client)
return ((*ProcVector[X_AllocColorPlanes]) (client));
}
-int
+int _X_COLD
SProcFreeColors(ClientPtr client)
{
REQUEST(xFreeColorsReq);
@@ -788,7 +788,7 @@ SProcFreeColors(ClientPtr client)
}
-void
+void _X_COLD
SwapColorItem(xColorItem * pItem)
{
swapl(&pItem->pixel);
@@ -797,7 +797,7 @@ SwapColorItem(xColorItem * pItem)
swaps(&pItem->blue);
}
-int
+int _X_COLD
SProcStoreColors(ClientPtr client)
{
long count;
@@ -813,7 +813,7 @@ SProcStoreColors(ClientPtr client)
return ((*ProcVector[X_StoreColors]) (client));
}
-int
+int _X_COLD
SProcStoreNamedColor(ClientPtr client)
{
REQUEST(xStoreNamedColorReq);
@@ -825,7 +825,7 @@ SProcStoreNamedColor(ClientPtr client)
return ((*ProcVector[X_StoreNamedColor]) (client));
}
-int
+int _X_COLD
SProcQueryColors(ClientPtr client)
{
REQUEST(xQueryColorsReq);
@@ -836,7 +836,7 @@ SProcQueryColors(ClientPtr client)
return ((*ProcVector[X_QueryColors]) (client));
}
-int
+int _X_COLD
SProcLookupColor(ClientPtr client)
{
REQUEST(xLookupColorReq);
@@ -847,7 +847,7 @@ SProcLookupColor(ClientPtr client)
return ((*ProcVector[X_LookupColor]) (client));
}
-int
+int _X_COLD
SProcCreateCursor(ClientPtr client)
{
REQUEST(xCreateCursorReq);
@@ -867,7 +867,7 @@ SProcCreateCursor(ClientPtr client)
return ((*ProcVector[X_CreateCursor]) (client));
}
-int
+int _X_COLD
SProcCreateGlyphCursor(ClientPtr client)
{
REQUEST(xCreateGlyphCursorReq);
@@ -887,7 +887,7 @@ SProcCreateGlyphCursor(ClientPtr client)
return ((*ProcVector[X_CreateGlyphCursor]) (client));
}
-int
+int _X_COLD
SProcRecolorCursor(ClientPtr client)
{
REQUEST(xRecolorCursorReq);
@@ -903,7 +903,7 @@ SProcRecolorCursor(ClientPtr client)
return ((*ProcVector[X_RecolorCursor]) (client));
}
-int
+int _X_COLD
SProcQueryBestSize(ClientPtr client)
{
REQUEST(xQueryBestSizeReq);
@@ -916,7 +916,7 @@ SProcQueryBestSize(ClientPtr client)
}
-int
+int _X_COLD
SProcQueryExtension(ClientPtr client)
{
REQUEST(xQueryExtensionReq);
@@ -926,7 +926,7 @@ SProcQueryExtension(ClientPtr client)
return ((*ProcVector[X_QueryExtension]) (client));
}
-int
+int _X_COLD
SProcChangeKeyboardMapping(ClientPtr client)
{
REQUEST(xChangeKeyboardMappingReq);
@@ -936,7 +936,7 @@ SProcChangeKeyboardMapping(ClientPtr client)
return ((*ProcVector[X_ChangeKeyboardMapping]) (client));
}
-int
+int _X_COLD
SProcChangeKeyboardControl(ClientPtr client)
{
REQUEST(xChangeKeyboardControlReq);
@@ -947,7 +947,7 @@ SProcChangeKeyboardControl(ClientPtr client)
return ((*ProcVector[X_ChangeKeyboardControl]) (client));
}
-int
+int _X_COLD
SProcChangePointerControl(ClientPtr client)
{
REQUEST(xChangePointerControlReq);
@@ -959,7 +959,7 @@ SProcChangePointerControl(ClientPtr client)
return ((*ProcVector[X_ChangePointerControl]) (client));
}
-int
+int _X_COLD
SProcSetScreenSaver(ClientPtr client)
{
REQUEST(xSetScreenSaverReq);
@@ -970,7 +970,7 @@ SProcSetScreenSaver(ClientPtr client)
return ((*ProcVector[X_SetScreenSaver]) (client));
}
-int
+int _X_COLD
SProcChangeHosts(ClientPtr client)
{
REQUEST(xChangeHostsReq);
@@ -981,7 +981,7 @@ SProcChangeHosts(ClientPtr client)
}
-int
+int _X_COLD
SProcRotateProperties(ClientPtr client)
{
REQUEST(xRotatePropertiesReq);
@@ -994,7 +994,7 @@ SProcRotateProperties(ClientPtr client)
return ((*ProcVector[X_RotateProperties]) (client));
}
-int
+int _X_COLD
SProcNoOperation(ClientPtr client)
{
REQUEST(xReq);
@@ -1002,7 +1002,7 @@ SProcNoOperation(ClientPtr client)
return ((*ProcVector[X_NoOperation]) (client));
}
-void
+void _X_COLD
SwapConnClientPrefix(xConnClientPrefix * pCCP)
{
swaps(&pCCP->majorVersion);