This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: VAX PATCH: remove FILE_NAME_NONDIRECTORY
John David Anglin wrote:-
> > This is what mkdeps.c used to use, before I pushed for use to use basename
> > instead (we dropped VMS support since no-one was prepared to fix the bit
> > rot at the time):
>
> Having looked some more at the pros and cons of using basename, I believe
> it is not portable. Thus, I would prefer not to use it.
But you're effectively writing your routine to do basename the VMS way, so
I cannot understand your point.
It may be that you need to change basename()'s interface so that it
returns a malloc-ed string which the caller is reponsible for freeing;
I would prefer that to giving up on creating shared portable code.
Neil.