Re: Nitpicking PATCH - path v/s directory separator in stdio.h

"Luke Dunstan" <[email protected]>
Newsgroups gmane.comp.gnu.mingw.patches
Message-ID <[email protected]>


>From: Earnie Boyd <earnie_boyd-/[email protected]>
>Reply-To: [email protected]
>To: Ranjit Mathew <[email protected]>
>CC: [email protected]
>Subject: Re: [MinGW-patches] Nitpicking PATCH - path v/s directory 
>separator in  stdio.h
>Date: Mon, 16 Sep 2002 07:41:24 -0400
>
>Ranjit Mathew wrote:
> >
> > --- stdio.h.orig        Mon Sep 16 10:50:14 2002
> > +++ stdio.h     Mon Sep 16 10:50:40 2002
> > @@ -6,5 +6,5 @@
> >    *
> >    * NOTE: The file manipulation functions provided by Microsoft seem to
> > - * work with either slash (/) or backslash (\) as the path separator.
> > + * work with either slash (/) or backslash (\) as the directory 
>separator.
> >    *
> >    * This file is part of the Mingw32 package.
> >
>
>A path can contain a file part and directory can't.  The [back]slash
>also delimits (separates) the file part as well as the directory parts,
>therefore it is a path separator.
>
>Earnie.

Earnie,

I was about to say exactly what you said but I hesitated because I realised 
that "path separator" is sometimes used to mean "a character that separates 
multiple paths" (e.g. in PATH), and other times used to mean "a character 
that separates the components of a single path". IIRC Ranjit has been 
playing with building GCC, and I noticed that the GCC source uses this 
terminology (and uses "directory separator" for the second meaning). In the 
context of this comment in stdio.h the meaning is obvious whichever term you 
use, so I'm not going to worry :)

Luke


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.