00001
00002
00003 #include "../c/eus.h"
00004 #include <dlfcn.h>
00005 #pragma init (init_object_module)
00006
00007
00008
00009
00010
00011
00012
00013
00014 extern XDeleteContext;
00015 extern XFindContext;
00016 extern XSaveContext;
00017 extern XrmParseCommand;
00018 extern Xpermalloc;
00019 extern XrmQuarkToString;
00020 extern XrmStringToQuark;
00021 extern XrmUniqueQuark;
00022 extern XAllocColorCells;
00023 extern XAllocColorPlanes;
00024 extern XAllowEvents;
00025 extern XAutoRepeatOff;
00026 extern XAutoRepeatOn;
00027 extern XSetWindowBackground;
00028 extern XSetWindowBorderWidth;
00029 extern XBell;
00030 extern XSetWindowBorder;
00031 extern XDisableAccessControl;
00032 extern XEnableAccessControl;
00033 extern XSetAccessControl;
00034 extern XSetCloseDownMode;
00035 extern XChangeActivePointerGrab;
00036 extern XSetWindowColormap;
00037 extern XChangeGC;
00038 extern XChangeKeyboardControl;
00039 extern XChangePointerControl;
00040 extern XChangeProperty;
00041 extern XAddToSaveSet;
00042 extern XChangeSaveSet;
00043 extern XRemoveFromSaveSet;
00044 extern XChangeWindowAttributes;
00045 extern XResizeWindow;
00046 extern XCheckIfEvent;
00047 extern XCheckMaskEvent;
00048 extern XCheckWindowEvent;
00049 extern XCheckTypedEvent;
00050 extern XCheckTypedWindowEvent;
00051 extern XCirculateSubwindows;
00052 extern XCirculateSubwindowsDown;
00053 extern XCirculateSubwindowsUp;
00054 extern XCloseDisplay;
00055 extern XClearWindow;
00056 extern XClearArea;
00057 extern XMoveResizeWindow;
00058 extern XConvertSelection;
00059 extern XCopyArea;
00060 extern XCopyColormapAndFree;
00061 extern XCopyGC;
00062 extern XCopyPlane;
00063 extern XCreateBitmapFromData;
00064 extern XCreateColormap;
00065 extern XCreatePixmapCursor;
00066 extern XCreateGC;
00067 extern XGContextFromGC;
00068 extern XCreateGlyphCursor;
00069 extern XCreatePixmapFromBitmapData;
00070 extern XCreatePixmap;
00071 extern XCreateSimpleWindow;
00072 extern XCreateFontCursor;
00073 extern XDefineCursor;
00074 extern XDeleteProperty;
00075 extern XDestroySubwindows;
00076 extern XDestroyWindow;
00077 extern XDisplayName;
00078 extern XDrawArc;
00079 extern XDrawArcs;
00080 extern XDrawLine;
00081 extern XDrawLines;
00082 extern XDrawPoint;
00083 extern XDrawPoints;
00084 extern XDrawRectangle;
00085 extern XDrawRectangles;
00086 extern XDrawSegments;
00087 extern XGetErrorDatabaseText;
00088 extern XGetErrorText;
00089 extern XSetErrorHandler;
00090 extern XSetIOErrorHandler;
00091 extern XFetchName;
00092 extern XGetIconName;
00093 extern XFillArc;
00094 extern XFillArcs;
00095 extern XFillPolygon;
00096 extern XFillRectangle;
00097 extern XFillRectangles;
00098 extern XFlush;
00099 extern XFreeFont;
00100 extern XLoadQueryFont;
00101 extern XQueryFont;
00102 extern XFreeFontNames;
00103 extern XListFonts;
00104 extern XFreeFontInfo;
00105 extern XListFontsWithInfo;
00106 extern XFreeColormap;
00107 extern XFreeColors;
00108 extern XFreeCursor;
00109 extern XFreeGC;
00110 extern XFreePixmap;
00111 extern XActivateScreenSaver;
00112 extern XForceScreenSaver;
00113 extern XResetScreenSaver;
00114 extern XSetArcMode;
00115 extern XSetFillRule;
00116 extern XSetFillStyle;
00117 extern XSetGraphicsExposures;
00118 extern XSetSubwindowMode;
00119 extern XGeometry;
00120 extern XGetAtomName;
00121 extern XAllocNamedColor;
00122 extern XGetDefault;
00123 extern XFreeFontPath;
00124 extern XGetFontPath;
00125 extern XGetFontProperty;
00126 extern XGetGeometry;
00127 extern XGetGCValues;
00128 extern XAllocColor;
00129 extern XGetClassHint;
00130 extern XGetIconSizes;
00131 extern XGetNormalHints;
00132 extern XGetSizeHints;
00133 extern XGetTransientForHint;
00134 extern XGetWMHints;
00135 extern XGetZoomHints;
00136 extern XGetInputFocus;
00137 extern XGetImage;
00138 extern XGetSubImage;
00139 extern XGetKeyboardControl;
00140 extern XGetMotionEvents;
00141 extern XGetPointerControl;
00142 extern XGetKeyboardMapping;
00143 extern XGetPointerMapping;
00144 extern XGetWindowProperty;
00145 extern XGetSelectionOwner;
00146 extern XGetScreenSaver;
00147 extern XGetStandardColormap;
00148 extern XGetWindowAttributes;
00149 extern XGrabButton;
00150 extern XGrabKey;
00151 extern XGrabKeyboard;
00152 extern XGrabPointer;
00153 extern XGrabServer;
00154 extern XAddHost;
00155 extern XAddHosts;
00156 extern XRemoveHost;
00157 extern XRemoveHosts;
00158 extern XIfEvent;
00159 extern XCreateImage;
00160 extern XDrawImageString;
00161 extern XDrawImageString16;
00162 extern XESetCloseDisplay;
00163 extern XESetCopyGC;
00164 extern XESetCreateFont;
00165 extern XESetCreateGC;
00166 extern XESetError;
00167 extern XESetErrorString;
00168 extern XESetEventToWire;
00169 extern XESetFlushGC;
00170 extern XESetFreeFont;
00171 extern XESetFreeGC;
00172 extern XESetWireToEvent;
00173 extern XInitExtension;
00174 extern XInstallColormap;
00175 extern XInternAtom;
00176
00177 #ifdef X_V11R2
00178 extern MatchEvent;
00179 #endif
00180
00181 extern XKeycodeToKeysym;
00182 extern XKeysymToKeycode;
00183 extern XLookupKeysym;
00184 extern XLookupString;
00185 extern XRebindKeysym;
00186 extern XRefreshKeyboardMapping;
00187
00188 extern XKillClient;
00189 extern XListHosts;
00190 extern XListInstalledColormaps;
00191 extern XListProperties;
00192 extern XFreeExtensionList;
00193 extern XListExtensions;
00194 extern XLoadFont;
00195 extern XLookupColor;
00196 extern XLowerWindow;
00197 extern XAddPixel;
00198 extern XAllPlanes;
00199 extern XBitmapBitOrder;
00200 extern XBitmapPad;
00201 extern XBitmapUnit;
00202 extern XBlackPixel;
00203 extern XBlackPixelOfScreen;
00204 extern XCellsOfScreen;
00205 extern XConnectionNumber;
00206 extern XDefaultColormap;
00207 extern XDefaultColormapOfScreen;
00208 extern XDefaultDepth;
00209 extern XDefaultDepthOfScreen;
00210 extern XDefaultGC;
00211 extern XDefaultGCOfScreen;
00212 extern XDefaultRootWindow;
00213 extern XDefaultScreen;
00214 extern XDefaultScreenOfDisplay;
00215 extern XDefaultVisual;
00216 extern XDefaultVisualOfScreen;
00217 extern XDestroyImage;
00218 extern XDisplayCells;
00219 extern XDisplayHeight;
00220 extern XDisplayHeightMM;
00221 extern XDisplayOfScreen;
00222 extern XDisplayPlanes;
00223 extern XDisplayString;
00224 extern XDisplayWidth;
00225 extern XDisplayWidthMM;
00226 extern XDoesBackingStore;
00227 extern XDoesSaveUnders;
00228 extern XEventMaskOfScreen;
00229 extern XGetPixel;
00230 extern XHeightMMOfScreen;
00231 extern XHeightOfScreen;
00232 extern XImageByteOrder;
00233 extern XLastKnownRequestProcessed;
00234 extern XMaxCmapsOfScreen;
00235 extern XMinCmapsOfScreen;
00236 extern XNextRequest;
00237 extern XNoOp;
00238 extern XPlanesOfScreen;
00239 extern XProtocolRevision;
00240 extern XProtocolVersion;
00241 extern XPutPixel;
00242 extern XQLength;
00243 extern XRootWindow;
00244 extern XRootWindowOfScreen;
00245 extern XScreenCount;
00246 extern XScreenOfDisplay;
00247 extern XServerVendor;
00248 extern XSubImage;
00249 extern XVendorRelease;
00250 extern XWhitePixel;
00251 extern XWhitePixelOfScreen;
00252 extern XWidthMMOfScreen;
00253 extern XWidthOfScreen;
00254 extern XMapRaised;
00255 extern XMapSubwindows;
00256 extern XMapWindow;
00257 extern XMaskEvent;
00258 extern XDeleteModifiermapEntry;
00259 extern XFreeModifiermap;
00260 extern XGetModifierMapping;
00261 extern XInsertModifiermapEntry;
00262 extern XNewModifiermap;
00263 extern XSetModifierMapping;
00264 extern XMoveWindow;
00265 extern XNextEvent;
00266 extern XOpenDisplay;
00267 extern XParseColor;
00268
00269 extern XParseGeometry;
00270 extern XPeekEvent;
00271 extern XPeekIfEvent;
00272 extern XEventsQueued;
00273 extern XPending;
00274 extern XSetWindowBackgroundPixmap;
00275 extern XSetWindowBorderPixmap;
00276 extern XPolygonRegion;
00277 extern XDrawText;
00278 extern XDrawText16;
00279 extern XPutBackEvent;
00280 extern XPutImage;
00281 extern XQueryBestSize;
00282 extern XQueryColor;
00283 extern XQueryColors;
00284 extern XQueryBestCursor;
00285 extern XQueryExtension;
00286 extern XQueryKeymap;
00287 extern XQueryPointer;
00288 extern XQueryBestStipple;
00289 extern XQueryTextExtents16;
00290 extern XQueryTextExtents;
00291 extern XQueryBestTile;
00292 extern XQueryTree;
00293 extern XRaiseWindow;
00294 extern XReadBitmapFile;
00295 extern XRecolorCursor;
00296 extern XConfigureWindow;
00297 extern XClipBox;
00298 extern XCreateRegion;
00299 extern XDestroyRegion;
00300 extern XEmptyRegion;
00301 extern XEqualRegion;
00302 extern XIntersectRegion;
00303 extern XOffsetRegion;
00304 extern XPointInRegion;
00305 extern XRectInRegion;
00306 extern XSetRegion;
00307 extern XShrinkRegion;
00308 extern XSubtractRegion;
00309 extern XUnionRectWithRegion;
00310 extern XUnionRegion;
00311 extern XXorRegion;
00312
00313 extern XReparentWindow;
00314 extern XRestackWindows;
00315 extern XRotateWindowProperties;
00316 extern XSelectInput;
00317 extern XSendEvent;
00318 extern XSetBackground;
00319 extern XSetClipRectangles;
00320 extern XSetClipMask;
00321 extern XSetClipOrigin;
00322 extern XSetDashes;
00323 extern XSetFontPath;
00324 extern XSetFont;
00325 extern XSetForeground;
00326 extern XSetFunction;
00327 extern XSetClassHint;
00328 extern XSetCommand;
00329 extern XSetIconSizes;
00330 extern XSetNormalHints;
00331 extern XSetSizeHints;
00332 extern XSetStandardProperties;
00333 extern XSetTransientForHint;
00334 extern XSetWMHints;
00335 extern XSetZoomHints;
00336 extern XSetInputFocus;
00337 extern XSetLineAttributes;
00338 extern XSetPlaneMask;
00339 extern XChangeKeyboardMapping;
00340 extern XSetPointerMapping;
00341 extern XSetSelectionOwner;
00342 extern XSetScreenSaver;
00343 extern XSetState;
00344 extern XSetStipple;
00345 extern XSetStandardColormap;
00346 extern XSetTile;
00347 extern XSetTSOrigin;
00348 extern XFetchBuffer;
00349 extern XFetchBytes;
00350 extern XRotateBuffers;
00351 extern XStoreBuffer;
00352 extern XStoreBytes;
00353 extern XStoreColor;
00354 extern XStoreColors;
00355 extern XStoreNamedColor;
00356 extern XSetIconName;
00357 extern XStoreName;
00358 extern XKeysymToString;
00359 extern XStringToKeysym;
00360 extern XSync;
00361 extern XSetAfterFunction;
00362 extern XSynchronize;
00363 extern XDrawString;
00364 extern XDrawString16;
00365 extern XTextExtents;
00366 extern XTextWidth;
00367 extern XTextExtents16;
00368 extern XTextWidth16;
00369 extern XTranslateCoordinates;
00370 extern XUndefineCursor;
00371 extern XUngrabButton;
00372 extern XUngrabKeyboard;
00373 extern XUngrabKey;
00374 extern XUngrabPointer;
00375 extern XUngrabServer;
00376 extern XUninstallColormap;
00377 extern XUnloadFont;
00378 extern XUnmapSubwindows;
00379 extern XUnmapWindow;
00380 extern XGetVisualInfo;
00381 extern XMatchVisualInfo;
00382 extern XWarpPointer;
00383 extern XWindowEvent;
00384 extern XCreateWindow;
00385 extern XWriteBitmapFile;
00386 extern XFree;
00387 extern XrmGetFileDatabase;
00388 extern XrmGetResource;
00389 extern XrmGetStringDatabase;
00390 extern XrmInitialize;
00391 extern XrmMergeDatabases;
00392 extern XrmPutFileDatabase;
00393 extern XrmPutLineResource;
00394 extern XrmPutResource;
00395 extern XrmPutStringResource;
00396 extern XrmQGetResource;
00397 extern XrmQGetSearchList;
00398 extern XrmQGetSearchResource;
00399 extern XrmQPutResource;
00400 extern XrmQPutStringResource;
00401 extern XrmStringToBindingQuarkList;
00402 extern XrmStringToQuarkList;
00403 #if X_V11R6_1
00404 extern XInitThreads;
00405 extern XLockDisplay;
00406 extern XUnlockDisplay;
00407 #endif
00408
00409
00410 extern pointer sysmod;
00411
00412 pointer defxforeign(ctx,xentry)
00413 register context *ctx;
00414 char *xentry;
00415 { pointer fc, xsym;
00416 eusinteger_t entry; int i, len;
00417 char lname[100];
00418 len=strlen(xentry);
00419 for (i=0; i<len-1; i++) lname[i]=toupper(xentry[i+1]);
00420 lname[i]=0;
00421 #if Cygwin
00422 eusinteger_t dlhandle;
00423 dlhandle=(eusinteger_t)dlopen("/usr/bin/cygX11-6.dll", RTLD_LAZY);
00424 if( dlhandle==0 )
00425 dlhandle=(eusinteger_t)dlopen("libX11.dll", RTLD_LAZY);
00426 entry=(eusinteger_t)dlsym(dlhandle, xentry);
00427 #elif Darwin
00428 eusinteger_t dlhandle;
00429 dlhandle=(eusinteger_t)dlopen("/opt/X11/lib/libX11.dylib", RTLD_LAZY);
00430 if( dlhandle==0 )
00431 dlhandle=(eusinteger_t)dlopen("libX11.dylib", RTLD_LAZY);
00432 entry=(eusinteger_t)dlsym(dlhandle, xentry);
00433 #else
00434 entry=(eusinteger_t)dlsym((void *)((eusinteger_t)(sysmod->c.ldmod.handle) & ~3), xentry);
00435 #endif
00436 if (entry){
00437 xsym=intern(ctx,lname, len-1, xpkg);
00438 fc=makeobject(C_FCODE);
00439 xsym->c.sym.spefunc=fc;
00440 fc->c.fcode.codevec=makeint(0);
00441 fc->c.fcode.quotevec=makeint(0);
00442 fc->c.fcode.subrtype=SUBR_FUNCTION;
00443 fc->c.fcode.paramtypes=NIL;
00444 fc->c.fcode.resulttype=K_INTEGER;
00445 fc->c.fcode.entry=makeint(entry>>2);
00446 fc->c.fcode.entry2=makeint(entry);
00447
00448
00449
00450
00451 export(xsym,xpkg);
00452 }
00453 return(xsym);}
00454
00455 pointer xforeign(ctx,n,argv)
00456 register context *ctx;
00457 int n;
00458 pointer argv[];
00459 {
00460 defxforeign(ctx,"XDeleteContext");
00461 defxforeign(ctx,"XFindContext");
00462 defxforeign(ctx,"XSaveContext");
00463 defxforeign(ctx,"XrmParseCommand");
00464 defxforeign(ctx,"Xpermalloc");
00465 defxforeign(ctx,"XrmQuarkToString");
00466 defxforeign(ctx,"XrmStringToQuark");
00467 defxforeign(ctx,"XrmUniqueQuark");
00468 defxforeign(ctx,"XAllocColorCells");
00469 defxforeign(ctx,"XAllocColorPlanes");
00470 defxforeign(ctx,"XAllowEvents");
00471 defxforeign(ctx,"XAutoRepeatOff");
00472 defxforeign(ctx,"XAutoRepeatOn");
00473 defxforeign(ctx,"XSetWindowBackground");
00474 defxforeign(ctx,"XSetWindowBorderWidth");
00475 defxforeign(ctx,"XBell");
00476 defxforeign(ctx,"XSetWindowBorder");
00477 defxforeign(ctx,"XDisableAccessControl");
00478 defxforeign(ctx,"XEnableAccessControl");
00479 defxforeign(ctx,"XSetAccessControl");
00480 defxforeign(ctx,"XSetCloseDownMode");
00481 defxforeign(ctx,"XChangeActivePointerGrab");
00482 defxforeign(ctx,"XSetWindowColormap");
00483 defxforeign(ctx,"XChangeGC");
00484 defxforeign(ctx,"XGetGCValues");
00485 defxforeign(ctx,"XChangeKeyboardControl");
00486 defxforeign(ctx,"XChangePointerControl");
00487 defxforeign(ctx,"XChangeProperty");
00488 defxforeign(ctx,"XAddToSaveSet");
00489 defxforeign(ctx,"XChangeSaveSet");
00490 defxforeign(ctx,"XRemoveFromSaveSet");
00491 defxforeign(ctx,"XChangeWindowAttributes");
00492 defxforeign(ctx,"XResizeWindow");
00493 defxforeign(ctx,"XCheckIfEvent");
00494 defxforeign(ctx,"XCheckMaskEvent");
00495 defxforeign(ctx,"XCheckWindowEvent");
00496 defxforeign(ctx,"XCheckTypedEvent");
00497 defxforeign(ctx,"XCheckTypedWindowEvent");
00498 defxforeign(ctx,"XCirculateSubwindows");
00499 defxforeign(ctx,"XCirculateSubwindowsDown");
00500 defxforeign(ctx,"XCirculateSubwindowsUp");
00501 defxforeign(ctx,"XCloseDisplay");
00502 defxforeign(ctx,"XClearWindow");
00503 defxforeign(ctx,"XClearArea");
00504 defxforeign(ctx,"XMoveResizeWindow");
00505 defxforeign(ctx,"XConvertSelection");
00506 defxforeign(ctx,"XCopyArea");
00507 defxforeign(ctx,"XCopyColormapAndFree");
00508 defxforeign(ctx,"XCopyGC");
00509 defxforeign(ctx,"XCopyPlane");
00510 defxforeign(ctx,"XCreateBitmapFromData");
00511 defxforeign(ctx,"XCreateColormap");
00512 defxforeign(ctx,"XCreatePixmapCursor");
00513 defxforeign(ctx,"XCreateGC");
00514 defxforeign(ctx,"XGContextFromGC");
00515 defxforeign(ctx,"XCreateGlyphCursor");
00516 defxforeign(ctx,"XCreatePixmapFromBitmapData");
00517 defxforeign(ctx,"XCreatePixmap");
00518 defxforeign(ctx,"XCreateSimpleWindow");
00519 defxforeign(ctx,"XCreateFontCursor");
00520 defxforeign(ctx,"XDefineCursor");
00521 defxforeign(ctx,"XDeleteProperty");
00522 defxforeign(ctx,"XDestroySubwindows");
00523 defxforeign(ctx,"XDestroyWindow");
00524 defxforeign(ctx,"XDisplayName");
00525 defxforeign(ctx,"XDrawArc");
00526 defxforeign(ctx,"XDrawArcs");
00527 defxforeign(ctx,"XDrawLine");
00528 defxforeign(ctx,"XDrawLines");
00529 defxforeign(ctx,"XDrawPoint");
00530 defxforeign(ctx,"XDrawPoints");
00531 defxforeign(ctx,"XDrawRectangle");
00532 defxforeign(ctx,"XDrawRectangles");
00533 defxforeign(ctx,"XDrawSegments");
00534 defxforeign(ctx,"XGetErrorDatabaseText");
00535 defxforeign(ctx,"XGetErrorText");
00536 defxforeign(ctx,"XSetErrorHandler");
00537 defxforeign(ctx,"XSetIOErrorHandler");
00538 defxforeign(ctx,"XFetchName");
00539 defxforeign(ctx,"XGetIconName");
00540 defxforeign(ctx,"XFillArc");
00541 defxforeign(ctx,"XFillArcs");
00542 defxforeign(ctx,"XFillPolygon");
00543 defxforeign(ctx,"XFillRectangle");
00544 defxforeign(ctx,"XFillRectangles");
00545 defxforeign(ctx,"XFlush");
00546 defxforeign(ctx,"XFreeFont");
00547 defxforeign(ctx,"XLoadQueryFont");
00548 defxforeign(ctx,"XQueryFont");
00549 defxforeign(ctx,"XFreeFontNames");
00550 defxforeign(ctx,"XListFonts");
00551 defxforeign(ctx,"XFreeFontInfo");
00552 defxforeign(ctx,"XListFontsWithInfo");
00553 defxforeign(ctx,"XFreeColormap");
00554 defxforeign(ctx,"XFreeColors");
00555 defxforeign(ctx,"XFreeCursor");
00556 defxforeign(ctx,"XFreeGC");
00557 defxforeign(ctx,"XFreePixmap");
00558 defxforeign(ctx,"XActivateScreenSaver");
00559 defxforeign(ctx,"XForceScreenSaver");
00560 defxforeign(ctx,"XResetScreenSaver");
00561 defxforeign(ctx,"XSetArcMode");
00562 defxforeign(ctx,"XSetFillRule");
00563 defxforeign(ctx,"XSetFillStyle");
00564 defxforeign(ctx,"XSetGraphicsExposures");
00565 defxforeign(ctx,"XSetSubwindowMode");
00566 defxforeign(ctx,"XGeometry");
00567 defxforeign(ctx,"XGetAtomName");
00568 defxforeign(ctx,"XAllocNamedColor");
00569 defxforeign(ctx,"XGetDefault");
00570 defxforeign(ctx,"XFreeFontPath");
00571 defxforeign(ctx,"XGetFontPath");
00572 defxforeign(ctx,"XGetFontProperty");
00573 defxforeign(ctx,"XGetGeometry");
00574 defxforeign(ctx,"XAllocColor");
00575 defxforeign(ctx,"XGetClassHint");
00576 defxforeign(ctx,"XGetIconSizes");
00577 defxforeign(ctx,"XGetNormalHints");
00578 defxforeign(ctx,"XGetSizeHints");
00579 defxforeign(ctx,"XGetTransientForHint");
00580 defxforeign(ctx,"XGetWMHints");
00581 defxforeign(ctx,"XGetZoomHints");
00582 defxforeign(ctx,"XGetInputFocus");
00583 defxforeign(ctx,"XGetImage");
00584 defxforeign(ctx,"XGetSubImage");
00585 defxforeign(ctx,"XGetKeyboardControl");
00586 defxforeign(ctx,"XGetMotionEvents");
00587 defxforeign(ctx,"XGetPointerControl");
00588 defxforeign(ctx,"XGetKeyboardMapping");
00589 defxforeign(ctx,"XGetPointerMapping");
00590 defxforeign(ctx,"XGetWindowProperty");
00591 defxforeign(ctx,"XGetSelectionOwner");
00592 defxforeign(ctx,"XGetScreenSaver");
00593 defxforeign(ctx,"XGetStandardColormap");
00594 defxforeign(ctx,"XGetWindowAttributes");
00595 defxforeign(ctx,"XGrabButton");
00596 defxforeign(ctx,"XGrabKey");
00597 defxforeign(ctx,"XGrabKeyboard");
00598 defxforeign(ctx,"XGrabPointer");
00599 defxforeign(ctx,"XGrabServer");
00600 defxforeign(ctx,"XAddHost");
00601 defxforeign(ctx,"XAddHosts");
00602 defxforeign(ctx,"XRemoveHost");
00603 defxforeign(ctx,"XRemoveHosts");
00604 defxforeign(ctx,"XIfEvent");
00605 defxforeign(ctx,"XCreateImage");
00606 defxforeign(ctx,"XDrawImageString");
00607 defxforeign(ctx,"XDrawImageString16");
00608 defxforeign(ctx,"XESetCloseDisplay");
00609 defxforeign(ctx,"XESetCopyGC");
00610 defxforeign(ctx,"XESetCreateFont");
00611 defxforeign(ctx,"XESetCreateGC");
00612 defxforeign(ctx,"XESetError");
00613 defxforeign(ctx,"XESetErrorString");
00614 defxforeign(ctx,"XESetEventToWire");
00615 defxforeign(ctx,"XESetFlushGC");
00616 defxforeign(ctx,"XESetFreeFont");
00617 defxforeign(ctx,"XESetFreeGC");
00618 defxforeign(ctx,"XESetWireToEvent");
00619 defxforeign(ctx,"XInitExtension");
00620 defxforeign(ctx,"XInstallColormap");
00621 defxforeign(ctx,"XInternAtom");
00622
00623 defxforeign(ctx,"XKeycodeToKeysym");
00624 defxforeign(ctx,"XKeysymToKeycode");
00625 defxforeign(ctx,"XLookupKeysym");
00626 defxforeign(ctx,"XLookupString");
00627 defxforeign(ctx,"XRebindKeysym");
00628 defxforeign(ctx,"XRefreshKeyboardMapping");
00629
00630
00631 defxforeign(ctx,"XListHosts");
00632 defxforeign(ctx,"XListInstalledColormaps");
00633 defxforeign(ctx,"XListProperties");
00634 defxforeign(ctx,"XFreeExtensionList");
00635 defxforeign(ctx,"XListExtensions");
00636 defxforeign(ctx,"XLoadFont");
00637 defxforeign(ctx,"XLookupColor");
00638 defxforeign(ctx,"XLowerWindow");
00639 defxforeign(ctx,"XAddPixel");
00640 defxforeign(ctx,"XAllPlanes");
00641 defxforeign(ctx,"XBitmapBitOrder");
00642 defxforeign(ctx,"XBitmapPad");
00643 defxforeign(ctx,"XBitmapUnit");
00644 defxforeign(ctx,"XBlackPixel");
00645 defxforeign(ctx,"XBlackPixelOfScreen");
00646 defxforeign(ctx,"XCellsOfScreen");
00647 defxforeign(ctx,"XConnectionNumber");
00648 defxforeign(ctx,"XDefaultColormap");
00649 defxforeign(ctx,"XDefaultColormapOfScreen");
00650 defxforeign(ctx,"XDefaultDepth");
00651 defxforeign(ctx,"XDefaultDepthOfScreen");
00652 defxforeign(ctx,"XDefaultGC");
00653 defxforeign(ctx,"XDefaultGCOfScreen");
00654 defxforeign(ctx,"XDefaultRootWindow");
00655 defxforeign(ctx,"XDefaultScreen");
00656 defxforeign(ctx,"XDefaultScreenOfDisplay");
00657 defxforeign(ctx,"XDefaultVisual");
00658 defxforeign(ctx,"XDefaultVisualOfScreen");
00659 defxforeign(ctx,"XDestroyImage");
00660 defxforeign(ctx,"XDisplayCells");
00661 defxforeign(ctx,"XDisplayHeight");
00662 defxforeign(ctx,"XDisplayHeightMM");
00663 defxforeign(ctx,"XDisplayOfScreen");
00664 defxforeign(ctx,"XDisplayPlanes");
00665 defxforeign(ctx,"XDisplayString");
00666 defxforeign(ctx,"XDisplayWidth");
00667 defxforeign(ctx,"XDisplayWidthMM");
00668 defxforeign(ctx,"XDoesBackingStore");
00669 defxforeign(ctx,"XDoesSaveUnders");
00670 defxforeign(ctx,"XEventMaskOfScreen");
00671 defxforeign(ctx,"XGetPixel");
00672 defxforeign(ctx,"XHeightMMOfScreen");
00673 defxforeign(ctx,"XHeightOfScreen");
00674 defxforeign(ctx,"XImageByteOrder");
00675 defxforeign(ctx,"XLastKnownRequestProcessed");
00676 defxforeign(ctx,"XMaxCmapsOfScreen");
00677 defxforeign(ctx,"XMinCmapsOfScreen");
00678 defxforeign(ctx,"XNextRequest");
00679 defxforeign(ctx,"XNoOp");
00680 defxforeign(ctx,"XPlanesOfScreen");
00681 defxforeign(ctx,"XProtocolRevision");
00682 defxforeign(ctx,"XProtocolVersion");
00683 defxforeign(ctx,"XPutPixel");
00684 defxforeign(ctx,"XQLength");
00685 defxforeign(ctx,"XRootWindow");
00686 defxforeign(ctx,"XRootWindowOfScreen");
00687 defxforeign(ctx,"XScreenCount");
00688 defxforeign(ctx,"XScreenOfDisplay");
00689 defxforeign(ctx,"XServerVendor");
00690 defxforeign(ctx,"XSubImage");
00691 defxforeign(ctx,"XVendorRelease");
00692 defxforeign(ctx,"XWhitePixel");
00693 defxforeign(ctx,"XWhitePixelOfScreen");
00694 defxforeign(ctx,"XWidthMMOfScreen");
00695 defxforeign(ctx,"XWidthOfScreen");
00696 defxforeign(ctx,"XMapRaised");
00697 defxforeign(ctx,"XMapSubwindows");
00698 defxforeign(ctx,"XMapWindow");
00699 defxforeign(ctx,"XMaskEvent");
00700 defxforeign(ctx,"XDeleteModifiermapEntry");
00701 defxforeign(ctx,"XFreeModifiermap");
00702 defxforeign(ctx,"XGetModifierMapping");
00703 defxforeign(ctx,"XInsertModifiermapEntry");
00704 defxforeign(ctx,"XNewModifiermap");
00705 defxforeign(ctx,"XSetModifierMapping");
00706 defxforeign(ctx,"XMoveWindow");
00707 defxforeign(ctx,"XNextEvent");
00708 defxforeign(ctx,"XOpenDisplay");
00709 defxforeign(ctx,"XParseColor");
00710
00711 defxforeign(ctx,"XParseGeometry");
00712 defxforeign(ctx,"XPeekEvent");
00713 defxforeign(ctx,"XPeekIfEvent");
00714 defxforeign(ctx,"XEventsQueued");
00715 defxforeign(ctx,"XPending");
00716 defxforeign(ctx,"XSetWindowBackgroundPixmap");
00717 defxforeign(ctx,"XSetWindowBorderPixmap");
00718 defxforeign(ctx,"XPolygonRegion");
00719 defxforeign(ctx,"XDrawText");
00720 defxforeign(ctx,"XDrawText16");
00721 defxforeign(ctx,"XPutBackEvent");
00722 defxforeign(ctx,"XPutImage");
00723 defxforeign(ctx,"XQueryBestSize");
00724 defxforeign(ctx,"XQueryColor");
00725 defxforeign(ctx,"XQueryColors");
00726 defxforeign(ctx,"XQueryBestCursor");
00727 defxforeign(ctx,"XQueryExtension");
00728 defxforeign(ctx,"XQueryKeymap");
00729 defxforeign(ctx,"XQueryPointer");
00730 defxforeign(ctx,"XQueryBestStipple");
00731 defxforeign(ctx,"XQueryTextExtents16");
00732 defxforeign(ctx,"XQueryTextExtents");
00733 defxforeign(ctx,"XQueryBestTile");
00734 defxforeign(ctx,"XQueryTree");
00735 defxforeign(ctx,"XRaiseWindow");
00736 defxforeign(ctx,"XReadBitmapFile");
00737 defxforeign(ctx,"XRecolorCursor");
00738 defxforeign(ctx,"XConfigureWindow");
00739 defxforeign(ctx,"XClipBox");
00740 defxforeign(ctx,"XCreateRegion");
00741 defxforeign(ctx,"XDestroyRegion");
00742 defxforeign(ctx,"XEmptyRegion");
00743 defxforeign(ctx,"XEqualRegion");
00744 defxforeign(ctx,"XIntersectRegion");
00745 defxforeign(ctx,"XOffsetRegion");
00746 defxforeign(ctx,"XPointInRegion");
00747 defxforeign(ctx,"XRectInRegion");
00748 defxforeign(ctx,"XSetRegion");
00749 defxforeign(ctx,"XShrinkRegion");
00750 defxforeign(ctx,"XSubtractRegion");
00751 defxforeign(ctx,"XUnionRectWithRegion");
00752 defxforeign(ctx,"XUnionRegion");
00753 defxforeign(ctx,"XXorRegion");
00754
00755 defxforeign(ctx,"XReparentWindow");
00756 defxforeign(ctx,"XRestackWindows");
00757 defxforeign(ctx,"XRotateWindowProperties");
00758 defxforeign(ctx,"XSelectInput");
00759 defxforeign(ctx,"XSendEvent");
00760 defxforeign(ctx,"XSetBackground");
00761 defxforeign(ctx,"XSetClipRectangles");
00762 defxforeign(ctx,"XSetClipMask");
00763 defxforeign(ctx,"XSetClipOrigin");
00764 defxforeign(ctx,"XSetDashes");
00765 defxforeign(ctx,"XSetFontPath");
00766 defxforeign(ctx,"XSetFont");
00767 defxforeign(ctx,"XSetForeground");
00768 defxforeign(ctx,"XSetFunction");
00769 defxforeign(ctx,"XSetClassHint");
00770 defxforeign(ctx,"XSetCommand");
00771 defxforeign(ctx,"XSetIconSizes");
00772 defxforeign(ctx,"XSetNormalHints");
00773 defxforeign(ctx,"XSetSizeHints");
00774 defxforeign(ctx,"XSetStandardProperties");
00775 defxforeign(ctx,"XSetTransientForHint");
00776 defxforeign(ctx,"XSetWMHints");
00777 defxforeign(ctx,"XSetZoomHints");
00778 defxforeign(ctx,"XSetInputFocus");
00779 defxforeign(ctx,"XSetLineAttributes");
00780 defxforeign(ctx,"XSetPlaneMask");
00781 defxforeign(ctx,"XChangeKeyboardMapping");
00782 defxforeign(ctx,"XSetPointerMapping");
00783 defxforeign(ctx,"XSetSelectionOwner");
00784 defxforeign(ctx,"XSetScreenSaver");
00785 defxforeign(ctx,"XSetState");
00786 defxforeign(ctx,"XSetStipple");
00787 defxforeign(ctx,"XSetStandardColormap");
00788 defxforeign(ctx,"XSetTile");
00789 defxforeign(ctx,"XSetTSOrigin");
00790 defxforeign(ctx,"XFetchBuffer");
00791 defxforeign(ctx,"XFetchBytes");
00792 defxforeign(ctx,"XRotateBuffers");
00793 defxforeign(ctx,"XStoreBuffer");
00794 defxforeign(ctx,"XStoreBytes");
00795 defxforeign(ctx,"XStoreColor");
00796 defxforeign(ctx,"XStoreColors");
00797 defxforeign(ctx,"XStoreNamedColor");
00798 defxforeign(ctx,"XSetIconName");
00799 defxforeign(ctx,"XStoreName");
00800 defxforeign(ctx,"XKeysymToString");
00801 defxforeign(ctx,"XStringToKeysym");
00802 defxforeign(ctx,"XSync");
00803 defxforeign(ctx,"XSetAfterFunction");
00804 defxforeign(ctx,"XSynchronize");
00805 defxforeign(ctx,"XDrawString");
00806 defxforeign(ctx,"XDrawString16");
00807 defxforeign(ctx,"XTextExtents");
00808 defxforeign(ctx,"XTextWidth");
00809 defxforeign(ctx,"XTextExtents16");
00810 defxforeign(ctx,"XTextWidth16");
00811 defxforeign(ctx,"XTranslateCoordinates");
00812 defxforeign(ctx,"XUndefineCursor");
00813 defxforeign(ctx,"XUngrabButton");
00814 defxforeign(ctx,"XUngrabKeyboard");
00815 defxforeign(ctx,"XUngrabKey");
00816 defxforeign(ctx,"XUngrabPointer");
00817 defxforeign(ctx,"XUngrabServer");
00818 defxforeign(ctx,"XUninstallColormap");
00819 defxforeign(ctx,"XUnloadFont");
00820 defxforeign(ctx,"XUnmapSubwindows");
00821 defxforeign(ctx,"XUnmapWindow");
00822 defxforeign(ctx,"XGetVisualInfo");
00823 defxforeign(ctx,"XMatchVisualInfo");
00824 defxforeign(ctx,"XWarpPointer");
00825 defxforeign(ctx,"XWindowEvent");
00826 defxforeign(ctx,"XCreateWindow");
00827 defxforeign(ctx,"XWriteBitmapFile");
00828 defxforeign(ctx,"XFree");
00829 defxforeign(ctx,"XrmGetFileDatabase");
00830 defxforeign(ctx,"XrmGetResource");
00831 defxforeign(ctx,"XrmGetStringDatabase");
00832 defxforeign(ctx,"XrmInitialize");
00833 defxforeign(ctx,"XrmMergeDatabases");
00834 defxforeign(ctx,"XrmPutFileDatabase");
00835 defxforeign(ctx,"XrmPutLineResource");
00836 defxforeign(ctx,"XrmPutResource");
00837 defxforeign(ctx,"XrmPutStringResource");
00838 defxforeign(ctx,"XrmQGetResource");
00839 defxforeign(ctx,"XrmQGetSearchList");
00840 defxforeign(ctx,"XrmQGetSearchResource");
00841 defxforeign(ctx,"XrmQPutResource");
00842 defxforeign(ctx,"XrmQPutStringResource");
00843 defxforeign(ctx,"XrmStringToBindingQuarkList");
00844 defxforeign(ctx,"XrmStringToQuarkList");
00845 #if X_V11R6_1
00846 defxforeign(ctx,"XInitThreads");
00847 defxforeign(ctx,"XLockDisplay");
00848 defxforeign(ctx,"XUnlockDisplay");
00849 #endif
00850 return(argv[0]);
00851 }
00852
00853 static init_object_module()
00854 { add_module_initializer("xforeign", xforeign);}