Re: Style Question

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jan Engelhardt <jengelh@...>
Cc: Daniel Hazelton <dhazelton@...>, Cong WANG <xiyou.wangcong@...>, <linux-kernel@...>
Date: Sunday, March 11, 2007 - 9:43 pm

On Mar 11, 2007, at 21:32:00, Jan Engelhardt wrote:

You chopped my sentence in half! :-D  What I *really* said was:

The pseudo-standard "#define NULL (0)" that the C++ standards ask for  
does *NOT* give an error for "int foo = NULL;", and in C++ the C- 
standard "#define NULL ((void *)0)" *does* give an error for "char  
*foo = NULL;"  Ergo I think I was correct when I said "GCC uses  
[__null] to give type conversion errors for <the-first> but not <the- 
second>"

Cheers,
Kyle Moffett
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Style Question, Cong WANG, (Sun Mar 11, 10:15 am)
Re: Style Question, Jan Engelhardt, (Sun Mar 11, 4:35 pm)
Re: Style Question, Cong WANG, (Mon Mar 12, 1:37 am)
Re: Style Question, Jan Engelhardt, (Mon Mar 12, 1:40 am)
Re: Style Question, Randy.Dunlap, (Mon Mar 12, 2:18 am)
Re: Style Question, Nicholas Miell, (Mon Mar 12, 1:52 am)
Re: Style Question, Daniel Hazelton, (Sun Mar 11, 4:41 pm)
Re: Style Question, Kyle Moffett, (Sun Mar 11, 6:01 pm)
Re: Style Question, Jan Engelhardt, (Sun Mar 11, 7:16 pm)
Re: Style Question, Kyle Moffett, (Sun Mar 11, 9:27 pm)
Re: Style Question, Jan Engelhardt, (Sun Mar 11, 9:32 pm)
Re: Style Question, Kyle Moffett, (Sun Mar 11, 9:43 pm)
Re: Style Question, Bernd Petrovitsch, (Sun Mar 11, 10:22 am)