This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Predefining __OS_DOS__
- To: Jeffrey A Law <law at hurl dot cygnus dot com>
- Subject: Re: Predefining __OS_DOS__
- From: Kamil Iskra <kamil at dwd dot interkom dot pl>
- Date: Sat, 12 Dec 1998 14:59:59 +0100 (EET)
- cc: egcs at cygnus dot com
On Fri, 11 Dec 1998, Jeffrey A Law wrote:
> > What would be most helpful for those of us using non-Unix systems
> > (whether Win32, OS/2, DOS, VMS or other) is not to embed knowledge
> > about things like filenames all over the place, but instead use functions
> > or macros like IS_DIR_SEP(X), IS_ROOTED_PATH(X) to test for directory
> > separators or rooted paths.
[snip]
> Yes. DIR_SEPARATOR shows up in cpp and other parts of gcc, but it's not
> used as often as it should be. Using it more would allow for some cleanups
> of both the dos and vms support.
Using DIR_SEPARATOR is *NOT* appropriate, strictly speaking. It implies
that only one character can be used for dir separation. This is true under
UNIX, but not under AmigaOS, for example, where ':' can be used in some
cases (and, unlike under Dos, it is usually NOT followed by
DIR_SEPARATOR).
/ Kamil Iskra AmigaOS Linux/i386 Linux/m68k \
| GeekGadgets m68k-amigaos GCC maintainer |
| iskra@student.uci.agh.edu.pl kiskra@ernie.icslab.agh.edu.pl |
\ kamil@dwd.interkom.pl http://student.uci.agh.edu.pl/~iskra /