dix: inline SProcInternAtom()

No need for having an extra function for just few lines.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-10-23 13:55:51 +02:00
committed by Enrico Weigelt
parent 3109a95e56
commit 0293e34b2e
4 changed files with 4 additions and 11 deletions

View File

@@ -1104,6 +1104,9 @@ ProcInternAtom(ClientPtr client)
char *tchar;
REQUEST(xInternAtomReq);
REQUEST_AT_LEAST_SIZE(xInternAtomReq);
if (client->swapped)
swaps(&stuff->nbytes);
REQUEST_FIXED_SIZE(xInternAtomReq, stuff->nbytes);
if ((stuff->onlyIfExists != xTrue) && (stuff->onlyIfExists != xFalse)) {

View File

@@ -169,15 +169,6 @@ SProcConfigureWindow(ClientPtr client)
}
int _X_COLD
SProcInternAtom(ClientPtr client)
{
REQUEST(xInternAtomReq);
REQUEST_AT_LEAST_SIZE(xInternAtomReq);
swaps(&stuff->nbytes);
return ((*ProcVector[X_InternAtom]) (client));
}
int _X_COLD
SProcChangeProperty(ClientPtr client)
{

View File

@@ -347,7 +347,7 @@ int (*SwappedProcVector[256]) (ClientPtr /* client */) = {
ProcCirculateWindow,
ProcGetGeometry,
ProcQueryTree, /* 15 */
SProcInternAtom,
ProcInternAtom,
ProcGetAtomName,
SProcChangeProperty,
SProcDeleteProperty,

View File

@@ -61,7 +61,6 @@ int SProcGetImage(ClientPtr client);
int SProcGetMotionEvents(ClientPtr client);
int SProcGetProperty(ClientPtr client);
int SProcImageText(ClientPtr client);
int SProcInternAtom(ClientPtr client);
int SProcListFonts(ClientPtr client);
int SProcListFontsWithInfo(ClientPtr client);
int SProcLookupColor(ClientPtr client);