This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC headers and DJGPP port
- To: law at cygnus dot com
- Subject: Re: GCC headers and DJGPP port
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 22 Jul 2000 20:12:52 +0200
- Cc: Eli Zaretskii <eliz at is dot elta dot co dot il>, mrs at windriver dot com, djgpp-workers at delorie dot com, gcc at gcc dot gnu dot org, martin at loewis dot home dot cs dot tu-berlin dot de
- Organization: CodeSourcery, LLC
- References: <10276.964283575@upchuck>
Jeffrey A Law <law@cygnus.com> writes:
[...]
| Let's take the __null issue again. According to the C++ standard it is
| an implementation-defined C++ null pointer constant -- it also states
| that (void *)0 is not an acceptable value.
|
| It turns out that using "0" doesn't work, nor does "0L" for reasons I
| can't remember.
"0" or "0L" might be acceptable, for an appropriate definition of
"acceptable". However, I'm firmly convinced that GCC's approach is the
way to go, as far as the C++ front-end is concerned. It enables us to
issue warning when a use of NULL might lead to unintended semantic.
In that regard, GCC is far superior to its competitors.
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com