autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: path separator


From: Ralf Wildenhues
Subject: Re: path separator
Date: Tue, 23 Jan 2007 19:51:02 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

* Keith MARSHALL wrote on Tue, Jan 23, 2007 at 05:50:24PM CET:
> Ralf Wildenhues wrote:
> 
> >   defined (__OS2__)
> > # define HAVE_DOS_BASED_FILE_SYSTEM
> > # ifndef DIR_SEPARATOR_2
> > #  define DIR_SEPARATOR_2 '\\'
> > # endif
> > # ifndef PATH_SEPARATOR_2
> > #  define PATH_SEPARATOR_2 ';'
> > # endif
> > #endif
> 
> I've never found it particularly useful to distinguish between '/'
> and '\\' as DIR_SEPARATOR chars; for most purposes MS-Windows, and
> MS-DOS before it, *don't* *need* '\\', so you may as well just use
> '/' on every platform.  There is only one exception I can think of,
> and IME it's rarely encountered in practice; of course, it may be
> different on OS2, of which I have no experience.

Well, if you want to *parse* file names given to you from some external
input, then also recognizing '\\' as directory separator is just being
liberal in what you accept.

Cheers,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]