[gs-devel] perl module for ghostscript API
Russell Lang
gsview at ghostgum.com.au
Thu Apr 4 15:01:51 PST 2002
Forrest,
I just saw your www.ghostscript.com diary entry about
gsapi_exit() calling the C exit. I recognise this problem
from experience.
The problem with gsapi_exit() calling exit is in
gp_do_exit() within gp_vms.c. This is a VMS only problem.
There are two ways to fix this. One method is to make
gp_do_exit() do nothing. This will stop the C exit() being
called, but the main() function will return 0 for success.
Does VMS accept main returning 0 for success or does it
still require the special values in stdpre.h?
The other way is to have main() call gp_do_exit(), but not
gsapi_exit(). If possible, I'd prefer to drop the old VMS
code.
When you have the perl module finished, would you be
willing to make it available for download from the
Ghostscript contrib directory?
Russell Lang gsview at ghostgum.com.au
Ghostgum Software Pty Ltd http://www.ghostgum.com.au/
More information about the gs-devel
mailing list