summaryrefslogtreecommitdiff
path: root/pdf/pdf_warnings.h
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2022-03-13 13:58:31 +0000
committerRobin Watts <Robin.Watts@artifex.com>2022-05-05 14:49:00 +0100
commitad896ca27d000c79f7dade408efe9ef649d335ee (patch)
tree50d05a0f0f4bba987a08b960bd237e217ea28465 /pdf/pdf_warnings.h
parentfcee1191204091e61ca78e241ca002a939eee085 (diff)
downloadghostpdl-ad896ca27d000c79f7dade408efe9ef649d335ee.tar.gz
PDFI: Use helper functions for converting pdf_obj -> nums
This includes functions to pop values off the stack, convert to the appropriate types etc, that encapsulate error handling etc. Use these throughout the code. This drastically simplifies lots of code, and avoids needless error-prone repetition. It also means we can add debug testing/warnings in many fewer places.
Diffstat (limited to 'pdf/pdf_warnings.h')
-rw-r--r--pdf/pdf_warnings.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pdf/pdf_warnings.h b/pdf/pdf_warnings.h
index a6062dbc7..1ba0606bd 100644
--- a/pdf/pdf_warnings.h
+++ b/pdf/pdf_warnings.h
@@ -60,5 +60,6 @@ PARAM(W_PDF_INVALID_DECRYPT_LEN, "Invalid /Length supplied in Encryption dict
PARAM(W_PDF_INVALID_FONT_BASEENC, "Ignoring invalid BaseEncoding name in font"),
PARAM(W_PDF_GROUP_HAS_COLORSPACE, "Group attributes dictionary has /ColorSpace instead of /CS"),
PARAM(W_PDF_GROUP_BAD_BC, "Group attributes dictionary /BC differs in number of components from the colour space"),
+PARAM(W_PDF_INT_AS_REAL, "found real number when expecting int"),
#undef PARAM