diff options
author | Robin Watts <robin.watts@artifex.com> | 2010-05-04 18:47:12 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2010-05-04 18:47:12 +0000 |
commit | 5f761d44d28b2d40283df7474daee37e5f149035 (patch) | |
tree | c841b8464d66526a30f33de76089184b1ec282ca /gs/base/gdevpdtt.c | |
parent | 1a3a4aa332c4ac0e0710cc7306a69732747cc19a (diff) |
As part of the work for bug 691207 (remove global variables) we introduce
a new set of macros, "emprintfX". These do the same as the "eprintfX"
macros, except they take an explicit memory reference rather than using
the mem_err_print global.
The plan is to move everything possible over to using emprintf, leaving
callers of eprintf as 'unsafe' in multithreaded builds.
This review changes all callers of eprintf in ghostscript except:
gdevsco.c, gp_iwatc.c, gp_macio.c, gp_mswin.c, gp_os2.c, gp_os2pr.c,
gp_unifs.c, gp_vms.c, gsfid.c, contrib\*, jasper\*.
1 instance in gzspotan.c remains unchanged, but it should never be used.
Local cluster testing shows no build problems.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11176 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/base/gdevpdtt.c')
-rw-r--r-- | gs/base/gdevpdtt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gs/base/gdevpdtt.c b/gs/base/gdevpdtt.c index 99cc988b9..eb4421b1f 100644 --- a/gs/base/gdevpdtt.c +++ b/gs/base/gdevpdtt.c @@ -2538,8 +2538,9 @@ pdf_text_process(gs_text_enum_t *pte) memcpy(KeyName, penum->current_font->key_name.chars, len); KeyName[len] = 0x00; - eprintf4("ERROR: Page %d used undefined glyph '%s' from type 3 font '%s', key '%s'\n", - pdev->next_page, glyph, FontName, KeyName); + emprintf4(pdev->memory, + "ERROR: Page %d used undefined glyph '%s' from type 3 font '%s', key '%s'\n", + pdev->next_page, glyph, FontName, KeyName); stream_puts(pdev->strm, "0 0 0 0 0 0 d1\n"); } |