home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / printing / ghostscrip / source / specific / h / gdevx
Encoding:
Text File  |  1991-10-25  |  3.3 KB  |  90 lines

  1. /* Copyright (C) 1989, 1990 Aladdin Enterprises.  All rights reserved.
  2.    Distributed by Free Software Foundation, Inc.
  3.  
  4. This file is part of Ghostscript.
  5.  
  6. Ghostscript is distributed in the hope that it will be useful, but
  7. WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. to anyone for the consequences of using it or for whether it serves any
  9. particular purpose or works at all, unless he says so in writing.  Refer
  10. to the Ghostscript General Public License for full details.
  11.  
  12. Everyone is granted permission to copy, modify and redistribute
  13. Ghostscript, but only under the conditions described in the Ghostscript
  14. General Public License.  A copy of this license is supposed to have been
  15. given to you along with Ghostscript so you can know your rights and
  16. responsibilities.  It should be in a file named COPYING.  Among other
  17. things, the copyright notice and this notice must be preserved on all
  18. copies.  */
  19.  
  20. /* gdevx.h */
  21. /* Header for including X library calls in Ghostscript X11 driver */
  22.  
  23. #ifdef VMS
  24.  
  25. #  ifdef __GNUC__
  26.  
  27. /*   Names of external functions which contain upper case letters are
  28.  *   modified by the VMS GNU C compiler to prevent confusion between
  29.  *   names such as XOpen and xopen.  GNU C does this by translating a
  30.  *   name like XOpen into xopen_aaaaaaaax with "aaaaaaaa" a hexadecimal
  31.  *   string.  However, this causes problems when we link against the
  32.  *   X library which doesn't contain a routine named xopen_aaaaaaaax.
  33.  *   So, we use #define's to map all X routine names to lower case.
  34.  *   (Note that routines like BlackPixelOfScreen, which are [for VMS]
  35.  *   preprocessor macros, do not appear here.)
  36.  */
  37.  
  38. /*
  39.  * The names redefined here are those which the current Ghostscript X11
  40.  * driver happens to use: this list may grow in the future.
  41.  */
  42.  
  43. #    define XAllocColor            xalloccolor
  44. #    define XAllocNamedColor        xallocnamedcolor
  45. #    define XChangeProperty        xchangeproperty
  46. #    define XCloseDisplay        xclosedisplay
  47. #    define XCopyArea            xcopyarea
  48. #    define XCreateGC            xcreategc
  49. #    define XCreatePixmap        xcreatepixmap
  50. #    define XCreateWindow        xcreatewindow
  51. #    define XDisplayString        xdisplaystring
  52. #    define XDrawLine            xdrawline
  53. #    define XFillPolygon        xfillpolygon
  54. #    define XFillRectangles        xfillrectangles
  55. #    define XFillRectangle        xfillrectangle
  56. #    define XFlush            xflush
  57. #    define XFreeGC            xfreegc
  58. #    define XFreePixmap            xfreepixmap
  59. #    define XGeometry            xgeometry
  60. #    define XGetDefault            xgetdefault
  61. #    define XMapWindow            xmapwindow
  62. #    define XNextEvent            xnextevent
  63. #    define XOpenDisplay        xopendisplay
  64. #    define XPutImage            xputimage
  65. #    define XSetBackground        xsetbackground
  66. #    define XSetClipMask        xsetclipmask
  67. #    define XSetClipOrigin        xsetcliporigin
  68. #    define XSetFillStyle        xsetfillstyle
  69. #    define XSetForeground        xsetforeground
  70. #    define XSetFunction        xsetfunction
  71. #    define XSetLineAttributes        xsetlineattributes
  72. #    define XSetNormalHints        xsetnormalhints
  73. #    define XSetTile            xsettile
  74. #    define XSetWindowBackgroundPixmap    xsetwindowbackgroundpixmap
  75. #    define XSync            xsync
  76.  
  77. #  endif                /* ifdef __GNUC__ */
  78.  
  79. #  include <decw$include/Xlib.h>
  80. #  include <decw$include/Xatom.h>
  81. #  include <decw$include/Xutil.h>
  82.  
  83. #else                    /* !ifdef VMS */
  84.  
  85. #  include <X11/Xlib.h>
  86. #  include <X11/Xatom.h>
  87. #  include <X11/Xutil.h>
  88.  
  89. #endif                    /* VMS */
  90.