From ebea78cdba0ff14a397239ee1936bd254c181e1b Mon Sep 17 00:00:00 2001 From: Tomas Carnecky Date: Thu, 28 Aug 2008 18:05:40 -0400 Subject: Prepare for array-index based devPrivates. TODO: static indices can be made just an int; some indices can be combined. --- xfixes/cursor.c | 4 +++- xfixes/xfixes.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'xfixes') diff --git a/xfixes/cursor.c b/xfixes/cursor.c index ca1739797..c4069d9b6 100755 --- a/xfixes/cursor.c +++ b/xfixes/cursor.c @@ -56,10 +56,12 @@ static RESTYPE CursorClientType; static RESTYPE CursorHideCountType; static RESTYPE CursorWindowType; -static DevPrivateKey CursorScreenPrivateKey = &CursorScreenPrivateKey; static CursorPtr CursorCurrent; static CursorPtr pInvisibleCursor = NULL; +static int CursorScreenPrivateKeyIndex; +static DevPrivateKey CursorScreenPrivateKey = &CursorScreenPrivateKeyIndex; + static void deleteCursorHideCountsForScreen (ScreenPtr pScreen); #define VERIFY_CURSOR(pCursor, cursor, client, access) { \ diff --git a/xfixes/xfixes.c b/xfixes/xfixes.c index 0db49895e..d1225c6f3 100755 --- a/xfixes/xfixes.c +++ b/xfixes/xfixes.c @@ -56,7 +56,9 @@ static unsigned char XFixesReqCode; int XFixesEventBase; int XFixesErrorBase; -static DevPrivateKey XFixesClientPrivateKey = &XFixesClientPrivateKey; + +static int XFixesClientPrivateKeyIndex; +static DevPrivateKey XFixesClientPrivateKey = &XFixesClientPrivateKeyIndex; static int ProcXFixesQueryVersion(ClientPtr client) -- cgit v1.2.3