diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-09-13 00:40:03 +0100 |
---|---|---|
committer | Robin Watts <robin@peeves.(none)> | 2012-09-18 05:28:21 -0700 |
commit | 6777c88fab2afc3e6558fda1dfb51110088ede61 (patch) | |
tree | ab0ee337b8e03be4a595703c7177e76ac206e037 /xps/xpsimage.c | |
parent | 1fa1eca3be2955e1ed1f8433c18d06417ea85f4c (diff) | |
download | ghostpdl-6777c88fab2afc3e6558fda1dfb51110088ede61.tar.gz |
Introduce GS_THREADSAFE define and modify printing calls.
Lots of debugging/error information is printed using eprintf and
dlprintf etc. These functions do not take a gs_memory_t * and are
not safe for use within code that runs under multiple instances
created by gsapi.
Introduce new versions (dmprintf, dmlprintf etc) that DO take a
gs_memory_ *, and move as much of ghostscript/ghostpdl's usage
over to these as possible. I have not touched the contrib directory,
and some locations in the code do not easily have a gs_memory_t
to hand, so I have left them be.
If the GS_THREADSAFE define is made during building, then the
functions that don't take an explicit memory handle are #defined
away to nothing.
If the GS_THREADSAFE define is made, we disable the gsapi check that
checks for a single init.
Diffstat (limited to 'xps/xpsimage.c')
-rw-r--r-- | xps/xpsimage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xps/xpsimage.c b/xps/xpsimage.c index 6f0a05c86..39731b093 100644 --- a/xps/xpsimage.c +++ b/xps/xpsimage.c @@ -199,7 +199,7 @@ xps_decode_image(xps_context_t *ctx, xps_part_t *part, xps_image_t *image) if (image->hasalpha) { if (image->bits < 8) - dprintf1("cannot isolate alpha channel in %d bpc images\n", image->bits); + dmprintf1(ctx->memory, "cannot isolate alpha channel in %d bpc images\n", image->bits); if (image->bits == 8) xps_isolate_alpha_channel_8(ctx, image); if (image->bits == 16) |