home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / gnulib / ghostscr / gdevs.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-31  |  1.8 KB  |  55 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. /* gdevs.c */
  21. /* Installed device table for Ghostscript */
  22. /* We don't really need the definition of gx_device, because we only */
  23. /* declare pointers to devices, but some compilers seem to want it.... */
  24. #include "gs.h"
  25. #include "gsmatrix.h"            /* for gxdevice.h */
  26. #include "gxbitmap.h"
  27. #include "gxdevice.h"
  28.  
  29. typedef struct gx_device_s gx_device;
  30.  
  31. /*
  32.  * The Ghostscript makefile generates the file gdevs.h, which consists of
  33.  * lines of the form
  34.  *    d(gs_xxx_device)
  35.  * for each installed device.  We include this file twice, once to declare
  36.  * the devices as extern, and once to generate the table of pointers.
  37.  */
  38.  
  39. #define d(dev) extern gx_device dev;
  40. #include "gdevs.h"
  41. #undef d
  42.  
  43. gx_device *gx_device_list[] = {
  44. #define d(dev) &dev,
  45. #include "gdevs.h"
  46. #undef d
  47.     0
  48. };
  49.  
  50. /* Some C compilers insist on having executable code in every file, so: */
  51. private void
  52. gdevs_dummy()
  53. {
  54. }
  55.