|
|
1.1 ! root 1: /* ! 2: * rcs_id[] = "$Header: macros.h,v 1.14 87/09/11 08:18:08 toddb Exp $"; ! 3: */ ! 4: ! 5: /* ! 6: * COPYRIGHT 1987 ! 7: * DIGITAL EQUIPMENT CORPORATION ! 8: * MAYNARD, MASSACHUSETTS ! 9: * ALL RIGHTS RESERVED. ! 10: * ! 11: * THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT NOTICE AND ! 12: * SHOULD NOT BE CONSTRUED AS A COMMITMENT BY DIGITAL EQUIPMENT CORPORATION. ! 13: * DIGITAL MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THIS SOFTWARE FOR ! 14: * ANY PURPOSE. IT IS SUPPLIED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. ! 15: * ! 16: * IF THE SOFTWARE IS MODIFIED IN A MANNER CREATING DERIVATIVE COPYRIGHT RIGHTS, ! 17: * APPROPRIATE LEGENDS MAY BE PLACED ON THE DERIVATIVE WORK IN ADDITION TO THAT ! 18: * SET FORTH ABOVE. ! 19: * ! 20: * ! 21: * Permission to use, copy, modify, and distribute this software and its ! 22: * documentation for any purpose and without fee is hereby granted, provided ! 23: * that the above copyright notice appear in all copies and that both that ! 24: * copyright notice and this permission notice appear in supporting documentation, ! 25: * and that the name of Digital Equipment Corporation not be used in advertising ! 26: * or publicity pertaining to distribution of the software without specific, ! 27: * written prior permission. ! 28: */ ! 29: ! 30: #define FILEPTR FILE * ! 31: ! 32: #define min(x,y) ((x) < (y) ? (x) : (y)) ! 33: #define max(x,y) ((x) > (y) ? (x) : (y)) ! 34: ! 35: #define abs(x) ((x) < 0 ? (-(x)) : (x)) ! 36: ! 37: #define QXOpenDisplay XOpenDisplay ! 38: ! 39: #ifdef X11 ! 40: #define DISPLAY theDisplay, ! 41: #define QDefaultRootWindow DefaultRootWindow ! 42: #define QXDestroyWindow XDestroyWindow ! 43: #define QXFlush XFlush ! 44: #define QXMapWindow XMapWindow ! 45: #define QXMoveWindow XMoveWindow ! 46: #define QXNextEvent XtNextEvent ! 47: #define QXPeekEvent XPeekEvent ! 48: #define QXPending XPending ! 49: #define QXPutBackEvent XPutBackEvent ! 50: #define QXStoreName XStoreName ! 51: #define QXSync XSync ! 52: #define QXUnmapWindow XUnmapWindow ! 53: #define QConnectionNumber ConnectionNumber ! 54: #define QXSetInputFocus XSetInputFocus ! 55: #endif X11 ! 56: ! 57: #ifdef X10 ! 58: #define DISPLAY ! 59: #define QDefaultRootWindow(dpy) RootWindow ! 60: #define QXDestroyWindow(dpy, win) XDestroyWindow(win) ! 61: #define QXFlush(dpy) XFlush() ! 62: #define QXMapWindow(dpy, win) XMapWindow(win) ! 63: #define QXMoveWindow(dpy, win, x, y) XMoveWindow(win, x, y) ! 64: #define QXUnmapWindow(dpy, win) XUnmapWindow(win) ! 65: #define QXNextEvent(dpy, event) XNextEvent(event) ! 66: #define QXPeekEvent(dpy, event) XPeekEvent(event) ! 67: #define QXPending(dpy) XPending() ! 68: #define QXPutBackEvent(dpy, event) XPutBackEvent(event) ! 69: #define QXStoreName(dpy, win, name) XStoreName(win, name) ! 70: #define QXSync(dpy, value) XSync(value) ! 71: #define QConnectionNumber(dpy) dpyno() ! 72: #define KeyPress KeyPressed ! 73: #define KeyRelease KeyReleased ! 74: #define ButtonPress ButtonPressed ! 75: #define ButtonRelease ButtonReleased ! 76: #define QXSetInputFocus(d, w, a, b) ! 77: ! 78: #endif X10 ! 79: ! 80: ! 81: ! 82: #ifdef X10 ! 83: typedef int Position; ! 84: typedef unsigned int Dimension; ! 85: #define XtsdLeft sdLEFT ! 86: #define XtsdRight sdRIGHT ! 87: ! 88: #define XtstPositions stPOSITIONS ! 89: #define XtstWhiteSpace stWHITESPACE ! 90: #define XtstEOL stEOL ! 91: #define XtstParagraph stPARAGRAHP ! 92: #define XtstFile stFILE ! 93: ! 94: #define XtgeometryGetWindowBox geometryGETWINDOWBOX ! 95: #define XtGeometryRequest int ! 96: ! 97: #define XrmRBoolean XtRBoolean ! 98: #define XrmRString XtRString ! 99: #define XrmRInt XtRInt ! 100: #define XrmResourceDataBase ResourceDataBase ! 101: #define XrmNameList XtNameList ! 102: #define XrmClassList XtClassList ! 103: #define XrmGetDataBase XtGetDataBase ! 104: #define XrmMergeDataBases XtMergeDataBases ! 105: #define XrmSetCurrentDataBase XtSetCurrentDataBase ! 106: #define XrmFreeNameList XtFreeNameList ! 107: #define XrmFreeClassList XtFreeClassList ! 108: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.