Make indentation of dix/tables.c much more consistent and readable
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Acked-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
9f7ef7f7f0
commit
c37c65052f
297
dix/tables.c
297
dix/tables.c
|
@ -58,38 +58,140 @@ SOFTWARE.
|
|||
#include "swaprep.h"
|
||||
#include "swapreq.h"
|
||||
|
||||
int (*InitialVector[3]) (ClientPtr /* client */
|
||||
) = {
|
||||
0, ProcInitialConnection, ProcEstablishConnection};
|
||||
int (*InitialVector[3]) (ClientPtr /* client */) = {
|
||||
0,
|
||||
ProcInitialConnection,
|
||||
ProcEstablishConnection
|
||||
};
|
||||
|
||||
int (*ProcVector[256]) (ClientPtr /* client */
|
||||
) = {
|
||||
ProcBadRequest, ProcCreateWindow, ProcChangeWindowAttributes, ProcGetWindowAttributes, ProcDestroyWindow, ProcDestroySubwindows, /* 5 */
|
||||
ProcChangeSaveSet, ProcReparentWindow, ProcMapWindow, ProcMapSubwindows, ProcUnmapWindow, /* 10 */
|
||||
ProcUnmapSubwindows, ProcConfigureWindow, ProcCirculateWindow, ProcGetGeometry, ProcQueryTree, /* 15 */
|
||||
ProcInternAtom, ProcGetAtomName, ProcChangeProperty, ProcDeleteProperty, ProcGetProperty, /* 20 */
|
||||
ProcListProperties, ProcSetSelectionOwner, ProcGetSelectionOwner, ProcConvertSelection, ProcSendEvent, /* 25 */
|
||||
ProcGrabPointer, ProcUngrabPointer, ProcGrabButton, ProcUngrabButton, ProcChangeActivePointerGrab, /* 30 */
|
||||
ProcGrabKeyboard, ProcUngrabKeyboard, ProcGrabKey, ProcUngrabKey, ProcAllowEvents, /* 35 */
|
||||
ProcGrabServer, ProcUngrabServer, ProcQueryPointer, ProcGetMotionEvents, ProcTranslateCoords, /* 40 */
|
||||
ProcWarpPointer, ProcSetInputFocus, ProcGetInputFocus, ProcQueryKeymap, ProcOpenFont, /* 45 */
|
||||
ProcCloseFont, ProcQueryFont, ProcQueryTextExtents, ProcListFonts, ProcListFontsWithInfo, /* 50 */
|
||||
ProcSetFontPath, ProcGetFontPath, ProcCreatePixmap, ProcFreePixmap, ProcCreateGC, /* 55 */
|
||||
ProcChangeGC, ProcCopyGC, ProcSetDashes, ProcSetClipRectangles, ProcFreeGC, /* 60 */
|
||||
ProcClearToBackground, ProcCopyArea, ProcCopyPlane, ProcPolyPoint, ProcPolyLine, /* 65 */
|
||||
ProcPolySegment, ProcPolyRectangle, ProcPolyArc, ProcFillPoly, ProcPolyFillRectangle, /* 70 */
|
||||
ProcPolyFillArc, ProcPutImage, ProcGetImage, ProcPolyText, ProcPolyText, /* 75 */
|
||||
ProcImageText8, ProcImageText16, ProcCreateColormap, ProcFreeColormap, ProcCopyColormapAndFree, /* 80 */
|
||||
ProcInstallColormap, ProcUninstallColormap, ProcListInstalledColormaps, ProcAllocColor, ProcAllocNamedColor, /* 85 */
|
||||
ProcAllocColorCells, ProcAllocColorPlanes, ProcFreeColors, ProcStoreColors, ProcStoreNamedColor, /* 90 */
|
||||
ProcQueryColors, ProcLookupColor, ProcCreateCursor, ProcCreateGlyphCursor, ProcFreeCursor, /* 95 */
|
||||
ProcRecolorCursor, ProcQueryBestSize, ProcQueryExtension, ProcListExtensions, ProcChangeKeyboardMapping, /* 100 */
|
||||
ProcGetKeyboardMapping, ProcChangeKeyboardControl, ProcGetKeyboardControl, ProcBell, ProcChangePointerControl, /* 105 */
|
||||
ProcGetPointerControl, ProcSetScreenSaver, ProcGetScreenSaver, ProcChangeHosts, ProcListHosts, /* 110 */
|
||||
ProcChangeAccessControl, ProcChangeCloseDownMode, ProcKillClient, ProcRotateProperties, ProcForceScreenSaver, /* 115 */
|
||||
ProcSetPointerMapping, ProcGetPointerMapping, ProcSetModifierMapping, ProcGetModifierMapping, ProcBadRequest, /* 120 */
|
||||
ProcBadRequest, ProcBadRequest, ProcBadRequest, ProcBadRequest, ProcBadRequest, /* 125 */
|
||||
ProcBadRequest,
|
||||
int (*ProcVector[256]) (ClientPtr /* client */) = {
|
||||
ProcBadRequest,
|
||||
ProcCreateWindow,
|
||||
ProcChangeWindowAttributes,
|
||||
ProcGetWindowAttributes,
|
||||
ProcDestroyWindow,
|
||||
ProcDestroySubwindows, /* 5 */
|
||||
ProcChangeSaveSet,
|
||||
ProcReparentWindow,
|
||||
ProcMapWindow,
|
||||
ProcMapSubwindows,
|
||||
ProcUnmapWindow, /* 10 */
|
||||
ProcUnmapSubwindows,
|
||||
ProcConfigureWindow,
|
||||
ProcCirculateWindow,
|
||||
ProcGetGeometry,
|
||||
ProcQueryTree, /* 15 */
|
||||
ProcInternAtom,
|
||||
ProcGetAtomName,
|
||||
ProcChangeProperty,
|
||||
ProcDeleteProperty,
|
||||
ProcGetProperty, /* 20 */
|
||||
ProcListProperties,
|
||||
ProcSetSelectionOwner,
|
||||
ProcGetSelectionOwner,
|
||||
ProcConvertSelection,
|
||||
ProcSendEvent, /* 25 */
|
||||
ProcGrabPointer,
|
||||
ProcUngrabPointer,
|
||||
ProcGrabButton,
|
||||
ProcUngrabButton,
|
||||
ProcChangeActivePointerGrab, /* 30 */
|
||||
ProcGrabKeyboard,
|
||||
ProcUngrabKeyboard,
|
||||
ProcGrabKey,
|
||||
ProcUngrabKey,
|
||||
ProcAllowEvents, /* 35 */
|
||||
ProcGrabServer,
|
||||
ProcUngrabServer,
|
||||
ProcQueryPointer,
|
||||
ProcGetMotionEvents,
|
||||
ProcTranslateCoords, /* 40 */
|
||||
ProcWarpPointer,
|
||||
ProcSetInputFocus,
|
||||
ProcGetInputFocus,
|
||||
ProcQueryKeymap,
|
||||
ProcOpenFont, /* 45 */
|
||||
ProcCloseFont,
|
||||
ProcQueryFont,
|
||||
ProcQueryTextExtents,
|
||||
ProcListFonts,
|
||||
ProcListFontsWithInfo, /* 50 */
|
||||
ProcSetFontPath,
|
||||
ProcGetFontPath,
|
||||
ProcCreatePixmap,
|
||||
ProcFreePixmap,
|
||||
ProcCreateGC, /* 55 */
|
||||
ProcChangeGC,
|
||||
ProcCopyGC,
|
||||
ProcSetDashes,
|
||||
ProcSetClipRectangles,
|
||||
ProcFreeGC, /* 60 */
|
||||
ProcClearToBackground,
|
||||
ProcCopyArea,
|
||||
ProcCopyPlane,
|
||||
ProcPolyPoint,
|
||||
ProcPolyLine, /* 65 */
|
||||
ProcPolySegment,
|
||||
ProcPolyRectangle,
|
||||
ProcPolyArc,
|
||||
ProcFillPoly,
|
||||
ProcPolyFillRectangle, /* 70 */
|
||||
ProcPolyFillArc,
|
||||
ProcPutImage,
|
||||
ProcGetImage,
|
||||
ProcPolyText,
|
||||
ProcPolyText, /* 75 */
|
||||
ProcImageText8,
|
||||
ProcImageText16,
|
||||
ProcCreateColormap,
|
||||
ProcFreeColormap,
|
||||
ProcCopyColormapAndFree, /* 80 */
|
||||
ProcInstallColormap,
|
||||
ProcUninstallColormap,
|
||||
ProcListInstalledColormaps,
|
||||
ProcAllocColor,
|
||||
ProcAllocNamedColor, /* 85 */
|
||||
ProcAllocColorCells,
|
||||
ProcAllocColorPlanes,
|
||||
ProcFreeColors,
|
||||
ProcStoreColors,
|
||||
ProcStoreNamedColor, /* 90 */
|
||||
ProcQueryColors,
|
||||
ProcLookupColor,
|
||||
ProcCreateCursor,
|
||||
ProcCreateGlyphCursor,
|
||||
ProcFreeCursor, /* 95 */
|
||||
ProcRecolorCursor,
|
||||
ProcQueryBestSize,
|
||||
ProcQueryExtension,
|
||||
ProcListExtensions,
|
||||
ProcChangeKeyboardMapping, /* 100 */
|
||||
ProcGetKeyboardMapping,
|
||||
ProcChangeKeyboardControl,
|
||||
ProcGetKeyboardControl,
|
||||
ProcBell,
|
||||
ProcChangePointerControl, /* 105 */
|
||||
ProcGetPointerControl,
|
||||
ProcSetScreenSaver,
|
||||
ProcGetScreenSaver,
|
||||
ProcChangeHosts,
|
||||
ProcListHosts, /* 110 */
|
||||
ProcChangeAccessControl,
|
||||
ProcChangeCloseDownMode,
|
||||
ProcKillClient,
|
||||
ProcRotateProperties,
|
||||
ProcForceScreenSaver, /* 115 */
|
||||
ProcSetPointerMapping,
|
||||
ProcGetPointerMapping,
|
||||
ProcSetModifierMapping,
|
||||
ProcGetModifierMapping,
|
||||
ProcBadRequest, /* 120 */
|
||||
ProcBadRequest,
|
||||
ProcBadRequest,
|
||||
ProcBadRequest,
|
||||
ProcBadRequest,
|
||||
ProcBadRequest, /* 125 */
|
||||
ProcBadRequest,
|
||||
ProcNoOperation,
|
||||
ProcBadRequest,
|
||||
ProcBadRequest,
|
||||
|
@ -215,81 +317,140 @@ ProcBadRequest,
|
|||
ProcBadRequest,
|
||||
ProcBadRequest,
|
||||
ProcBadRequest,
|
||||
ProcBadRequest, ProcBadRequest, ProcBadRequest, ProcBadRequest};
|
||||
ProcBadRequest,
|
||||
ProcBadRequest,
|
||||
ProcBadRequest,
|
||||
ProcBadRequest
|
||||
};
|
||||
|
||||
int (*SwappedProcVector[256]) (ClientPtr /* client */
|
||||
) = {
|
||||
ProcBadRequest, SProcCreateWindow, SProcChangeWindowAttributes, SProcResourceReq, /* GetWindowAttributes */
|
||||
int (*SwappedProcVector[256]) (ClientPtr /* client */) = {
|
||||
ProcBadRequest,
|
||||
SProcCreateWindow,
|
||||
SProcChangeWindowAttributes,
|
||||
SProcResourceReq, /* GetWindowAttributes */
|
||||
SProcResourceReq, /* DestroyWindow */
|
||||
SProcResourceReq, /* 5 DestroySubwindows */
|
||||
SProcResourceReq, /* SProcChangeSaveSet, */
|
||||
SProcReparentWindow, SProcResourceReq, /* MapWindow */
|
||||
SProcReparentWindow,
|
||||
SProcResourceReq, /* MapWindow */
|
||||
SProcResourceReq, /* MapSubwindows */
|
||||
SProcResourceReq, /* 10 UnmapWindow */
|
||||
SProcResourceReq, /* UnmapSubwindows */
|
||||
SProcConfigureWindow, SProcResourceReq, /* SProcCirculateWindow, */
|
||||
SProcConfigureWindow,
|
||||
SProcResourceReq, /* SProcCirculateWindow, */
|
||||
SProcResourceReq, /* GetGeometry */
|
||||
SProcResourceReq, /* 15 QueryTree */
|
||||
SProcInternAtom, SProcResourceReq, /* SProcGetAtomName, */
|
||||
SProcChangeProperty, SProcDeleteProperty, SProcGetProperty, /* 20 */
|
||||
SProcInternAtom,
|
||||
SProcResourceReq, /* SProcGetAtomName, */
|
||||
SProcChangeProperty,
|
||||
SProcDeleteProperty,
|
||||
SProcGetProperty, /* 20 */
|
||||
SProcResourceReq, /* SProcListProperties, */
|
||||
SProcSetSelectionOwner, SProcResourceReq, /* SProcGetSelectionOwner, */
|
||||
SProcConvertSelection, SProcSendEvent, /* 25 */
|
||||
SProcGrabPointer, SProcResourceReq, /* SProcUngrabPointer, */
|
||||
SProcGrabButton, SProcUngrabButton, SProcChangeActivePointerGrab, /* 30 */
|
||||
SProcGrabKeyboard, SProcResourceReq, /* SProcUngrabKeyboard, */
|
||||
SProcGrabKey, SProcUngrabKey, SProcResourceReq, /* 35 SProcAllowEvents, */
|
||||
SProcSetSelectionOwner,
|
||||
SProcResourceReq, /* SProcGetSelectionOwner, */
|
||||
SProcConvertSelection,
|
||||
SProcSendEvent, /* 25 */
|
||||
SProcGrabPointer,
|
||||
SProcResourceReq, /* SProcUngrabPointer, */
|
||||
SProcGrabButton,
|
||||
SProcUngrabButton,
|
||||
SProcChangeActivePointerGrab, /* 30 */
|
||||
SProcGrabKeyboard,
|
||||
SProcResourceReq, /* SProcUngrabKeyboard, */
|
||||
SProcGrabKey,
|
||||
SProcUngrabKey,
|
||||
SProcResourceReq, /* 35 SProcAllowEvents, */
|
||||
SProcSimpleReq, /* SProcGrabServer, */
|
||||
SProcSimpleReq, /* SProcUngrabServer, */
|
||||
SProcResourceReq, /* SProcQueryPointer, */
|
||||
SProcGetMotionEvents, SProcTranslateCoords, /*40 */
|
||||
SProcWarpPointer, SProcSetInputFocus, SProcSimpleReq, /* SProcGetInputFocus, */
|
||||
SProcGetMotionEvents,
|
||||
SProcTranslateCoords, /*40 */
|
||||
SProcWarpPointer,
|
||||
SProcSetInputFocus,
|
||||
SProcSimpleReq, /* SProcGetInputFocus, */
|
||||
SProcSimpleReq, /* QueryKeymap, */
|
||||
SProcOpenFont, /* 45 */
|
||||
SProcResourceReq, /* SProcCloseFont, */
|
||||
SProcResourceReq, /* SProcQueryFont, */
|
||||
SProcResourceReq, /* SProcQueryTextExtents, */
|
||||
SProcListFonts, SProcListFontsWithInfo, /* 50 */
|
||||
SProcSetFontPath, SProcSimpleReq, /* GetFontPath, */
|
||||
SProcCreatePixmap, SProcResourceReq, /* SProcFreePixmap, */
|
||||
SProcListFonts,
|
||||
SProcListFontsWithInfo, /* 50 */
|
||||
SProcSetFontPath,
|
||||
SProcSimpleReq, /* GetFontPath, */
|
||||
SProcCreatePixmap,
|
||||
SProcResourceReq, /* SProcFreePixmap, */
|
||||
SProcCreateGC, /* 55 */
|
||||
SProcChangeGC, SProcCopyGC, SProcSetDashes, SProcSetClipRectangles, SProcResourceReq, /* 60 SProcFreeGC, */
|
||||
SProcClearToBackground, SProcCopyArea, SProcCopyPlane, SProcPoly, /* PolyPoint, */
|
||||
SProcChangeGC,
|
||||
SProcCopyGC,
|
||||
SProcSetDashes,
|
||||
SProcSetClipRectangles,
|
||||
SProcResourceReq, /* 60 SProcFreeGC, */
|
||||
SProcClearToBackground,
|
||||
SProcCopyArea,
|
||||
SProcCopyPlane,
|
||||
SProcPoly, /* PolyPoint, */
|
||||
SProcPoly, /* 65 PolyLine */
|
||||
SProcPoly, /* PolySegment, */
|
||||
SProcPoly, /* PolyRectangle, */
|
||||
SProcPoly, /* PolyArc, */
|
||||
SProcFillPoly, SProcPoly, /* 70 PolyFillRectangle */
|
||||
SProcFillPoly,
|
||||
SProcPoly, /* 70 PolyFillRectangle */
|
||||
SProcPoly, /* PolyFillArc, */
|
||||
SProcPutImage, SProcGetImage, SProcPolyText, SProcPolyText, /* 75 */
|
||||
SProcImageText, SProcImageText, SProcCreateColormap, SProcResourceReq, /* SProcFreeColormap, */
|
||||
SProcPutImage,
|
||||
SProcGetImage,
|
||||
SProcPolyText,
|
||||
SProcPolyText, /* 75 */
|
||||
SProcImageText,
|
||||
SProcImageText,
|
||||
SProcCreateColormap,
|
||||
SProcResourceReq, /* SProcFreeColormap, */
|
||||
SProcCopyColormapAndFree, /* 80 */
|
||||
SProcResourceReq, /* SProcInstallColormap, */
|
||||
SProcResourceReq, /* SProcUninstallColormap, */
|
||||
SProcResourceReq, /* SProcListInstalledColormaps, */
|
||||
SProcAllocColor, SProcAllocNamedColor, /* 85 */
|
||||
SProcAllocColorCells, SProcAllocColorPlanes, SProcFreeColors, SProcStoreColors, SProcStoreNamedColor, /* 90 */
|
||||
SProcQueryColors, SProcLookupColor, SProcCreateCursor, SProcCreateGlyphCursor, SProcResourceReq, /* 95 SProcFreeCursor, */
|
||||
SProcRecolorCursor, SProcQueryBestSize, SProcQueryExtension, SProcSimpleReq, /* ListExtensions, */
|
||||
SProcAllocColor,
|
||||
SProcAllocNamedColor, /* 85 */
|
||||
SProcAllocColorCells,
|
||||
SProcAllocColorPlanes,
|
||||
SProcFreeColors,
|
||||
SProcStoreColors,
|
||||
SProcStoreNamedColor, /* 90 */
|
||||
SProcQueryColors,
|
||||
SProcLookupColor,
|
||||
SProcCreateCursor,
|
||||
SProcCreateGlyphCursor,
|
||||
SProcResourceReq, /* 95 SProcFreeCursor, */
|
||||
SProcRecolorCursor,
|
||||
SProcQueryBestSize,
|
||||
SProcQueryExtension,
|
||||
SProcSimpleReq, /* ListExtensions, */
|
||||
SProcChangeKeyboardMapping, /* 100 */
|
||||
SProcSimpleReq, /* GetKeyboardMapping, */
|
||||
SProcChangeKeyboardControl, SProcSimpleReq, /* GetKeyboardControl, */
|
||||
SProcChangeKeyboardControl,
|
||||
SProcSimpleReq, /* GetKeyboardControl, */
|
||||
SProcSimpleReq, /* Bell, */
|
||||
SProcChangePointerControl, /* 105 */
|
||||
SProcSimpleReq, /* GetPointerControl, */
|
||||
SProcSetScreenSaver, SProcSimpleReq, /* GetScreenSaver, */
|
||||
SProcChangeHosts, SProcSimpleReq, /* 110 ListHosts, */
|
||||
SProcSetScreenSaver,
|
||||
SProcSimpleReq, /* GetScreenSaver, */
|
||||
SProcChangeHosts,
|
||||
SProcSimpleReq, /* 110 ListHosts, */
|
||||
SProcSimpleReq, /* SProcChangeAccessControl, */
|
||||
SProcSimpleReq, /* SProcChangeCloseDownMode, */
|
||||
SProcResourceReq, /* SProcKillClient, */
|
||||
SProcRotateProperties, SProcSimpleReq, /* 115 ForceScreenSaver */
|
||||
SProcRotateProperties,
|
||||
SProcSimpleReq, /* 115 ForceScreenSaver */
|
||||
SProcSimpleReq, /* SetPointerMapping, */
|
||||
SProcSimpleReq, /* GetPointerMapping, */
|
||||
SProcSimpleReq, /* SetModifierMapping, */
|
||||
SProcSimpleReq, /* GetModifierMapping, */
|
||||
ProcBadRequest, /* 120 */
|
||||
ProcBadRequest, ProcBadRequest, ProcBadRequest, ProcBadRequest, ProcBadRequest, /* 125 */
|
||||
ProcBadRequest,
|
||||
ProcBadRequest,
|
||||
ProcBadRequest,
|
||||
ProcBadRequest,
|
||||
ProcBadRequest,
|
||||
ProcBadRequest, /* 125 */
|
||||
ProcBadRequest,
|
||||
SProcNoOperation,
|
||||
ProcBadRequest,
|
||||
ProcBadRequest,
|
||||
|
@ -415,7 +576,11 @@ ProcBadRequest,
|
|||
ProcBadRequest,
|
||||
ProcBadRequest,
|
||||
ProcBadRequest,
|
||||
ProcBadRequest, ProcBadRequest, ProcBadRequest, ProcBadRequest};
|
||||
ProcBadRequest,
|
||||
ProcBadRequest,
|
||||
ProcBadRequest,
|
||||
ProcBadRequest
|
||||
};
|
||||
|
||||
EventSwapPtr EventSwapVector[MAXEVENTS] = {
|
||||
(EventSwapPtr) SErrorEvent,
|
||||
|
|
Loading…
Reference in New Issue