diff options
author | Robin Watts <robin.watts@artifex.com> | 2010-05-04 12:34:27 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2010-05-04 12:34:27 +0000 |
commit | 93f1376a5f5c45cd980cfb39efde74ae55d683a5 (patch) | |
tree | 63df93a0baa0d951a249cabd1a965e86316f5527 /gs/base/gp_unifs.c | |
parent | a9f911bafc9a4f0b8432f1502d879c04a8ef1121 (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 'gs/base/gp_unifs.c')
-rw-r--r-- | gs/base/gp_unifs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gs/base/gp_unifs.c b/gs/base/gp_unifs.c index 568bde3c3..2426229c6 100644 --- a/gs/base/gp_unifs.c +++ b/gs/base/gp_unifs.c @@ -184,10 +184,10 @@ wmatch(const byte * str, uint len, const byte * pstr, uint plen, int i; dlputs("[e]string_match(\""); for (i=0; i<len; i++) - errprintf("%c", str[i]); + errprintf_nomem("%c", str[i]); dputs("\", \""); for (i=0; i<plen; i++) - errprintf("%c", pstr[i]); + errprintf_nomem("%c", pstr[i]); dprintf1("\") = %s\n", (match ? "TRUE" : "false")); } return match; |