This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
__null is set to zero? (gcc/cp/lex.c 3.3.2 src) using Gimpel Flexelint
- From: Ken Wolcott <ken dot wolcott at med dot ge dot com>
- To: gcc mailing list <gcc at sources dot redhat dot com>
- Date: Wed, 26 Nov 2003 15:11:27 -0600
- Subject: __null is set to zero? (gcc/cp/lex.c 3.3.2 src) using Gimpel Flexelint
- Organization: GEMS-IT
- Reply-to: ken dot wolcott at med dot ge dot com
Hi;
We're using flexelint 8.00n (www.gimpel.com) for linting C/C++ code on a
Linux platform. Flexelint has a gnu "mode" but doesn't understand that
"__null" is a built in constant in gcc/g++ (please correct me if that was
incorrect terminology). I looked in gcc 3.3.2 sources and found in
gcc/cp/lex.c at line 353 that __null is set to zero...
353 { "__null", RID_NULL, 0 },
So I added a define to the flexelint configuration for gnu (co-gnu3.lnt) so
that __null was set to zero. Is this the right thing to do? Gimpel is
punting for the Thanksgiving long weekend, but I suspect that they will punt
next week as well :-)
Does somebody have a more intelligent solution?
Thanks,
Ken Wolcott