Re: Nitpicking PATCH - path v/s directory separator in stdio.h
Ranjit Mathew <[email protected]>
| Newsgroups | gmane.comp.gnu.mingw.patches |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I come from a Java background, where the terms "file
separator", "line separator" and "path separator" are
as described in:
http://java.sun.com/docs/books/tutorial/essential/system/properties.html
(Sorry, my change should have been to call it a "file separator"
instead of "directory separator" in this light.)
Ranjit.
Luke Dunstan wrote:
>
>
>
>> 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
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf