summaryrefslogtreecommitdiff
path: root/psi/imain.h
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 /psi/imain.h
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 'psi/imain.h')
-rw-r--r--psi/imain.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/psi/imain.h b/psi/imain.h
index e16c7d06b..5d3c8e190 100644
--- a/psi/imain.h
+++ b/psi/imain.h
@@ -85,6 +85,10 @@ int gs_main_init1(gs_main_instance * minst);
*/
int gs_main_init2(gs_main_instance * minst);
+int
+gs_main_set_language_param(gs_main_instance *minst,
+ gs_param_list *plist);
+
/*
* The runlibfile operator uses a search path, as described in
* Use.htm, for looking up file names. Each interpreter instance has