summaryrefslogtreecommitdiff
path: root/xps
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2010-05-05 18:14:21 +0000
committerRobin Watts <robin.watts@artifex.com>2010-05-05 18:14:21 +0000
commitf635c0d418564e82472b2b61db6efc5258f44f01 (patch)
tree0cde3183af3324f64877cc80056b231f1d6703ac /xps
parentce2bb39917e8b07c2008b4bd2998291cec2fa417 (diff)
More work towards bug 691207 (global variable removal).
There are 4 places is xps where we do eprintfs that access mem_err_print. This resolves 1, the other 3 should never be called in files we support. Resolve 4 const warnings from jasper. Remove 2 calls to gs_lib_ctx_get_non_gc_memory_t from the cups driver. This means the only places left calling this are devices in gs\contrib. Convert calls to errprint_nomem to calls to errprint (in gdevx.c, gxttb.c, gdevupd.c) The only places using mem_err_print are therefore: * calls to debug printing functions * devices in gs/contrib calling gs_lib_gtx_get_non_gc_memory, errprint_nomem, and eprintf. * jasper calling eprintf. * gdevsco.c (but that seems intrinsically single threaded to me as only one thing can be using the console at a time, presumably) * signal handlers in os2 and iwatc for catching numeric exceptions. * Various devices in gs/base still call errprintf_nomem - some in DEBUG only code, but some not. * The gs_throw_imp function. I think this may be as good as we can get at this point. No differences expected, or shown by local cluster testing. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11187 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'xps')
-rw-r--r--xps/xpsfont.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xps/xpsfont.c b/xps/xpsfont.c
index 1a4372e63..53933ff62 100644
--- a/xps/xpsfont.c
+++ b/xps/xpsfont.c
@@ -105,7 +105,7 @@ xps_new_font(xps_context_t *ctx, byte *buf, int buflen, int index)
code = xps_load_sfnt_cmap(font);
if (code < 0)
{
- errprintf_nomem("warning: no cmap table found in font\n");
+ errprintf(ctx->memory, "warning: no cmap table found in font\n");
}
return font;