summaryrefslogtreecommitdiff
path: root/gs/base/gslibctx.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2010-04-08 21:42:54 +0000
committerRobin Watts <robin.watts@artifex.com>2010-04-08 21:42:54 +0000
commit6abf140db860f2f4e1fea5b413558bbf47c02697 (patch)
treea3978e4c4aaa34255bd58f534a5611f2c15ad9a7 /gs/base/gslibctx.c
parenta84e2feaf3cb7f11e681e140eee82f57c1798c4a (diff)
downloadghostpdl-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.c7
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.
*/