Hi Bill,
Another thought -- why not look for the THIRD character to be a backslash? This will handle not only absolute paths that start with <single drive letter>:\ but also relative paths that start with ..\ -- what do you think? --Bill
That wouldn't work. Not all relative paths start with "..". For example if the file is in a sub-directory of the build directory then the path might just be "<sub-dir-name>/<file-name>".
In addition it is possible that the backslash character might be there to escape an unconventional path name character. For example suppose that (in a UNIX style naming convention) the root directory contains a sub-directory called "A Directory", and the code wants to reference a file called "Foo" inside this directory. This would appear as
/A\ Directory/Foo Cheers Nick _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils