This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ patch] accept __null as sentinel
FWIW, Michael, I agree that allowing NULL (and thus __null) to be used
as a valid sentinal is the only way this will practically be useful to
real code.
No matter what the C++ standard might say, there are too many people
that expect C++ to work like C (and vice-versa). Thus sizeof(NULL)
must equal sizeof(void *), and woe to the poor sod that thinks they
can deploy an abi that passes pointers and integers in different
places --- at least wrt stdargs.
r~