This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

__null is set to zero? (gcc/cp/lex.c 3.3.2 src) using Gimpel Flexelint


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]