gscdef.c 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /* Copyright (C) 1996, 1997, 1998, 1999, 2000 Aladdin Enterprises. All rights reserved.
  2. This file is part of AFPL Ghostscript.
  3. AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author or
  4. distributor accepts any responsibility for the consequences of using it, or
  5. for whether it serves any particular purpose or works at all, unless he or
  6. she says so in writing. Refer to the Aladdin Free Public License (the
  7. "License") for full details.
  8. Every copy of AFPL Ghostscript must include a copy of the License, normally
  9. in a plain ASCII text file named PUBLIC. The License grants you the right
  10. to copy, modify and redistribute AFPL Ghostscript, but only under certain
  11. conditions described in the License. Among other things, the License
  12. requires that the copyright notice and this notice be preserved on all
  13. copies.
  14. */
  15. /*$Id: gscdef.c,v 1.15 2001/10/20 08:44:31 raph Exp $ */
  16. /* Configuration scalars */
  17. #include "std.h"
  18. #include "gscdefs.h" /* interface */
  19. #include "gconf.h" /* for #defines */
  20. /* ---------------- Miscellaneous system parameters ---------------- */
  21. /* All of these can be set in the makefile. */
  22. /* Normally they are all const; see gscdefs.h for more information. */
  23. #ifndef GS_BUILDTIME
  24. # define GS_BUILDTIME\
  25. 0 /* should be set in the makefile */
  26. #endif
  27. CONFIG_CONST long gs_buildtime = GS_BUILDTIME;
  28. #ifndef GS_COPYRIGHT
  29. # define GS_COPYRIGHT\
  30. "Copyright (C) 2001 artofcode LLC, Benicia, CA. All rights reserved."
  31. #endif
  32. const char *CONFIG_CONST gs_copyright = GS_COPYRIGHT;
  33. #ifndef GS_PRODUCTFAMILY
  34. # define GS_PRODUCTFAMILY\
  35. "AFPL Ghostscript"
  36. #endif
  37. const char *CONFIG_CONST gs_productfamily = GS_PRODUCTFAMILY;
  38. #ifndef GS_PRODUCT
  39. # define GS_PRODUCT\
  40. "AFPL Ghostscript"
  41. #endif
  42. const char *CONFIG_CONST gs_product = GS_PRODUCT;
  43. const char *
  44. gs_program_name(void)
  45. {
  46. return gs_product;
  47. }
  48. /* GS_REVISION must be defined in the makefile. */
  49. CONFIG_CONST long gs_revision = GS_REVISION;
  50. long
  51. gs_revision_number(void)
  52. {
  53. return gs_revision;
  54. }
  55. /* GS_REVISIONDATE must be defined in the makefile. */
  56. CONFIG_CONST long gs_revisiondate = GS_REVISIONDATE;
  57. #ifndef GS_SERIALNUMBER
  58. # define GS_SERIALNUMBER\
  59. 42 /* a famous number */
  60. #endif
  61. CONFIG_CONST long gs_serialnumber = GS_SERIALNUMBER;
  62. /* ---------------- Installation directories and files ---------------- */
  63. /* Here is where the library search path, the name of the */
  64. /* initialization file, and the doc directory are defined. */
  65. /* Define the documentation directory (only used in help messages). */
  66. const char *const gs_doc_directory = GS_DOCDIR;
  67. /* Define the default library search path. */
  68. const char *const gs_lib_default_path = GS_LIB_DEFAULT;
  69. /* Define the interpreter initialization file. */
  70. const char *const gs_init_file = GS_INIT;