summaryrefslogtreecommitdiff
path: root/psi/ierrors.h
diff options
context:
space:
mode:
authorKen Sharp <ken.sharp@artifex.com>2022-05-19 14:20:12 +0100
committerKen Sharp <ken.sharp@artifex.com>2022-05-19 14:23:56 +0100
commit99983e42b2316a85b5d9ac24a2932b8d8c52c586 (patch)
treee2d87c50d6dae9cdd1e695e26636508f3a99c528 /psi/ierrors.h
parente819bcede71f40b6116934e99df76564cef39228 (diff)
downloadghostpdl-99983e42b2316a85b5d9ac24a2932b8d8c52c586.tar.gz
GS + GhostPDF - make the circular reference error a standard error
Previously exiting with the error gs_error_circular_reference would cause the PostScript interpreter to throw a non-standard error and dump extra information to the back channel. We don't really want that to happen, we just want to treat it as an error. This commit moves the error definition into the 'normal' range, rejigs the PDF interpreter error names table to reflect that, and updates the PostScript error names to include the circular reference error so that it is treated like other errors.
Diffstat (limited to 'psi/ierrors.h')
-rw-r--r--psi/ierrors.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/psi/ierrors.h b/psi/ierrors.h
index fa0c789db..15abaa0f6 100644
--- a/psi/ierrors.h
+++ b/psi/ierrors.h
@@ -58,7 +58,7 @@ extern const char *const gs_error_names[];
"invalidcontext", "invalidid"
#define PDF_ERROR_NAMES\
- "pdf_stackoverflow"
+ "pdf_stackoverflow", "pdf_circular_reference"
#define ERROR_NAMES\
LEVEL1_ERROR_NAMES, LEVEL2_ERROR_NAMES, DPS_ERROR_NAMES, PDF_ERROR_NAMES