Messages in this thread | | | Subject | Re: [PATCH] 2.4.22pre10: {,un}likely_p() macros for pointers | From | Alan Cox <> | Date | 09 Aug 2003 11:42:54 +0100 |
| |
On Sad, 2003-08-09 at 09:51, David S. Miller wrote: > I believe the C language allows for systems where the NULL pointer is > not zero.
Its a fudge for some systems. However NULL == 0 is always true.
> I can't think of any reason why the NULL macro exists otherwise.
<OldFart> NULL is really important in K&R C because you don't have prototypes and sizeof(foo *) may not be the same as sizeof(int). This leads to very nasty problems that people nowdays forget about. </OldFart>
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |