diff options
author | Robin Watts <robin.watts@artifex.com> | 2010-04-08 21:42:54 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2010-04-08 21:42:54 +0000 |
commit | 6abf140db860f2f4e1fea5b413558bbf47c02697 (patch) | |
tree | a3978e4c4aaa34255bd58f534a5611f2c15ad9a7 /gs/base/gslibctx.c | |
parent | a84e2feaf3cb7f11e681e140eee82f57c1798c4a (diff) | |
download | ghostpdl-6abf140db860f2f4e1fea5b413558bbf47c02697.tar.gz |
Move io_device_table from being a global static in gsiodev.c into
the library context. In order to retrieve it we need to update
lots of functions to take a gs_memory_t * as well.
Localcluster testing shows no expected differences.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11045 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/base/gslibctx.c')
-rw-r--r-- | gs/base/gslibctx.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gs/base/gslibctx.c b/gs/base/gslibctx.c index bcfc7c843..bb9a37343 100644 --- a/gs/base/gslibctx.c +++ b/gs/base/gslibctx.c @@ -82,6 +82,13 @@ int gs_lib_ctx_init( gs_memory_t *mem ) return 0; } +gs_lib_ctx_t *gs_lib_ctx_get_interp_instance(const gs_memory_t *mem) +{ + if (mem == NULL) + return NULL; + return mem->gs_lib_ctx; +} + /* Provide a single point for all "C" stdout and stderr. */ |