diff options
author | Robin Watts <robin.watts@artifex.com> | 2019-01-01 18:34:45 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2019-01-04 15:43:49 +0000 |
commit | 7fe04b119618b476586e5f5b85c46d72ff05ebfc (patch) | |
tree | 8a0a723b407f95fc58e973705ffb0a210b26ee26 /pcl/pl/pltop.c | |
parent | 2bc43397c39db60b865ca6afd14c048d9e595359 (diff) | |
download | ghostpdl-7fe04b119618b476586e5f5b85c46d72ff05ebfc.tar.gz |
Add -I handling to gpdl.
This requires an "add_path" entrypoint be added for each language
(NULL for everything except PS).
This causes the block of memory used for the -I path to be leaked. I
suspect this is the same as in gs. A fix for this is a little involved
so it'll wait for now.
Diffstat (limited to 'pcl/pl/pltop.c')
-rw-r--r-- | pcl/pl/pltop.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pcl/pl/pltop.c b/pcl/pl/pltop.c index 5b8669416..1f202ffeb 100644 --- a/pcl/pl/pltop.c +++ b/pcl/pl/pltop.c @@ -66,6 +66,16 @@ pl_set_param(pl_interp_implementation_t *impl, return impl->proc_set_param(impl, type, param, value); } +int +pl_add_path(pl_interp_implementation_t *impl, + const char *path) +{ + if (impl->proc_add_path == NULL) + return 0; + + return impl->proc_add_path(impl, path); +} + int pl_post_args_init(pl_interp_implementation_t *impl) { if (impl->proc_post_args_init == NULL) |