On Tue, 2003-12-23 at 01:28, bulia byak wrote:
Forgot to mention that I'm not sure that it works under win32, so I commented it there (i.e. win32 uses the old method with relative paths). Someone doing win32 port will need to uncomment and test this function, and probably extend it for things like drive letters etc.
I believe Glib contains code for doing that much (picking out e.g "volume names" aka drive letters), so that shouldn't be too big a deal.
The rules for .. and . on Win32 and Unix are the same, so we should be able to write a generic routine that should work for both, without any #ifdefs. Thankfully MacOS (X) is also a Unix now.
Also, if we introduce g_rel2abs into the Inkscape codebase, please put them in our namespace (Inkscape) without the g_ prefix; we don't want to pollute glib's namespace.
-mental