1 /* Copyright (C) 1996-2005 artofcode LLC. All rights reserved.
2
3 This software is provided AS-IS with no warranty, either express or
4 implied.
5
6 This software is distributed under license and may not be copied,
7 modified or distributed except as expressly authorized under the terms
8 of the license contained in the file LICENSE in this distribution.
9
10 For more information about licensing, please refer to
11 http://www.ghostscript.com/licensing/. For information on
12 commercial licensing, go to http://www.artifex.com/licensing/ or
13 contact Artifex Software, Inc., 101 Lucas Valley Road #110,
14 San Rafael, CA 94903, U.S.A., +1(415)492-9861.
15 */
16
17 /* $Id: gscdef.c,v 1.58 2005/10/20 19:46:55 ray Exp $ */
18 /* Configuration scalars */
19
20 #include "std.h"
21 #include "gscdefs.h" /* interface */
22 #include "gconfigd.h" /* for #defines */
23
24 /* ---------------- Miscellaneous system parameters ---------------- */
25
26 /* All of these can be set in the makefile. */
27 /* Normally they are all const; see gscdefs.h for more information. */
28
29 #ifndef GS_BUILDTIME
30 # define GS_BUILDTIME\
31 0 /* should be set in the makefile */
32 #endif
33 CONFIG_CONST long gs_buildtime = GS_BUILDTIME;
34
35 #ifndef GS_COPYRIGHT
36 # define GS_COPYRIGHT\
37 "Copyright (C) 2005 artofcode LLC, Benicia, CA. All rights reserved."
38 #endif
39 const char *CONFIG_CONST gs_copyright = GS_COPYRIGHT;
40
41 #ifndef GS_PRODUCTFAMILY
42 # define GS_PRODUCTFAMILY\
43 "AFPL Ghostscript"
44 #endif
45 const char *CONFIG_CONST gs_productfamily = GS_PRODUCTFAMILY;
46
47 #ifndef GS_PRODUCT
48 # define GS_PRODUCT\
49 GS_PRODUCTFAMILY
50 #endif
51 const char *CONFIG_CONST gs_product = GS_PRODUCT;
52
53 const char *
gs_program_name(void)54 gs_program_name(void)
55 {
56 return gs_product;
57 }
58
59 /* GS_REVISION must be defined in the makefile. */
60 CONFIG_CONST long gs_revision = GS_REVISION;
61
62 long
gs_revision_number(void)63 gs_revision_number(void)
64 {
65 return gs_revision;
66 }
67
68 /* GS_REVISIONDATE must be defined in the makefile. */
69 CONFIG_CONST long gs_revisiondate = GS_REVISIONDATE;
70
71 #ifndef GS_SERIALNUMBER
72 # define GS_SERIALNUMBER\
73 42 /* a famous number */
74 #endif
75 CONFIG_CONST long gs_serialnumber = GS_SERIALNUMBER;
76
77 /* ---------------- Installation directories and files ---------------- */
78
79 /* Here is where the library search path, the name of the */
80 /* initialization file, and the doc directory are defined. */
81 /* Define the documentation directory (only used in help messages). */
82 const char *const gs_doc_directory = GS_DOCDIR;
83
84 /* Define the default library search path. */
85 const char *const gs_lib_default_path = GS_LIB_DEFAULT;
86
87 /* Define the interpreter initialization file. */
88 const char *const gs_init_file = GS_INIT;
89