/***********************************************************
Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
and the Massachusetts Institute of Technology, Cambridge, Massachusetts.

                        All Rights Reserved

Permission to use, copy, modify, and distribute this software and its 
documentation for any purpose and without fee is hereby granted, 
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in 
supporting documentation, and that the names of Digital or MIT not be
used in advertising or publicity pertaining to distribution of the
software without specific, written prior permission.  

DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.

******************************************************************/
/* $Header: tables.c,v 1.11 87/06/05 14:59:10 johnsson Exp $ */

extern int    ProcBadRequest(), ProcCreateWindow(),
    ProcChangeWindowAttributes(), ProcGetWindowAttributes(),
    ProcDestroyWindow(), ProcDestroySubwindows(), ProcChangeSaveSet(),
    ProcReparentWindow(), ProcMapWindow(), ProcMapSubwindows(),
    ProcUnmapWindow(), ProcUnmapSubwindows(), ProcConfigureWindow(),
    ProcCirculateWindow(), ProcGetGeometry(), ProcQueryTree(),
    ProcInternAtom(), ProcGetAtomName(), ProcChangeProperty(),
    ProcDeleteProperty(), ProcGetProperty(), ProcListProperties(),
    ProcSetSelectionOwner(), ProcGetSelectionOwner(), ProcConvertSelection(),
    ProcSendEvent(), ProcGrabPointer(), ProcUngrabPointer(),
    ProcGrabButton(), ProcUngrabButton(), ProcChangeActivePointerGrab(),
    ProcGrabKeyboard(), ProcUngrabKeyboard(), ProcGrabKey(),
    ProcUngrabKey(), ProcAllowEvents(), ProcGrabServer(),
    ProcUngrabServer(), ProcQueryPointer(), ProcGetMotionEvents(),
    ProcTranslateCoords(), ProcWarpPointer(), ProcSetInputFocus(),
    ProcGetInputFocus(), ProcQueryKeymap(), ProcOpenFont(),
    ProcCloseFont(), ProcQueryFont(), ProcQueryTextExtents(),
    ProcListFonts(), ProcListFontsWithInfo(), ProcSetFontPath(),
    ProcGetFontPath(), ProcCreatePixmap(), ProcFreePixmap(),
    ProcCreateGC(), ProcChangeGC(), ProcCopyGC(),
    ProcSetDashes(), ProcSetClipRectangles(), ProcFreeGC(),
    ProcClearToBackground(), ProcCopyArea(), ProcCopyPlane(),
    ProcPolyPoint(), ProcPolyLine(), ProcPolySegment(),
    ProcPolyRectangle(), ProcPolyArc(), ProcFillPoly(),
    ProcPolyFillRectangle(), ProcPolyFillArc(), ProcPutImage(),
    ProcGetImage(), ProcPolyText(),
    ProcImageText(), ProcCreateColormap(),
    ProcFreeColormap(), ProcCopyColormapAndFree(), ProcInstallColormap(),
    ProcUninstallColormap(), ProcListInstalledColormaps(), ProcAllocColor(),
    ProcAllocNamedColor(), ProcAllocColorCells(), ProcAllocColorPlanes(),
    ProcFreeColors(), ProcStoreColors(), ProcStoreNamedColor(),
    ProcQueryColors(), ProcLookupColor(), ProcCreateCursor(),
    ProcCreateGlyphCursor(), ProcFreeCursor(), ProcRecolorCursor(),
    ProcQueryBestSize(), ProcQueryExtension(), ProcListExtensions(),
    ProcChangeKeyboardMapping(), ProcSetPointerMapping(),
    ProcGetKeyboardMapping(), ProcGetPointerMapping(),
    ProcChangeKeyboardControl(),
    ProcGetKeyboardControl(), ProcBell(), ProcChangePointerControl(),
    ProcGetPointerControl(), ProcSetScreenSaver(), ProcGetScreenSaver(),
    ProcChangeHosts(), ProcListHosts(), ProcChangeAccessControl(),
    ProcChangeCloseDownMode(), ProcKillClient(),
    ProcRotateProperties(), ProcForceScreenSaver(),
    ProcSetModifierMapping(), ProcGetModifierMapping(),
    ProcNoOperation();

extern int    SProcSProcBadRequest(), SProcCreateWindow(),
    SProcChangeWindowAttributes(), SProcGetWindowAttributes(),
    SProcDestroyWindow(), SProcDestroySubwindows(), SProcChangeSaveSet(),
    SProcReparentWindow(), SProcMapWindow(), SProcMapSubwindows(),
    SProcUnmapWindow(), SProcUnmapSubwindows(), SProcConfigureWindow(),
    SProcCirculateWindow(), SProcGetGeometry(), SProcQueryTree(),
    SProcInternAtom(), SProcGetAtomName(), SProcChangeProperty(),
    SProcDeleteProperty(), SProcGetProperty(), SProcListProperties(),
    SProcSetSelectionOwner(), SProcGetSelectionOwner(),
    SProcConvertSelection(),
    SProcSendEvent(), SProcGrabPointer(), SProcUngrabPointer(),
    SProcGrabButton(), SProcUngrabButton(), SProcChangeActivePointerGrab(),
    SProcGrabKeyboard(), SProcUngrabKeyboard(), SProcGrabKey(),
    SProcUngrabKey(), SProcAllowEvents(), SProcGrabServer(),
    SProcUngrabServer(), SProcQueryPointer(), SProcGetMotionEvents(),
    SProcTranslateCoords(), SProcWarpPointer(), SProcSetInputFocus(),
    SProcGetInputFocus(), SProcQueryKeymap(), SProcOpenFont(),
    SProcCloseFont(), SProcQueryFont(), SProcQueryTextExtents(),
    SProcListFonts(), SProcListFontsWithInfo(), SProcSetFontPath(),
    SProcGetFontPath(), SProcCreatePixmap(), SProcFreePixmap(),
    SProcCreateGC(), SProcChangeGC(), SProcCopyGC(),
    SProcSetDashes(), SProcSetClipRectangles(), SProcFreeGC(),
    SProcClearToBackground(), SProcCopyArea(), SProcCopyPlane(),
    SProcPolyPoint(), SProcPolyLine(), SProcPolySegment(),
    SProcPolyRectangle(), SProcPolyArc(), SProcFillPoly(),
    SProcPolyFillRectangle(), SProcPolyFillArc(), SProcPutImage(),
    SProcGetImage(), SProcPolyText(), 
    SProcImageText(), SProcCreateColormap(),
    SProcFreeColormap(), SProcCopyColormapAndFree(), SProcInstallColormap(),
    SProcUninstallColormap(), SProcListInstalledColormaps(), SProcAllocColor(),
    SProcAllocNamedColor(), SProcAllocColorCells(), SProcAllocColorPlanes(),
    SProcFreeColors(), SProcStoreColors(), SProcStoreNamedColor(),
    SProcQueryColors(), SProcLookupColor(), SProcCreateCursor(),
    SProcCreateGlyphCursor(), SProcFreeCursor(), SProcRecolorCursor(),
    SProcQueryBestSize(), SProcQueryExtension(), SProcListExtensions(),
    SProcChangeKeyboardMapping(), SProcSetPointerMapping(),
    SProcGetKeyboardMapping(), SProcGetPointerMapping(),
    SProcChangeKeyboardControl(),
    SProcGetKeyboardControl(), SProcBell(), SProcChangePointerControl(),
    SProcGetPointerControl(), SProcSetScreenSaver(), SProcGetScreenSaver(),
    SProcChangeHosts(), SProcListHosts(), SProcChangeAccessControl(),
    SProcChangeCloseDownMode(), SProcKillClient(), 
    SProcRotateProperties(), SProcForceScreenSaver(),
    SProcSetModifierMapping(), SProcGetModifierMapping(),
    SProcNoOperation();

extern void 
    SErrorEvent(), NotImplemented(), SKeyButtonPtrEvent(), SKeyButtonPtrEvent(),
    SKeyButtonPtrEvent(), SKeyButtonPtrEvent(), SKeyButtonPtrEvent(),
    SEnterLeaveEvent(), SEnterLeaveEvent(), SFocusEvent(),
    SFocusEvent(), SKeymapNotifyEvent(), SExposeEvent(),
    SGraphicsExposureEvent(), SNoExposureEvent(), SVisibilityEvent(),
    SCreateNotifyEvent(), SDestroyNotifyEvent(), SUnmapNotifyEvent(),
    SMapNotifyEvent(), SMapRequestEvent(), SReparentEvent(),
    SConfigureNotifyEvent(), SConfigureRequestEvent(), SGravityEvent(),
    SResizeRequestEvent(), SCirculateEvent(), SCirculateEvent(),
    SPropertyEvent(), SSelectionClearEvent(), SSelectionRequestEvent(),
    SSelectionNotifyEvent(), SColormapEvent(), SClientMessageEvent();

extern void
    SBadRequestReply(), NotImplemented(),
    SGetWindowAttributesReply(), SGetGeometryReply(), SQueryTreeReply(),
    SInternAtomReply(), SGetAtomNameReply(), SGetPropertyReply(),
    SListPropertiesReply(), 
    SGetSelectionOwnerReply(), SGrabPointerReply(), SGrabKeyboardReply(),
    SQueryPointerReply(), SGetMotionEventsReply(), STranslateCoordsReply(),
    SGetInputFocusReply(), SQueryKeymapReply(), SQueryFontReply(),
    SQueryTextExtentsReply(), SListFontsReply(), SListFontsWithInfoReply(),
    SGetFontPathReply(), SGetImageReply(), SListInstalledColormapsReply(),
    SAllocColorReply(), SAllocNamedColorReply(), SAllocColorCellsReply(),
    SAllocColorPlanesReply(), SQueryColorsReply(), SLookupColorReply(),
    SQueryBestSizeReply(), SQueryExtensionReply(), SListExtensionsReply(),
    SGetKeyboardMappingReply(), SGetPointerMappingReply(),
    SGetKeyboardControlReply(), SGetPointerControlReply(),
    SSetModifierMappingReply(), SGetModifierMappingReply(),
    SGetScreenSaverReply(), SListHostsReply();
int (* SwappedProcVector[256]) () =
{
    ProcBadRequest,
    SProcCreateWindow,
    SProcChangeWindowAttributes,
    SProcGetWindowAttributes,
    SProcDestroyWindow, 		/* 5 */
    SProcDestroySubwindows,
    SProcChangeSaveSet,
    SProcReparentWindow,
    SProcMapWindow,
    SProcMapSubwindows,			/* 10 */
    SProcUnmapWindow,
    SProcUnmapSubwindows,
    SProcConfigureWindow,
    SProcCirculateWindow,
    SProcGetGeometry,			/* 15 */
    SProcQueryTree,
    SProcInternAtom,
    SProcGetAtomName,
    SProcChangeProperty,
    SProcDeleteProperty,		/* 20 */
    SProcGetProperty,
    SProcListProperties,
    SProcSetSelectionOwner,
    SProcGetSelectionOwner,
    SProcConvertSelection,		/* 25 */
    SProcSendEvent,
    SProcGrabPointer,
    SProcUngrabPointer,
    SProcGrabButton,
    SProcUngrabButton,			/* 30 */
    SProcChangeActivePointerGrab,
    SProcGrabKeyboard,
    SProcUngrabKeyboard,
    SProcGrabKey,
    SProcUngrabKey,			/* 35 */
    SProcAllowEvents,
    SProcGrabServer,
    SProcUngrabServer,
    SProcQueryPointer,
    SProcGetMotionEvents,		/*40 */
    SProcTranslateCoords,
    SProcWarpPointer,
    SProcSetInputFocus,
    SProcGetInputFocus,
    SProcQueryKeymap,			/* 45 */
    SProcOpenFont,
    SProcCloseFont,
    SProcQueryFont,
    SProcQueryTextExtents,
    SProcListFonts,			/* 50 */
    SProcListFontsWithInfo,
    SProcSetFontPath,
    SProcGetFontPath,
    SProcCreatePixmap,
    SProcFreePixmap,
    SProcCreateGC,
    SProcChangeGC,
    SProcCopyGC,
    SProcSetDashes,
    SProcSetClipRectangles,
    SProcFreeGC,
    SProcClearToBackground,
    SProcCopyArea,
    SProcCopyPlane,
    SProcPolyPoint,
    SProcPolyLine,
    SProcPolySegment,
    SProcPolyRectangle,
    SProcPolyArc,
    SProcFillPoly,
    SProcPolyFillRectangle,
    SProcPolyFillArc,
    SProcPutImage,
    SProcGetImage,
    SProcPolyText,
    SProcPolyText,
    SProcImageText,
    SProcImageText,
    SProcCreateColormap,
    SProcFreeColormap,
    SProcCopyColormapAndFree,
    SProcInstallColormap,
    SProcUninstallColormap,
    SProcListInstalledColormaps,
    SProcAllocColor,
    SProcAllocNamedColor,
    SProcAllocColorCells,
    SProcAllocColorPlanes,
    SProcFreeColors,
    SProcStoreColors,
    SProcStoreNamedColor,
    SProcQueryColors,
    SProcLookupColor,
    SProcCreateCursor,
    SProcCreateGlyphCursor,
    SProcFreeCursor,
    SProcRecolorCursor,
    SProcQueryBestSize,
    SProcQueryExtension,
    SProcListExtensions,
    SProcChangeKeyboardMapping,
    SProcGetKeyboardMapping,
    SProcChangeKeyboardControl,
    SProcGetKeyboardControl,
    SProcBell,
    SProcChangePointerControl,
    SProcGetPointerControl,
    SProcSetScreenSaver,
    SProcGetScreenSaver,
    SProcChangeHosts,
    SProcListHosts,
    SProcChangeAccessControl,
    SProcChangeCloseDownMode,
    SProcKillClient,
    SProcRotateProperties,
    SProcForceScreenSaver,
    SProcSetPointerMapping,
    SProcGetPointerMapping,
    SProcSetModifierMapping,
    SProcGetModifierMapping,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    SProcNoOperation
};