summaryrefslogtreecommitdiff
path: root/pxl
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2010-05-04 12:34:27 +0000
committerRobin Watts <robin.watts@artifex.com>2010-05-04 12:34:27 +0000
commit93f1376a5f5c45cd980cfb39efde74ae55d683a5 (patch)
tree63df93a0baa0d951a249cabd1a965e86316f5527 /pxl
parenta9f911bafc9a4f0b8432f1502d879c04a8ef1121 (diff)
As part of the efforts towards bug 691207 (global variables must be removed)
this commit reduces the reliance on mem_err_print. Currently all calls to errwrite and errflush get the stdin/out/err details from a global mem_err_print. For multithreaded gs this will result in output going to the wrong place if any of them are redirected. This review splits errwrite into 2 variants, errwrite and errwrite_nomem. The first takes an explicit mem pointer. The second continues to assume a global one. The plan is to make everything possible use the first. Currently debugging calls and some 'stubborn' devices continue to call errwrite_nomem. Local cluster testing shows no differences. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11173 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'pxl')
-rw-r--r--pxl/pxtop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pxl/pxtop.c b/pxl/pxtop.c
index fe99c4fd0..09bd67e9d 100644
--- a/pxl/pxtop.c
+++ b/pxl/pxtop.c
@@ -522,12 +522,12 @@ pxl_impl_report_errors(
code, st, pxs)) >= 0
)
{ if ( (report & eBackChannel) || force_to_cout )
- errprintf(message);
+ errprintf(pxli->memory, message);
if ( report & eErrorPage )
y = px_error_page_show(message, y, pxs);
}
if ( ((report & pxeErrorReport_next) && file_position != -1L) || force_to_cout )
- errprintf("file position of error = %ld\n", file_position);
+ errprintf(pxli->memory, "file position of error = %ld\n", file_position);
if ( report & eErrorPage )
{ px_args_t args;
args.pv[0] = 0;