On Tue, Jul 10, 2001 at 05:00:14PM +0200, Foley, Brian (Galway) wrote:
> I don't think you really need to explicitly kill the interpreter. On a real
> PS printer, the interpreter is continually running a job server, and when it
> falls off the end of a job, that job context is just ended.
yes, true. it just made ghostscript foo.ps exit nicely.
> To duplicate a string you could do something like the following:
> There is a cleaner way that I figured out at some stage. Something to do
> with using forall I think. I've got it scribbled down somewhere at home, so
> I'll bring it in tomorrow.
yes, you could forall the array of strings and get a sum of their lengths.
then allocate the string. then do a forall again on the array adding
them to the allocated string and incrementing the offset. actually coding
that in ps is a bit beyond my abilities.
> Does getenv really exist in GhostScript BTW? Its definitely not in the PS
> reference manual, so I assume it must be a GNUism.
yeah. not really a call for env vars in an embedded app (ie a printer).
see Language.htm in the ghostscript doc dir (assuming a redhat install).
kevin at suberic.net "linux is a cancer" --steve ballmer
fork()'ed on 37058400 "released 25 august 1991, linux is a virgo" --me
meatspace place: home linux, not just a star-sign:
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!