Eliminate boilerplate around client->noClientException.

Just let Dispatch() check for a noClientException, rather than making
every single dispatch procedure take care of it.

Signed-off-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
Jamey Sharp
2010-05-10 20:22:05 -07:00
parent 11c69880c7
commit 92ed75ac59
52 changed files with 475 additions and 621 deletions

View File

@@ -132,7 +132,7 @@ ProcCompositeQueryVersion (ClientPtr client)
swapl(&rep.minorVersion, n);
}
WriteToClient(client, sizeof(xCompositeQueryVersionReply), (char *)&rep);
return(client->noClientException);
return Success;
}
#define VERIFY_WINDOW(pWindow, wid, client, mode) \
@@ -226,7 +226,7 @@ ProcCompositeCreateRegionFromBorderClip (ClientPtr client)
if (!AddResource (stuff->region, RegionResType, (pointer) pRegion))
return BadAlloc;
return(client->noClientException);
return Success;
}
static int
@@ -265,7 +265,7 @@ ProcCompositeNameWindowPixmap (ClientPtr client)
if (!AddResource (stuff->pixmap, RT_PIXMAP, (pointer) pPixmap))
return BadAlloc;
return(client->noClientException);
return Success;
}
@@ -325,7 +325,7 @@ ProcCompositeGetOverlayWindow (ClientPtr client)
}
(void) WriteToClient(client, sz_xCompositeGetOverlayWindowReply, (char *)&rep);
return client->noClientException;
return Success;
}
static int
@@ -351,7 +351,7 @@ ProcCompositeReleaseOverlayWindow (ClientPtr client)
/* The delete function will free the client structure */
FreeResource (pOc->resource, RT_NONE);
return client->noClientException;
return Success;
}
static int (*ProcCompositeVector[CompositeNumberRequests])(ClientPtr) = {