-
diff -Nuarp ghostscript-10.05.1.orig/base/gdevkrnlsclass.c ghostscript-10.05.1/base/gdevkrnlsclass.c
|
old
|
new
|
|
| 1 | | /* Copyright (C) 2001-2023 Artifex Software, Inc. |
| | 1 | /* Copyright (C) 2001-2025 Artifex Software, Inc. |
| 2 | 2 | All Rights Reserved. |
| 3 | 3 | |
| 4 | 4 | This software is provided AS-IS with no warranty, either express or |
| … |
… |
|
| 29 | 29 | * of devices which the push of the compositor claims are already installed (to prevent |
| 30 | 30 | * a second copy being installed by gdev_prn_open). |
| 31 | 31 | */ |
| 32 | | int install_internal_subclass_devices(gx_device **ppdev, int *devices_loaded) |
| | 32 | int install_internal_subclass_devices(gx_device **ppdev, bool *devices_loaded) |
| 33 | 33 | { |
| 34 | 34 | int code = 0; |
| 35 | 35 | gx_device *dev = (gx_device *)*ppdev, *saved; |
-
diff -Nuarp ghostscript-10.05.1.orig/base/gdevkrnlsclass.h ghostscript-10.05.1/base/gdevkrnlsclass.h
|
old
|
new
|
|
| 1 | | /* Copyright (C) 2001-2023 Artifex Software, Inc. |
| | 1 | /* Copyright (C) 2001-2025 Artifex Software, Inc. |
| 2 | 2 | All Rights Reserved. |
| 3 | 3 | |
| 4 | 4 | This software is provided AS-IS with no warranty, either express or |
| … |
… |
extern gx_device_flp gs_flp_device;
|
| 29 | 29 | |
| 30 | 30 | extern gx_device_nup gs_nup_device; |
| 31 | 31 | |
| 32 | | int install_internal_subclass_devices(gx_device **ppdev, int *devices_loaded); |
| | 32 | int install_internal_subclass_devices(gx_device **ppdev, bool *devices_loaded); |
| 33 | 33 | |
| 34 | 34 | #endif /* gdev_subclass_dev_INCLUDED */ |
-
diff -Nuarp ghostscript-10.05.1.orig/base/gdevnup.c ghostscript-10.05.1/base/gdevnup.c
|
old
|
new
|
|
| 1 | | /* Copyright (C) 2001-2023 Artifex Software, Inc. |
| | 1 | /* Copyright (C) 2001-2025 Artifex Software, Inc. |
| 2 | 2 | All Rights Reserved. |
| 3 | 3 | |
| 4 | 4 | This software is provided AS-IS with no warranty, either express or |
| … |
… |
nup_dev_spec_op(gx_device *dev, int dev_
|
| 682 | 682 | case gxdso_get_dev_param: |
| 683 | 683 | { |
| 684 | 684 | dev_param_req_t *request = (dev_param_req_t *)data; |
| 685 | | int code = false; |
| | 685 | bool code = false; |
| 686 | 686 | |
| 687 | 687 | /* We need to disable pdfmark writing, primarily for CropBox, but also */ |
| 688 | 688 | /* they are probably not relevant for multiple input files to a single */ |
-
diff -Nuarp ghostscript-10.05.1.orig/base/gp.h ghostscript-10.05.1/base/gp.h
|
old
|
new
|
|
| 1 | | /* Copyright (C) 2001-2023 Artifex Software, Inc. |
| | 1 | /* Copyright (C) 2001-2025 Artifex Software, Inc. |
| 2 | 2 | All Rights Reserved. |
| 3 | 3 | |
| 4 | 4 | This software is provided AS-IS with no warranty, either express or |
| … |
… |
int gp_fseek_impl(FILE *strm, gs_offset_
|
| 646 | 646 | /* Create a second open gp_file on the basis of a given one */ |
| 647 | 647 | FILE *gp_fdup_impl(FILE *f, const char *mode); |
| 648 | 648 | |
| 649 | | int gp_fseekable_impl(FILE *f); |
| | 649 | bool gp_fseekable_impl(FILE *f); |
| 650 | 650 | |
| 651 | 651 | /* Force given file into binary mode (no eol translations, etc) */ |
| 652 | 652 | /* if 2nd param true, text mode if 2nd param false */ |
-
diff -Nuarp ghostscript-10.05.1.orig/base/gsfcmap.c ghostscript-10.05.1/base/gsfcmap.c
|
old
|
new
|
|
| 1 | | /* Copyright (C) 2001-2023 Artifex Software, Inc. |
| | 1 | /* Copyright (C) 2001-2025 Artifex Software, Inc. |
| 2 | 2 | All Rights Reserved. |
| 3 | 3 | |
| 4 | 4 | This software is provided AS-IS with no warranty, either express or |
| … |
… |
gs_cmap_create_char_identity(gs_cmap_t *
|
| 221 | 221 | /* |
| 222 | 222 | * Check for identity CMap. Uses a fast check for special cases. |
| 223 | 223 | */ |
| 224 | | int |
| | 224 | bool |
| 225 | 225 | gs_cmap_is_identity(const gs_cmap_t *pcmap, int font_index_only) |
| 226 | 226 | { |
| 227 | 227 | return pcmap->procs->is_identity(pcmap, font_index_only); |
-
diff -Nuarp ghostscript-10.05.1.orig/base/gsovrc.c ghostscript-10.05.1/base/gsovrc.c
|
old
|
new
|
|
| 1 | | /* Copyright (C) 2001-2024 Artifex Software, Inc. |
| | 1 | /* Copyright (C) 2001-2025 Artifex Software, Inc. |
| 2 | 2 | All Rights Reserved. |
| 3 | 3 | |
| 4 | 4 | This software is provided AS-IS with no warranty, either express or |
| … |
… |
gs_create_overprint(
|
| 297 | 297 | * This is used by the gs_pdf1.4_device (and eventually the PDFWrite |
| 298 | 298 | * device), which implements overprint and overprint mode directly. |
| 299 | 299 | */ |
| 300 | | int |
| | 300 | bool |
| 301 | 301 | gs_is_overprint_compositor(const gs_composite_t * pct) |
| 302 | 302 | { |
| 303 | 303 | return pct->type == &gs_composite_overprint_type; |
-
diff -Nuarp ghostscript-10.05.1.orig/base/gsstate.h ghostscript-10.05.1/base/gsstate.h
|
old
|
new
|
|
| 1 | | /* Copyright (C) 2001-2023 Artifex Software, Inc. |
| | 1 | /* Copyright (C) 2001-2025 Artifex Software, Inc. |
| 2 | 2 | All Rights Reserved. |
| 3 | 3 | |
| 4 | 4 | This software is provided AS-IS with no warranty, either express or |
| … |
… |
int gs_do_set_overprint(gs_gstate *);
|
| 54 | 54 | int gs_currentrenderingintent(const gs_gstate *); |
| 55 | 55 | int gs_setrenderingintent(gs_gstate *, int); |
| 56 | 56 | |
| 57 | | int gs_currentblackptcomp(const gs_gstate *); |
| 58 | | int gs_setblackptcomp(gs_gstate *, int); |
| | 57 | bool gs_currentblackptcomp(const gs_gstate *); |
| | 58 | int gs_setblackptcomp(gs_gstate *, bool); |
| 59 | 59 | |
| 60 | 60 | int gs_initgraphics(gs_gstate *); |
| 61 | 61 | int gs_initgraphics_no_cspace(gs_gstate *); |
-
diff -Nuarp ghostscript-10.05.1.orig/base/gxcmap.c ghostscript-10.05.1/base/gxcmap.c
|
old
|
new
|
gx_no_concretize_color(const gs_client_c
|
| 601 | 601 | /* If someone has specified a table for handling named spot colors then we will |
| 602 | 602 | be attempting to do the special handling to go directly to the device colors |
| 603 | 603 | here */ |
| 604 | | bool |
| | 604 | int |
| 605 | 605 | gx_remap_named_color(const gs_client_color * pcc, const gs_color_space * pcs, |
| 606 | 606 | gx_device_color * pdc, const gs_gstate * pgs, gx_device * dev, |
| 607 | 607 | gs_color_select_t select) |
-
diff -Nuarp ghostscript-10.05.1.orig/base/gxdownscale.c ghostscript-10.05.1/base/gxdownscale.c
|
old
|
new
|
|
| 1 | | /* Copyright (C) 2001-2024 Artifex Software, Inc. |
| | 1 | /* Copyright (C) 2001-2025 Artifex Software, Inc. |
| 2 | 2 | All Rights Reserved. |
| 3 | 3 | |
| 4 | 4 | This software is provided AS-IS with no warranty, either express or |
| … |
… |
int gx_downscaler_read_params(gs_param_l
|
| 3376 | 3376 | int features) |
| 3377 | 3377 | { |
| 3378 | 3378 | int code; |
| 3379 | | int downscale, mfs, ets, deskew; |
| | 3379 | int downscale, mfs, ets; |
| | 3380 | bool deskew; |
| 3380 | 3381 | int trap_w, trap_h; |
| 3381 | 3382 | const char *param_name; |
| 3382 | 3383 | gs_param_int_array trap_order; |
-
diff -Nuarp ghostscript-10.05.1.orig/base/gxdownscale.h ghostscript-10.05.1/base/gxdownscale.h
|
old
|
new
|
|
| 1 | | /* Copyright (C) 2001-2023 Artifex Software, Inc. |
| | 1 | /* Copyright (C) 2001-2025 Artifex Software, Inc. |
| 2 | 2 | All Rights Reserved. |
| 3 | 3 | |
| 4 | 4 | This software is provided AS-IS with no warranty, either express or |
| … |
… |
typedef struct gx_downscaler_params_s
|
| 124 | 124 | int trap_h; |
| 125 | 125 | int trap_order[GS_CLIENT_COLOR_MAX_COMPONENTS]; |
| 126 | 126 | int ets; |
| 127 | | int do_skew_detection; |
| | 127 | bool do_skew_detection; |
| 128 | 128 | } gx_downscaler_params; |
| 129 | 129 | |
| 130 | 130 | /* To use the downscaler: |
-
diff -Nuarp ghostscript-10.05.1.orig/base/gxfapi.h ghostscript-10.05.1/base/gxfapi.h
|
old
|
new
|
struct gs_fapi_server_s
|
| 348 | 348 | gs_fapi_retcode(*get_decodingID) (gs_fapi_server *server, gs_fapi_font *ff, const char **decodingID); |
| 349 | 349 | gs_fapi_retcode(*get_font_bbox) (gs_fapi_server *server, gs_fapi_font *ff, int BBox[4], int unitsPerEm[2]); |
| 350 | 350 | gs_fapi_retcode(*get_font_proportional_feature) (gs_fapi_server *server, gs_fapi_font *ff, bool *bProportional); |
| 351 | | gs_fapi_retcode(*can_retrieve_char_by_name) (gs_fapi_server *server, gs_fapi_font *ff, gs_fapi_char_ref *c, int *result); |
| | 351 | gs_fapi_retcode(*can_retrieve_char_by_name) (gs_fapi_server *server, gs_fapi_font *ff, gs_fapi_char_ref *c, bool *result); |
| 352 | 352 | gs_fapi_retcode(*can_replace_metrics) (gs_fapi_server *server, gs_fapi_font *ff, gs_fapi_char_ref *c, int *result); |
| 353 | 353 | gs_fapi_retcode(*can_simulate_style) (gs_fapi_server *server, gs_fapi_font *ff, gs_fapi_style style, void *style_data); |
| 354 | 354 | gs_fapi_retcode(*get_fontmatrix) (gs_fapi_server *server, gs_matrix *m); |
-
diff -Nuarp ghostscript-10.05.1.orig/base/gximag3x.c ghostscript-10.05.1/base/gximag3x.c
|
old
|
new
|
|
| 1 | | /* Copyright (C) 2001-2024 Artifex Software, Inc. |
| | 1 | /* Copyright (C) 2001-2025 Artifex Software, Inc. |
| 2 | 2 | All Rights Reserved. |
| 3 | 3 | |
| 4 | 4 | This software is provided AS-IS with no warranty, either express or |
| … |
… |
check_image3x_extent(double mask_coeff,
|
| 391 | 391 | * pmcs->{InterleaveType,width,height,full_height,depth,data,y,skip}. |
| 392 | 392 | * If the mask is omitted, sets pmcs->depth = 0 and returns normally. |
| 393 | 393 | */ |
| 394 | | static bool |
| | 394 | static int |
| 395 | 395 | check_image3x_mask(const gs_image3x_t *pim, const gs_image3x_mask_t *pimm, |
| 396 | 396 | const image3x_channel_values_t *ppcv, |
| 397 | 397 | image3x_channel_values_t *pmcv, |
-
diff -Nuarp ghostscript-10.05.1.orig/base/gxiscale.c ghostscript-10.05.1/base/gxiscale.c
|
old
|
new
|
|
| 1 | | /* Copyright (C) 2001-2024 Artifex Software, Inc. |
| | 1 | /* Copyright (C) 2001-2025 Artifex Software, Inc. |
| 2 | 2 | All Rights Reserved. |
| 3 | 3 | |
| 4 | 4 | This software is provided AS-IS with no warranty, either express or |
| … |
… |
device_allows_imagemask_interpolation(gx
|
| 112 | 112 | char data[] = "NoInterpolateImagemasks"; |
| 113 | 113 | dev_param_req_t request; |
| 114 | 114 | gs_c_param_list list; |
| 115 | | int nointerpolate = 0; |
| | 115 | bool nointerpolate = false; |
| 116 | 116 | int code; |
| 117 | 117 | |
| 118 | 118 | gs_c_param_list_write(&list, dev->memory); |
-
diff -Nuarp ghostscript-10.05.1.orig/base/stdpre.h ghostscript-10.05.1/base/stdpre.h
|
old
|
new
|
|
| 1 | | /* Copyright (C) 2001-2023 Artifex Software, Inc. |
| | 1 | /* Copyright (C) 2001-2025 Artifex Software, Inc. |
| 2 | 2 | All Rights Reserved. |
| 3 | 3 | |
| 4 | 4 | This software is provided AS-IS with no warranty, either express or |
| … |
… |
typedef signed char schar;
|
| 341 | 341 | * and the MetroWerks C++ compiler insists that bool be equivalent to |
| 342 | 342 | * unsigned char. |
| 343 | 343 | */ |
| 344 | | #ifndef __cplusplus |
| | 344 | |
| | 345 | /* C23 has bool as a builtin type. */ |
| | 346 | #if !defined(__cplusplus) && (!defined(__STDC_VERSION__) || __STDC_VERSION__ < 202311L) |
| 345 | 347 | #ifdef __BEOS__ |
| 346 | 348 | typedef unsigned char bool; |
| 347 | 349 | #else |
-
diff -Nuarp ghostscript-10.05.1.orig/contrib/eplaser/gdevescv.c ghostscript-10.05.1/contrib/eplaser/gdevescv.c
|
old
|
new
|
esmv_initialize_device_procs(gx_device *
|
| 183 | 183 | 0, /* int prev_paper_height; */\ |
| 184 | 184 | 0, /* int prev_num_copies; */\ |
| 185 | 185 | -1, /* int prev_feed_mode; */\ |
| 186 | | 0, /* int orientation; */\ |
| | 186 | false, /* bool orientation; */\ |
| 187 | 187 | ESCPAGE_FACEUP_DEFAULT, /* bool faceup; */\ |
| 188 | 188 | ESCPAGE_MEDIATYPE_DEFAULT, /* int MediaType; */\ |
| 189 | 189 | 0, /* bool first_page; */\ |
-
diff -Nuarp ghostscript-10.05.1.orig/contrib/eplaser/gdevescv.h ghostscript-10.05.1/contrib/eplaser/gdevescv.h
|
old
|
new
|
typedef struct gx_device_escv_s {
|
| 126 | 126 | int prev_paper_height; |
| 127 | 127 | int prev_num_copies; |
| 128 | 128 | int prev_feed_mode; |
| 129 | | int orientation; |
| | 129 | bool orientation; |
| 130 | 130 | bool faceup; |
| 131 | 131 | int MediaType; |
| 132 | 132 | bool first_page; |
-
diff -Nuarp ghostscript-10.05.1.orig/contrib/gdevmd2k.c ghostscript-10.05.1/contrib/gdevmd2k.c
|
old
|
new
|
alps_get_params(gx_device *pdev, gs_para
|
| 157 | 157 | } |
| 158 | 158 | |
| 159 | 159 | static int |
| 160 | | alps_put_param_bool(gs_param_list *plist, gs_param_name pname, int *pvalue, |
| | 160 | alps_put_param_bool(gs_param_list *plist, gs_param_name pname, bool *pvalue, |
| 161 | 161 | int ecode) |
| 162 | 162 | { |
| 163 | | int code, value; |
| | 163 | int code; |
| | 164 | bool value; |
| 164 | 165 | switch (code = param_read_bool(plist, pname, &value)) { |
| 165 | 166 | default: |
| 166 | 167 | return code; |
-
diff -Nuarp ghostscript-10.05.1.orig/contrib/lips4/gdevl4r.c ghostscript-10.05.1/contrib/lips4/gdevl4r.c
|
old
|
new
|
lips4_put_params(gx_device * pdev, gs_pa
|
| 496 | 496 | int code; |
| 497 | 497 | gs_param_name param_name; |
| 498 | 498 | gs_param_string pmedia; |
| 499 | | bool nup = lips4->nup; |
| | 499 | int nup = lips4->nup; |
| 500 | 500 | bool faceup = lips4->faceup; |
| 501 | 501 | int old_bpp = pdev->color_info.depth; |
| 502 | 502 | int bpp = 0; |
-
diff -Nuarp ghostscript-10.05.1.orig/contrib/lips4/gdevl4v.c ghostscript-10.05.1/contrib/lips4/gdevl4v.c
|
old
|
new
|
static int lips4v_setflat(gx_device_vect
|
| 224 | 224 | static int |
| 225 | 225 | lips4v_setlogop(gx_device_vector * vdev, gs_logical_operation_t lop, |
| 226 | 226 | gs_logical_operation_t diff); |
| 227 | | static int lips4v_can_handle_hl_color(gx_device_vector * vdev, const gs_gstate * pgs, |
| | 227 | static bool lips4v_can_handle_hl_color(gx_device_vector * vdev, const gs_gstate * pgs, |
| 228 | 228 | const gx_drawing_color * pdc); |
| 229 | 229 | static int |
| 230 | 230 | |
| … |
… |
lips4v_setlogop(gx_device_vector * vdev,
|
| 1220 | 1220 | } |
| 1221 | 1221 | |
| 1222 | 1222 | /*--- added for Ghostscritp 8.15 ---*/ |
| 1223 | | static int |
| | 1223 | static bool |
| 1224 | 1224 | lips4v_can_handle_hl_color(gx_device_vector * vdev, const gs_gstate * pgs1, |
| 1225 | 1225 | const gx_drawing_color * pdc) |
| 1226 | 1226 | { |
-
diff -Nuarp ghostscript-10.05.1.orig/contrib/opvp/gdevopvp.c ghostscript-10.05.1/contrib/opvp/gdevopvp.c
|
old
|
new
|
static int opvp_setdash(gx_device_vecto
|
| 265 | 265 | static int opvp_setflat(gx_device_vector *, double); |
| 266 | 266 | static int opvp_setlogop(gx_device_vector *, gs_logical_operation_t, |
| 267 | 267 | gs_logical_operation_t); |
| 268 | | static int opvp_can_handle_hl_color(gx_device_vector *, const gs_gstate *, const gx_drawing_color *); |
| | 268 | static bool opvp_can_handle_hl_color(gx_device_vector *, const gs_gstate *, const gx_drawing_color *); |
| 269 | 269 | static int opvp_setfillcolor(gx_device_vector *, const gs_gstate *, const gx_drawing_color *); |
| 270 | 270 | static int opvp_setstrokecolor(gx_device_vector *, const gs_gstate *,const gx_drawing_color *); |
| 271 | 271 | static int opvp_vector_dopath(gx_device_vector *, const gx_path *, |
| … |
… |
opvp_setlogop(
|
| 4947 | 4947 | } |
| 4948 | 4948 | |
| 4949 | 4949 | /*--- added for Ghostscript 8.15 ---*/ |
| 4950 | | static int |
| | 4950 | static bool |
| 4951 | 4951 | opvp_can_handle_hl_color(gx_device_vector * vdev, |
| 4952 | 4952 | const gs_gstate * pgs1, const gx_drawing_color * pdc) |
| 4953 | 4953 | { |
-
diff -Nuarp ghostscript-10.05.1.orig/devices/gdevcdj.c ghostscript-10.05.1/devices/gdevcdj.c
|
old
|
new
|
|
| 1 | | /* Copyright (C) 2001-2023 Artifex Software, Inc. |
| | 1 | /* Copyright (C) 2001-2025 Artifex Software, Inc. |
| 2 | 2 | All Rights Reserved. |
| 3 | 3 | |
| 4 | 4 | This software is provided AS-IS with no warranty, either express or |
| … |
… |
typedef struct gx_device_bjc800_s gx_dev
|
| 337 | 337 | bool mediaWeight_isSet; /* Say if weight is an integer or null */ \ |
| 338 | 338 | int mediaWeight; /* Weigth of the media */ \ |
| 339 | 339 | int printQuality; /* Cf. strings below */ \ |
| 340 | | bool ditheringType; /* Do dithering */ \ |
| | 340 | int ditheringType; /* Do dithering */ \ |
| 341 | 341 | int colorComponents; /* The number of *desired* color comps */ \ |
| 342 | 342 | int printColors /* 0: Transparent, \ |
| 343 | 343 | 1: C, 2: M, 4: Y, 7: K (Color decomp). \ |
-
diff -Nuarp ghostscript-10.05.1.orig/devices/gdevpdfimg.h ghostscript-10.05.1/devices/gdevpdfimg.h
|
old
|
new
|
|
| 1 | | /* Copyright (C) 2001-2023 Artifex Software, Inc. |
| | 1 | /* Copyright (C) 2001-2025 Artifex Software, Inc. |
| 2 | 2 | All Rights Reserved. |
| 3 | 3 | |
| 4 | 4 | This software is provided AS-IS with no warranty, either express or |
| … |
… |
typedef struct gx_device_pdf_image_s {
|
| 74 | 74 | PCLm_temp_file_t temp_stream; |
| 75 | 75 | int NextObject; |
| 76 | 76 | |
| 77 | | int Tumble; |
| 78 | | int Tumble2; |
| | 77 | bool Tumble; |
| | 78 | bool Tumble2; |
| 79 | 79 | |
| 80 | 80 | /* OCR data */ |
| 81 | 81 | struct { |
-
diff -Nuarp ghostscript-10.05.1.orig/devices/vector/gdevpdfd.c ghostscript-10.05.1/devices/vector/gdevpdfd.c
|
old
|
new
|
|
| 1 | | /* Copyright (C) 2001-2024 Artifex Software, Inc. |
| | 1 | /* Copyright (C) 2001-2025 Artifex Software, Inc. |
| 2 | 2 | All Rights Reserved. |
| 3 | 3 | |
| 4 | 4 | This software is provided AS-IS with no warranty, either express or |
| … |
… |
pdf_setlinewidth(gx_device_vector * vdev
|
| 108 | 108 | return psdf_setlinewidth(vdev, fabs(width)); |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | | static int |
| | 111 | static bool |
| 112 | 112 | pdf_can_handle_hl_color(gx_device_vector * vdev, const gs_gstate * pgs, |
| 113 | 113 | const gx_drawing_color * pdc) |
| 114 | 114 | { |
-
diff -Nuarp ghostscript-10.05.1.orig/devices/vector/gdevpdtt.c ghostscript-10.05.1/devices/vector/gdevpdtt.c
|
old
|
new
|
|
| 1 | | /* Copyright (C) 2001-2024 Artifex Software, Inc. |
| | 1 | /* Copyright (C) 2001-2025 Artifex Software, Inc. |
| 2 | 2 | All Rights Reserved. |
| 3 | 3 | |
| 4 | 4 | This software is provided AS-IS with no warranty, either express or |
| … |
… |
static void pdf_type3_get_initial_matrix
|
| 3272 | 3272 | gs_matrix_scale(pmat, pdev->HWResolution[0] / 72.0, pdev->HWResolution[0] / 72.0, pmat); |
| 3273 | 3273 | } |
| 3274 | 3274 | |
| 3275 | | static int pdf_query_purge_cached_char(const gs_memory_t *mem, cached_char *cc, void *data) |
| | 3275 | static bool pdf_query_purge_cached_char(const gs_memory_t *mem, cached_char *cc, void *data) |
| 3276 | 3276 | { |
| 3277 | 3277 | cached_char *to_purge = (cached_char *)data; |
| 3278 | 3278 | |
| 3279 | | |
| 3280 | | if (cc->code == to_purge->code && cc_pair(cc) == cc_pair(to_purge) && |
| 3281 | | cc->subpix_origin.x == to_purge->subpix_origin.x && |
| 3282 | | cc->subpix_origin.y == to_purge->subpix_origin.y && |
| 3283 | | cc->wmode == to_purge->wmode && cc_depth(cc) == cc_depth(to_purge) |
| 3284 | | ) |
| 3285 | | return 1; |
| 3286 | | return 0; |
| | 3279 | return cc->code == to_purge->code && cc_pair(cc) == cc_pair(to_purge) && |
| | 3280 | cc->subpix_origin.x == to_purge->subpix_origin.x && |
| | 3281 | cc->subpix_origin.y == to_purge->subpix_origin.y && |
| | 3282 | cc->wmode == to_purge->wmode && cc_depth(cc) == cc_depth(to_purge); |
| 3287 | 3283 | } |
| 3288 | 3284 | |
| 3289 | 3285 | static int ProcessTextForOCR(gs_text_enum_t *pte) |
-
diff -Nuarp ghostscript-10.05.1.orig/devices/vector/gdevpx.c ghostscript-10.05.1/devices/vector/gdevpx.c
|
old
|
new
|
|
| 1 | | /* Copyright (C) 2001-2023 Artifex Software, Inc. |
| | 1 | /* Copyright (C) 2001-2025 Artifex Software, Inc. |
| 2 | 2 | All Rights Reserved. |
| 3 | 3 | |
| 4 | 4 | This software is provided AS-IS with no warranty, either express or |
| … |
… |
pclxl_setlogop(gx_device_vector * vdev,
|
| 1393 | 1393 | return 0; |
| 1394 | 1394 | } |
| 1395 | 1395 | |
| 1396 | | static int |
| | 1396 | static bool |
| 1397 | 1397 | pclxl_can_handle_hl_color(gx_device_vector * vdev, const gs_gstate * pgs, |
| 1398 | 1398 | const gx_drawing_color * pdc) |
| 1399 | 1399 | { |
-
diff -Nuarp ghostscript-10.05.1.orig/devices/vector/gdevxps.c ghostscript-10.05.1/devices/vector/gdevxps.c
|
old
|
new
|
|
| 1 | | /* Copyright (C) 2001-2024 Artifex Software, Inc. |
| | 1 | /* Copyright (C) 2001-2025 Artifex Software, Inc. |
| 2 | 2 | All Rights Reserved. |
| 3 | 3 | |
| 4 | 4 | This software is provided AS-IS with no warranty, either express or |
| … |
… |
static int
|
| 271 | 271 | xps_setlogop(gx_device_vector *vdev, gs_logical_operation_t lop, |
| 272 | 272 | gs_logical_operation_t diff); |
| 273 | 273 | |
| 274 | | static int |
| | 274 | static bool |
| 275 | 275 | xps_can_handle_hl_color(gx_device_vector *vdev, const gs_gstate *pgs, |
| 276 | 276 | const gx_drawing_color * pdc); |
| 277 | 277 | static int |
| … |
… |
xps_setlogop(gx_device_vector *vdev, gs_
|
| 1480 | 1480 | |
| 1481 | 1481 | /* Other state */ |
| 1482 | 1482 | |
| 1483 | | static int |
| | 1483 | static bool |
| 1484 | 1484 | xps_can_handle_hl_color(gx_device_vector *vdev, const gs_gstate *pgs, |
| 1485 | 1485 | const gx_drawing_color *pdc) |
| 1486 | 1486 | { |
| 1487 | 1487 | if_debug0m('_', vdev->memory, "xps_can_handle_hl_color\n"); |
| 1488 | | return 0; |
| | 1488 | return false; |
| 1489 | 1489 | } |
| 1490 | 1490 | |
| 1491 | 1491 | /* Paths */ |
-
diff -Nuarp ghostscript-10.05.1.orig/pdf/pdf_device.c ghostscript-10.05.1/pdf/pdf_device.c
|
old
|
new
|
|
| 1 | | /* Copyright (C) 2019-2024 Artifex Software, Inc. |
| | 1 | /* Copyright (C) 2019-2025 Artifex Software, Inc. |
| 2 | 2 | All Rights Reserved. |
| 3 | 3 | |
| 4 | 4 | This software is provided AS-IS with no warranty, either express or |
| … |
… |
bool pdfi_device_check_param_bool(gx_dev
|
| 45 | 45 | { |
| 46 | 46 | int code; |
| 47 | 47 | gs_c_param_list list; |
| 48 | | int value; |
| | 48 | bool value; |
| 49 | 49 | |
| 50 | 50 | code = pdfi_device_check_param(dev, param, &list); |
| 51 | 51 | if (code < 0) |
| … |
… |
bool pdfi_device_check_param_bool(gx_dev
|
| 57 | 57 | if (code < 0) |
| 58 | 58 | value = false; |
| 59 | 59 | gs_c_param_list_release(&list); |
| 60 | | return (bool)value; |
| | 60 | return value; |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /* Set value of string device parameter */ |
-
diff -Nuarp ghostscript-10.05.1.orig/psi/zcontrol.c ghostscript-10.05.1/psi/zcontrol.c
|
old
|
new
|
|
| 1 | | /* Copyright (C) 2001-2023 Artifex Software, Inc. |
| | 1 | /* Copyright (C) 2001-2025 Artifex Software, Inc. |
| 2 | 2 | All Rights Reserved. |
| 3 | 3 | |
| 4 | 4 | This software is provided AS-IS with no warranty, either express or |
| … |
… |
const op_def zcontrol3_op_defs[] = {
|
| 990 | 990 | * interpreter to catch them, so that we can signal the error with the |
| 991 | 991 | * object still on the operand stack. |
| 992 | 992 | */ |
| 993 | | static bool |
| | 993 | static int |
| 994 | 994 | check_for_exec(const_os_ptr op) |
| 995 | 995 | { |
| 996 | 996 | if (!r_has_attr(op, a_execute) && /* only true if noaccess */ |
-
diff -Nuarp ghostscript-10.05.1.orig/psi/zfaes.c ghostscript-10.05.1/psi/zfaes.c
|
old
|
new
|
z_aes_d(i_ctx_t * i_ctx_p)
|
| 38 | 38 | os_ptr op = osp; /* i_ctx_p->op_stack.stack.p defined in osstack.h */ |
| 39 | 39 | ref *sop = NULL; |
| 40 | 40 | stream_aes_state state; |
| 41 | | int use_padding; |
| | 41 | bool use_padding; |
| 42 | 42 | |
| 43 | 43 | check_op(2); |
| 44 | 44 | /* extract the key from the parameter dictionary */ |
-
diff -Nuarp ghostscript-10.05.1.orig/psi/zfdecode.c ghostscript-10.05.1/psi/zfdecode.c
|
old
|
new
|
filter_read_predictor(i_ctx_t *i_ctx_p,
|
| 190 | 190 | int |
| 191 | 191 | zlz_setup(os_ptr op, stream_LZW_state * plzs) |
| 192 | 192 | { |
| 193 | | int code; |
| | 193 | int code, ech; |
| 194 | 194 | const ref *dop; |
| 195 | 195 | |
| 196 | 196 | s_LZW_set_defaults_inline(plzs); |
| … |
… |
zlz_setup(os_ptr op, stream_LZW_state *
|
| 200 | 200 | } else |
| 201 | 201 | dop = 0; |
| 202 | 202 | if ( (code = dict_int_param(dop, "EarlyChange", 0, 1, 1, |
| 203 | | &plzs->EarlyChange)) < 0 || |
| | 203 | &ech)) < 0 || |
| 204 | 204 | /* |
| 205 | 205 | * The following are not PostScript standard, although |
| 206 | 206 | * LanguageLevel 3 provides the first two under different |
| … |
… |
zlz_setup(os_ptr op, stream_LZW_state *
|
| 214 | 214 | &plzs->BlockData)) < 0 |
| 215 | 215 | ) |
| 216 | 216 | return code; |
| | 217 | plzs->EarlyChange = ech != 0; |
| 217 | 218 | return 0; |
| 218 | 219 | } |
| 219 | 220 | |
-
diff -Nuarp ghostscript-10.05.1.orig/psi/zfunc4.c ghostscript-10.05.1/psi/zfunc4.c
|
old
|
new
|
|
| 1 | | /* Copyright (C) 2001-2024 Artifex Software, Inc. |
| | 1 | /* Copyright (C) 2001-2025 Artifex Software, Inc. |
| 2 | 2 | All Rights Reserved. |
| 3 | 3 | |
| 4 | 4 | This software is provided AS-IS with no warranty, either express or |
| … |
… |
gs_build_function_4(i_ctx_t *i_ctx_p, co
|
| 468 | 468 | int code; |
| 469 | 469 | byte *ops; |
| 470 | 470 | uint size; |
| 471 | | int AllowRepeat = 1; /* Default to permitting Repeat, devices which can't handle it implement the spec_op */ |
| | 471 | bool AllowRepeat = true; /* Default to permitting Repeat, devices which can't handle it implement the spec_op */ |
| 472 | 472 | |
| 473 | 473 | *(gs_function_params_t *)¶ms = *mnDR; |
| 474 | 474 | params.ops.data = 0; /* in case of failure */ |
| … |
… |
int make_type4_function(i_ctx_t * i_ctx_
|
| 548 | 548 | float *ptr; |
| 549 | 549 | ref alternatespace, *palternatespace = &alternatespace; |
| 550 | 550 | PS_colour_space_t *space, *altspace; |
| 551 | | int AllowRepeat = 1; /* Default to permitting Repeat, devices which can't handle it implement the spec_op */ |
| | 551 | bool AllowRepeat = true; /* Default to permitting Repeat, devices which can't handle it implement the spec_op */ |
| 552 | 552 | |
| 553 | 553 | code = get_space_object(i_ctx_p, arr, &space); |
| 554 | 554 | if (code < 0) |