summaryrefslogtreecommitdiff
path: root/pcl
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2023-02-27 09:47:50 +0000
committerChris Liddell <chris.liddell@artifex.com>2023-02-27 14:39:45 +0000
commitcc86ef9a49487d2a71d0f49b201853a43038d34c (patch)
tree40b11fbae0e98fbf564b6f53492f18ca4e7b9dd1 /pcl
parentd68bb39be2c7ff5ad4d7e702737bfd21395ec19e (diff)
downloadghostpdl-cc86ef9a49487d2a71d0f49b201853a43038d34c.tar.gz
Bug 706389: Fix versioning format consistency
The main code issue with this bug was that the banner printed on startup is printed from Postscript, and Postscript's cvs operator doesn't allow for dictating the number of digits it outputs so the number 00 will always end up as the string "0", or 01 as "1". So our 10.01.0 version would be printed as "10.1.0". To address this, as a ".revisionstring" entry to systemdict, created during startup, the string is created in C, so we control the format. The remaining issues need to be address as part of the release process.
Diffstat (limited to 'pcl')
-rw-r--r--pcl/pl/plmain.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/pcl/pl/plmain.c b/pcl/pl/plmain.c
index 17d580b64..817da543c 100644
--- a/pcl/pl/plmain.c
+++ b/pcl/pl/plmain.c
@@ -76,9 +76,7 @@ extern_gs_lib_device_list();
/* pcimpl.c (PCL only), or pximpl (XL only) depending on make configuration.*/
extern pl_interp_implementation_t *pdl_implementations[]; /* zero-terminated list */
-#define _STRING_IT(s) #s
-#define STRING_IT(s) _STRING_IT(s)
-#define PJL_VERSION_STRING STRING_IT(PJLVERSION)
+#define PJL_VERSION_STRING GS_STRINGIZE(PJLVERSION)
/* Define the usage message. */
static const char *pl_usage = "\