summaryrefslogtreecommitdiff
path: root/pdf/ghostpdf.h
diff options
context:
space:
mode:
authorKen Sharp <ken.sharp@artifex.com>2021-08-12 16:10:29 +0100
committerKen Sharp <ken.sharp@artifex.com>2021-08-13 08:09:01 +0100
commit3165e2bf6b8b2ce283bbdaf85f33188aca4be6e7 (patch)
tree2ff3c8db7074a9348c2773b5d14c4e7e7c95ae96 /pdf/ghostpdf.h
parent41db9c3e6dae31e671add23c596fa99d9efdd82b (diff)
downloadghostpdl-3165e2bf6b8b2ce283bbdaf85f33188aca4be6e7.tar.gz
GhostPDF - Tidy up headers in ghostpdf.h
This file was originally copied from the XPS interpreter verbatim, and included a load of .h files which were then included needlessly in all of the C files. This removes almost all the .h files from ghostpdf.h; we keep gserrors.h since so many C files do actually use it to report errors, and gxgstate.h which is used in ghostpdf.h The various C and H files have been updated to pull in the include files they actually need.
Diffstat (limited to 'pdf/ghostpdf.h')
-rw-r--r--pdf/ghostpdf.h72
1 files changed, 3 insertions, 69 deletions
diff --git a/pdf/ghostpdf.h b/pdf/ghostpdf.h
index 0c927de9c..0a89c3c11 100644
--- a/pdf/ghostpdf.h
+++ b/pdf/ghostpdf.h
@@ -14,78 +14,12 @@
*/
-/* combined internal header for the PDF interpreter */
-
-#include "memory_.h"
-#include "math_.h"
-#include "string_.h"
-#include <stdlib.h>
-#include <ctype.h> /* for toupper() */
-
-/* Include zlib early to avoid offsetof redef problems on windows */
-#include "zlib.h"
-
-#include "stdint_.h"
-
-#include "gp.h"
-
-#include "gsgc.h"
-#include "gstypes.h"
-#include "gsstate.h"
-#include "gsmatrix.h"
-#include "gscoord.h"
-#include "gsmemory.h"
-#include "gsparam.h"
-#include "gsdevice.h"
-#include "scommon.h"
-#include "gdebug.h"
-#include "gserrors.h"
-#include "gspaint.h"
-#include "gspath.h"
-#include "gsimage.h"
-#include "gscspace.h"
-#include "gsptype1.h"
-#include "gscolor2.h"
-#include "gscolor3.h"
-#include "gsutil.h"
-#include "gsicc.h"
-
-#include "gstrans.h"
-
-#include "gxpath.h" /* gsshade.h depends on it */
-#include "gxfixed.h" /* gsshade.h depends on it */
-#include "gxmatrix.h" /* gxtype1.h depends on it */
-#include "gsshade.h"
-#include "gsfunc.h"
-#include "gsfunc3.h" /* we use stitching and exponential interp */
-
-#include "gxfont.h"
-#include "gxchar.h"
-#include "gxcolor2.h" /* Required for definition of gs_pattern1_instance_t */
-#include "gxtype1.h"
-#include "gxfont1.h"
-#include "gxfont42.h"
-#include "gxfcache.h"
-#include "gxgstate.h"
-
-#include "gzstate.h"
-#include "gzpath.h"
-#include "gzcpath.h"
-
-#include "gsicc_manage.h"
-#include "gscms.h"
-#include "gsicc_cache.h"
-#include "gxpcolor.h"
-#include "gxdevsop.h" /* For special ops */
-#include "gstext.h" /* for gs_text_enum_t */
-
-#include "gxtmap.h"
-#include "gxfmap.h"
-#include "gspath2.h" /* for gs_rectclip */
-
#ifndef PDF_CONTEXT
#define PDF_CONTEXT
+#include "gserrors.h" /* Most files use this to set errors of the gs_error_ form */
+#include "gxgstate.h"
+
#define BUF_SIZE 2048
#include "pdf_types.h"