summaryrefslogtreecommitdiff
path: root/pcl/pl/pltop.c
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2020-07-30 19:16:13 +0100
committerRobin Watts <Robin.Watts@artifex.com>2020-08-03 18:02:41 +0100
commitbf6884134c244c4766d13c76264fa4372eab4056 (patch)
treeab1af05f3c1ae6b8f76545def0c41770701d71f0 /pcl/pl/pltop.c
parent49a4fede913a12a61fd6649898cf5999030f4b69 (diff)
downloadghostpdl-bf6884134c244c4766d13c76264fa4372eab4056.tar.gz
gsapi_set_param improvements.
Allow for a 'parsed' param type; this leverages the functions in gsparaml.c to parse an input string into a param list, coping with dictionaries and arrays. We update those functions to improve behaviour on more exotically formed numbers ("- 0.3e-10" etc), on 'tricksy' inputs (e.g. "<< /Foo (>>) >>" etc) and to cope without relying on whitespace (e.g. "<</Foo/Bar/Baz[1 0]/Fizz<1234>/Bang(A)>>" etc). Update pl_implementation set_param entrypoint so that the language interface itself is based upon param lists, rather than typed params. Update both implementations of gsapi_set_params so that if we are too early in the setup process stuff goes into the list and is held until we have devices/languages to pass it to. Also add a flag to allow for 'more to come' so that we can effectively set multiple params at once.
Diffstat (limited to 'pcl/pl/pltop.c')
-rw-r--r--pcl/pl/pltop.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/pcl/pl/pltop.c b/pcl/pl/pltop.c
index 82ba85048..1bf6519c7 100644
--- a/pcl/pl/pltop.c
+++ b/pcl/pl/pltop.c
@@ -56,14 +56,12 @@ pl_get_device_memory(pl_interp_implementation_t *impl)
int
pl_set_param(pl_interp_implementation_t *impl,
- pl_set_param_type type,
- const char *param,
- const void *value)
+ gs_param_list *plist)
{
if (impl->proc_set_param == NULL)
return 0;
- return impl->proc_set_param(impl, type, param, value);
+ return impl->proc_set_param(impl, plist);
}
int