#FILE "fc.c" #BEGIN #END 54 #BEGIN "stdio.h" asm("include (\"stdio.h\",(0,0,0))") typedef int **FILE; extern FILE *stdin, *stdout, *stderr; extern FILE *fopen(), *freopen(), *tmpfile(); extern char *fgets(), *gets(); extern long ftell(); extern char *sprintf(); #END 17 "fc.c" #BEGIN "strings.h" asm("include (\"strings.h\",(0,0,0))") extern char *strcat(), *strncat(), *strcpy(), *strncpy(), *index(), *rindex(); #END 19 "fc.c" #BEGIN #END 47 #BEGIN #END 24 extern char *malloc(), *realloc(); #BEGIN "misc.h" asm("include (\"misc.h\",(0,0,0))") extern unsigned long globalSerialNumber; typedef unsigned char *pointer; typedef int Bool; typedef long PIXEL; typedef int ATOM; #FILE "os.h" asm("include (\"os.h\",(0,0,0))") #FILE "misc.h" asm("include (\"misc.h\",(0,0,0))") #FILE "os.h" typedef pointer FID; typedef struct ←FontPathRec *FontPathPtr; typedef struct ←NewClientRec *NewClientPtr; extern char *malloc(); extern char *realloc(); extern long random(); extern void FreeFontRecord(); extern void OnlyListenToOneClient(); extern void ListenToAllClients(); extern void SetFontPath(); extern void CreateWellKnownSockets(); extern Bool CloseDownConnection(); extern FID FiOpenForRead(); extern int FiRead(); extern int FiClose(); extern void SetDefaultFontPath(); extern void OsInit(); extern long GetTimeInMillis(); #FILE "misc.h" typedef struct ←DDXPoint *DDXPointPtr; typedef struct ←Box *BoxPtr; typedef struct ←Rectangle *RectanglePtr; #END 16 "fc.c" #BEGIN "X.h" asm("include (\"X.h\",(0,0,0))") typedef unsigned long XID; typedef XID Window; typedef XID Drawable; typedef XID Font; typedef XID Pixmap; typedef XID Cursor; typedef XID Colormap; typedef XID GContext; typedef XID KeySym; typedef unsigned long Mask; typedef unsigned long Atom; typedef unsigned long VisualID; typedef unsigned long Time; typedef unsigned char KeyCode; #END 13 "fc.c" #BEGIN "Xproto.h" asm("include (\"Xproto.h\",(0,0,0))") #FILE "Xmd.h" asm("include (\"Xmd.h\",(0,0,0))") typedef long INT32; typedef short INT16; typedef char INT8; typedef unsigned long CARD32; typedef unsigned short CARD16; typedef unsigned char CARD8; typedef unsigned long BITS32; typedef unsigned short BITS16; typedef unsigned char BYTE; typedef unsigned char BOOL; typedef struct ←PaddingInfo { int scanlinePad; int bitmapPadLog2; } PaddingInfo; extern PaddingInfo PixmapWidthPaddingInfo[]; #FILE "Xproto.h" #FILE "Xprotostr.h" asm("include (\"Xprotostr.h\",(0,0,0))") #FILE "Xmd.h" asm("include (\"Xmd.h\",(0,0,0))") #FILE "Xprotostr.h" typedef struct ←xSegment { INT16 x1, y1, x2, y2; } xSegment; typedef struct ←xPoint { INT16 x,y; } xPoint; typedef struct ←xRectangle { INT16 x, y; CARD16 width, height; } xRectangle; typedef struct ←xArc { INT16 x, y; CARD16 width, height; INT16 angle1, angle2; } xArc; #FILE "Xproto.h" typedef CARD16 KeyButMask; typedef struct { int byteOrder :8; int pad :8; CARD16 majorVersion , minorVersion ; CARD16 nbytesAuthProto ; CARD16 nbytesAuthString ; CARD16 pad2; } xConnClientPrefix; typedef struct { int success :8; int pad1 :8; CARD16 majorVersion , minorVersion ; CARD16 length ; } xConnSetupPrefix; typedef struct { CARD32 release ; CARD32 ridBase , ridMask ; CARD32 motionBufferSize ; CARD16 nbytesVendor ; CARD16 maxRequestSize ; int numRoots :8; int numFormats :8; int imageByteOrder :8; int bitmapBitOrder :8; int bitmapScanlineUnit :8, bitmapScanlinePad :8; int minKeyCode :8, maxKeyCode :8; CARD32 pad2 ; } xConnSetup; typedef struct { int depth :8; int bitsPerPixel :8; int scanLinePad :8; int pad1 :8; CARD32 pad2 ; } xPixmapFormat; typedef struct { int depth :8; int pad1 :8; CARD16 nVisuals ; CARD32 pad2 ; } xDepth; typedef struct { CARD32 visualID ; int class :8; int bitsPerRGB :8; CARD16 colormapEntries ; CARD32 redMask , greenMask , blueMask ; CARD32 pad ; } xVisualType; typedef struct { CARD32 windowId ; CARD32 defaultColormap ; CARD32 whitePixel , blackPixel ; CARD32 currentInputMask ; CARD16 pixWidth , pixHeight ; CARD16 mmWidth , mmHeight ; CARD16 minInstalledMaps , maxInstalledMaps ; CARD32 rootVisualID ; int backingStore :8; int saveUnders :8; int rootDepth :8; int nDepths :8; } xWindowRoot; typedef struct { CARD32 time ; CARD16 x , y ; } xTimecoord; typedef struct { int family :8; int pad :8; CARD16 length ; } xHostEntry; typedef struct { INT16 leftSideBearing , rightSideBearing , characterWidth , ascent , descent ; CARD16 attributes ; } xCharInfo; typedef struct { CARD32 name ; CARD32 value ; } xFontProp; typedef struct { int len :8; int delta :8; } xTextElt; typedef struct { CARD32 pixel ; CARD16 red , green , blue ; int flags :8; int pad :8; } xColorItem; typedef struct { CARD16 red , green , blue , pad ; } xrgb; typedef int KEYCODE; typedef struct { int type :8; int errorCode :8; CARD16 sequenceNumber ; CARD32 resourceID ; CARD16 minorCode ; int majorCode :8; int pad1 :8; CARD32 pad3 ; CARD32 pad4 ; CARD32 pad5 ; CARD32 pad6 ; CARD32 pad7 ; } xError; typedef struct { int reqType :8; int data :8; CARD16 length ; } xReq; typedef struct { int reqType :8; int pad :8; CARD16 length ; CARD32 id; } xResourceReq; typedef struct { int reqType :8; int depth :8; CARD16 length ; CARD32 wid , parent ; INT16 x , y ; CARD16 width , height , borderWidth ; CARD16 class ; CARD32 visual ; CARD32 mask ; } xCreateWindowReq; typedef struct { int reqType :8; int pad :8; CARD16 length ; CARD32 window ; CARD32 valueMask ; } xChangeWindowAttributesReq; typedef struct { int reqType :8; int mode :8; CARD16 length ; CARD32 window ; } xChangeSaveSetReq; typedef struct { int reqType :8; int pad :8; CARD16 length ; CARD32 window , parent ; INT16 x , y ; } xReparentWindowReq; typedef struct { int reqType :8; int pad :8; CARD16 length ; CARD32 window ; CARD16 mask ; CARD16 pad2 ; } xConfigureWindowReq; typedef struct { int reqType :8; int direction :8; CARD16 length ; CARD32 window ; } xCirculateWindowReq; typedef struct { int reqType :8; int onlyIfExists :8; CARD16 length ; CARD16 nbytes ; CARD16 pad ; } xInternAtomReq; typedef struct { int reqType :8; int mode :8; CARD16 length ; CARD32 window ; CARD32 property , type ; int format :8; int pad[3]; CARD32 nUnits ; } xChangePropertyReq; typedef struct { int reqType :8; int pad :8; CARD16 length ; CARD32 window ; CARD32 property ; } xDeletePropertyReq; typedef struct { int reqType :8; int delete :8; CARD16 length ; CARD32 window ; CARD32 property , type ; CARD32 longOffset ; CARD32 longLength ; } xGetPropertyReq; typedef struct { int reqType :8; int pad :8; CARD16 length ; CARD32 window ; CARD32 selection ; CARD32 time ; } xSetSelectionOwnerReq; typedef struct { int reqType :8; int pad :8; CARD16 length ; CARD32 requestor ; CARD32 selection , target , property ; CARD32 time ; } xConvertSelectionReq; typedef struct { int reqType :8; int ownerEvents :8; CARD16 length ; CARD32 grabWindow ; CARD16 eventMask ; int pointerMode :8, keyboardMode :8; CARD32 confineTo ; CARD32 cursor ; CARD32 time ; } xGrabPointerReq; typedef struct { int reqType :8; int ownerEvents :8; CARD16 length ; CARD32 grabWindow ; CARD16 eventMask ; int pointerMode :8, keyboardMode :8; CARD32 confineTo ; CARD32 cursor ; int button :8; int pad :8; CARD16 modifiers ; } xGrabButtonReq; typedef struct { int reqType :8; int button :8; CARD16 length ; CARD32 grabWindow ; CARD16 modifiers ; CARD16 pad ; } xUngrabButtonReq; typedef struct { int reqType :8; int pad :8; CARD16 length ; CARD32 cursor ; CARD32 time ; CARD16 eventMask ; CARD16 pad2 ; } xChangeActivePointerGrabReq; typedef struct { int reqType :8; int ownerEvents :8; CARD16 length ; CARD32 grabWindow ; CARD32 time ; int pointerMode :8, keyboardMode :8; CARD16 pad ; } xGrabKeyboardReq; typedef struct { int reqType :8; int ownerEvents :8; CARD16 length ; CARD32 grabWindow ; CARD16 modifiers ; int key :8; int pointerMode :8, keyboardMode :8; int pad1 :8, pad2 :8, pad3 :8; } xGrabKeyReq; typedef struct { int reqType :8; int key :8; CARD16 length ; CARD32 grabWindow ; CARD16 modifiers ; CARD16 pad ; } xUngrabKeyReq; typedef struct { int reqType :8; int mode :8; CARD16 length ; CARD32 time ; } xAllowEventsReq; typedef struct { int reqType :8; int pad :8; CARD16 length ; CARD32 window ; CARD32 start , stop ; } xGetMotionEventsReq; typedef struct { int reqType :8; int pad :8; CARD16 length ; CARD32 srcWid , dstWid ; INT16 srcX , srcY ; } xTranslateCoordsReq; typedef struct { int reqType :8; int pad :8; CARD16 length ; CARD32 srcWid , dstWid ; INT16 srcX , srcY ; CARD16 srcWidth , srcHeight ; INT16 dstX , dstY ; } xWarpPointerReq; typedef struct { int reqType :8; int revertTo :8; CARD16 length ; CARD32 focus ; CARD32 time ; } xSetInputFocusReq; typedef struct { int reqType :8; int pad :8; CARD16 length ; CARD32 fid ; CARD16 nbytes ; int pad1 :8, pad2 :8; } xOpenFontReq; typedef struct { int reqType :8; int oddLength :8; CARD16 length ; CARD32 fid ; } xQueryTextExtentsReq; typedef struct { int reqType :8; int pad :8; CARD16 length ; CARD16 maxNames ; CARD16 nbytes ; } xListFontsReq; typedef xListFontsReq xListFontsWithInfoReq; typedef struct { int reqType :8; int pad :8; CARD16 length ; CARD16 nFonts ; int pad1 :8, pad2 :8; } xSetFontPathReq; typedef struct { int reqType :8; int depth :8; CARD16 length ; CARD32 pid ; CARD32 drawable ; CARD16 width , height ; } xCreatePixmapReq; typedef struct { int reqType :8; int pad :8; CARD16 length ; CARD32 gc ; CARD32 drawable ; CARD32 mask ; } xCreateGCReq; typedef struct { int reqType :8; int pad :8; CARD16 length ; CARD32 gc ; CARD32 mask ; } xChangeGCReq; typedef struct { int reqType :8; int pad :8; CARD16 length ; CARD32 srcGC , dstGC ; CARD32 mask ; } xCopyGCReq; typedef struct { int reqType :8; int pad :8; CARD16 length ; CARD32 gc ; CARD16 dashOffset ; CARD16 nDashes ; } xSetDashesReq; typedef struct { int reqType :8; int ordering :8; CARD16 length ; CARD32 gc