[gs-devel] ELF linking, large files
gsview at ghostgum.com.au
Thu Sep 19 15:45:32 PDT 2002
I have two separate questions:
Both GSview and ghostscript use the same DSC parser source code.
Each contains a copy of the code. When GSview on Linux loads
the ghostscript shared object, the shared object uses GSview's
copy of the DSC parser code, not its own. If the DSC data
structure in GSview changed, it would break ghostscript. Is
there a way to specify that the ghostscript should use the
internal copy of the DSC parser, not the one in GSview?
I have had a request to make GSview handle large files > 4GB.
At present the DSC parser stores file offsets as unsigned long.
I could change this to use 64-bit integers, although this would
require changes to the DSC data structure. The problem then
becomes how do you position to a 64-bit offset. fseek only
takes an unsigned long offset. fsetpos can go to a saved
location (which we don't know), but you can't give it an offset.
So far my only solution seems to be to use multiple fseek calls
with a 1GB offset until I reach near the desired point. Any
Russell Lang gsview at ghostgum.com.au
Ghostgum Software Pty Ltd http://www.ghostgum.com.au/
More information about the gs-devel