[gs-devel] What is a reasonable value for 'gp_file_name_sizeof'
Ray Johnston
Ray.Johnston at Artifex.com
Mon Aug 27 11:43:28 PDT 2007
All,
In looking into a support issue for a customer (#1), I noticed that
src/gp.h has '#define gp_file_name_sizeof 260' with a comment that
this is the maximum size for Windows.
This strikes me as extremely unlikely to be the Windows limit (at
least since Windows 98 added long file name support).
This also strikes me as something that could cause problems on
many systems where the paths get quite long.
This value is shared among 34 modules so modifying them all to
switch to dynamically allocated strings is probably more work
than we need to do (since, AFAIK, we don't have current bugs),
but increasing this to a value that is more reasonable on today's
OS's seems warranted.
Please weigh in on what value we should use, and if you know of any
OS that has a limitation, please mention it.
Just to throw out a number, I suggest 2048 bytes (I didn't want to
go too large since many of these are stack based (automatic).
Regards,
Ray
------------------------------------------------------------------------
More information about the gs-devel
mailing list