bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RFC: maint: c++: use nullptr for C++11


From: Hans Aberg
Subject: Re: RFC: maint: c++: use nullptr for C++11
Date: Fri, 30 Mar 2012 23:49:06 +0200

On 30 Mar 2012, at 20:15, Paul Eggert wrote:

> On 03/30/2012 07:38 AM, Akim Demaille wrote:
> 
>> I am explicitly expecting NULL to be defined for C
> 
> That's not a portable assumption, since NULL is defined in
> include files like <stddef.h>, and the C parsers try to avoid
> including <stddef.h> etc. in order to keep the name-space as
> clean as possible.  

That would not help, because size_t is used, which is in the same header.

> At least, yacc.c does that; I didn't check
> the others.

H&S says that before ISO C, it could be in a different header or defined 0. 
Perhaps yacc sticks to those old conventions.

Hans





reply via email to

[Prev in Thread] Current Thread [Next in Thread]