C++ issue on 4.11: kpopupmenu.h [Please review]
barner at FreeBSD.org
Thu Mar 10 11:25:29 PST 2005
Volker Stolz wrote:
> As far as I know, all systems with NULL != 0L have either been molten down
> or are otherwise not in a position to run KDE :)
AFAIK, null pointers in C++ are supposed to be written as 0 (or OL for
(some?) 64 bit platforms).
NULL is a construct that has been introduced with K&R C, where it was
defined as follows:
#define NULL ((void*) 0)
Today's C compilers also accept 0 instead of NULL.
So, in your case, using 0 should be just fine.
Btw.: I just grepped /usr/include on both FreeBSD 4.11 and 5.3, and
in the latter case there seems to have some substantial cleanup regarding
FreeBSD 5 has include/sys/_null.h (which is #included by stdio.h),
whereas 4.x has several places where #ifndef NULL #define ... is used.
Perhaps some _really_ NULL-savant could step in here and clarify things
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20050310/f4d81610/attachment.bin
More information about the freebsd-ports