This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Predefining __OS_DOS__
- To: "Geert Bosch" <bosch at gnat dot com>
- Subject: Re: Predefining __OS_DOS__
- From: Jeffrey A Law <law at hurl dot cygnus dot com>
- Date: Fri, 11 Dec 1998 10:02:35 -0700
- cc: "Peter Gerwinski" <peter at gerwinski dot de>, "egcs at cygnus dot com" <egcs at cygnus dot com>, "Frank Heckenbach" <frank at tim dot gerwinski dot de>
- Reply-To: law at cygnus dot com
In message <9812111040.AA25982@nile.gnat.com>you write:
> 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.
>
> Such definitions can be set in the appropriate configuration files
> and then there is no need for #ifdef's in the actual code.
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.
jeff