Mail Archives: djgpp-workers/2000/05/16/18:13:22
> From: "Mark E." <snowball3 AT bigfoot DOT com>
> Date: Tue, 16 May 2000 09:24:59 -0400
>
> The patch
> translates '/dev/env/DJDIR/' to canonical form because there is a routine in
> gcc that compares paths and generates a relative path. Comparing a path like
> 'c:/foo/bar' to '/dev/env/DJDIR' is obviously not a good idea.
Ugh! Why can't Unix programmers learn that file names are not
strings, and cannot be taken apart at will and compared literally??
You *are* aware that this will all fall apart if the value of DJDIR
changes while GCC runs, yes? Yes, I know that currently there's no
such danger, but it's a trap waiting for its victim...
How important is the code that computes relative file names? If it
can be worked around, I would suggest ditching it altogether (for the
DJGPP version). After all, it is quite possible to generate the other
path names from /dev/env/DJDIR/ without going through a relative name,
right?
- Raw text -