Xming: Remove uses of register keyword

I'm pretty sure the compiler has a better idea how to optimize this

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
This commit is contained in:
Colin Harrison 2010-09-29 14:18:27 +01:00 committed by Jon TURNEY
parent d11761c6a6
commit 8e72310815

View File

@ -77,10 +77,10 @@ make_box (int x, int y, int w, int h)
} }
static int static int
ProcWindowsWMQueryVersion(register ClientPtr client) ProcWindowsWMQueryVersion(ClientPtr client)
{ {
xWindowsWMQueryVersionReply rep; xWindowsWMQueryVersionReply rep;
register int n; int n;
REQUEST_SIZE_MATCH(xWindowsWMQueryVersionReq); REQUEST_SIZE_MATCH(xWindowsWMQueryVersionReq);
rep.type = X_Reply; rep.type = X_Reply;
@ -158,7 +158,7 @@ WMFreeEvents (pointer data, XID id)
} }
static int static int
ProcWindowsWMSelectInput (register ClientPtr client) ProcWindowsWMSelectInput (ClientPtr client)
{ {
REQUEST(xWindowsWMSelectInputReq); REQUEST(xWindowsWMSelectInputReq);
WMEventPtr pEvent, pNewEvent, *pHead; WMEventPtr pEvent, pNewEvent, *pHead;
@ -298,7 +298,7 @@ winWindowsWMSendEvent (int type, unsigned int mask, int which, int arg,
/* general utility functions */ /* general utility functions */
static int static int
ProcWindowsWMDisableUpdate (register ClientPtr client) ProcWindowsWMDisableUpdate (ClientPtr client)
{ {
REQUEST_SIZE_MATCH(xWindowsWMDisableUpdateReq); REQUEST_SIZE_MATCH(xWindowsWMDisableUpdateReq);
@ -308,7 +308,7 @@ ProcWindowsWMDisableUpdate (register ClientPtr client)
} }
static int static int
ProcWindowsWMReenableUpdate (register ClientPtr client) ProcWindowsWMReenableUpdate (ClientPtr client)
{ {
REQUEST_SIZE_MATCH(xWindowsWMReenableUpdateReq); REQUEST_SIZE_MATCH(xWindowsWMReenableUpdateReq);
@ -321,7 +321,7 @@ ProcWindowsWMReenableUpdate (register ClientPtr client)
/* window functions */ /* window functions */
static int static int
ProcWindowsWMSetFrontProcess (register ClientPtr client) ProcWindowsWMSetFrontProcess (ClientPtr client)
{ {
REQUEST_SIZE_MATCH(xWindowsWMSetFrontProcessReq); REQUEST_SIZE_MATCH(xWindowsWMSetFrontProcessReq);
@ -334,7 +334,7 @@ ProcWindowsWMSetFrontProcess (register ClientPtr client)
/* frame functions */ /* frame functions */
static int static int
ProcWindowsWMFrameGetRect (register ClientPtr client) ProcWindowsWMFrameGetRect (ClientPtr client)
{ {
xWindowsWMFrameGetRectReply rep; xWindowsWMFrameGetRectReply rep;
BoxRec ir; BoxRec ir;
@ -388,7 +388,7 @@ ProcWindowsWMFrameGetRect (register ClientPtr client)
static int static int
ProcWindowsWMFrameDraw (register ClientPtr client) ProcWindowsWMFrameDraw (ClientPtr client)
{ {
REQUEST(xWindowsWMFrameDrawReq); REQUEST(xWindowsWMFrameDrawReq);
WindowPtr pWin; WindowPtr pWin;
@ -478,9 +478,7 @@ ProcWindowsWMFrameDraw (register ClientPtr client)
} }
static int static int
ProcWindowsWMFrameSetTitle( ProcWindowsWMFrameSetTitle(ClientPtr client)
register ClientPtr client
)
{ {
unsigned int title_length, title_max; unsigned int title_length, title_max;
char *title_bytes; char *title_bytes;
@ -540,7 +538,7 @@ ProcWindowsWMFrameSetTitle(
/* dispatch */ /* dispatch */
static int static int
ProcWindowsWMDispatch (register ClientPtr client) ProcWindowsWMDispatch (ClientPtr client)
{ {
REQUEST(xReq); REQUEST(xReq);
@ -586,16 +584,16 @@ SNotifyEvent (xWindowsWMNotifyEvent *from, xWindowsWMNotifyEvent *to)
} }
static int static int
SProcWindowsWMQueryVersion (register ClientPtr client) SProcWindowsWMQueryVersion (ClientPtr client)
{ {
register int n; int n;
REQUEST(xWindowsWMQueryVersionReq); REQUEST(xWindowsWMQueryVersionReq);
swaps(&stuff->length, n); swaps(&stuff->length, n);
return ProcWindowsWMQueryVersion(client); return ProcWindowsWMQueryVersion(client);
} }
static int static int
SProcWindowsWMDispatch (register ClientPtr client) SProcWindowsWMDispatch (ClientPtr client)
{ {
REQUEST(xReq); REQUEST(xReq);