Mail Archives: djgpp-workers/2000/01/19/22:28:43
On Wed, 19 Jan 2000, Eli Zaretskii wrote:
> >
> > foo.sav might be more reasonable.
>
> I agree: IMHO foo.sav is better.
That's what I meant, not foo.csav, sorry (getting used to 8.3 must be
hard!).
I've submitted my final changes to gcc-patches that include two things
that handle 8.3 filenames:
- use foo.cX instead of foo.c.X
- use foo.sav instead of foo.c.save
when __MSDOS__ is defined.
My patch does *not* contain the djgpp-specific code using $DJGPP magic
variable. DJGPP folks will have to take that one up once my last change
is in.
> It would be even nicer if the code would test whether long file names
> are supported, and if so, use the original .save extension appended to
> the file name. A call to pathconf (with the _PC_NAME_MAX argument) is
> all you need to check for long file names: if it returns 12, long
> names aren't available (if they are, it will typically return 255).
I agree, especially on systems that support pathconf(). Unfortunately,
it tells you nothing about how many "."s you can have, so you'll still
need __MSDOS__/__DJGPP__ and so on.
I'm done with what I had intended to do for protoize, at least for now.
Regards,
Mumit
- Raw text -