r204164 - Creating a printing policy for "half":

Peter Collingbourne peter at pcc.me.uk
Tue Mar 18 18:46:21 PDT 2014

On Tue, Mar 18, 2014 at 03:38:29PM -0700, Matt Arsenault wrote:
> On 03/18/2014 03:33 PM, Tom Stellard wrote:
>> Is this not allowed?
> Yes, all of the standard C headers are removed. All of the available  
> library functions and types should appear should always be defined and  
> not require including a header.

Not all of them, according to section 6.9f of the specification:

The library functions defined in the C99 standard headers assert.h, ctype.h, 
complex.h, errno.h, fenv.h, float.h, inttypes.h, limits.h, 
locale.h, setjmp.h, signal.h, stdarg.h, stdio.h, stdlib.h, 
string.h, tgmath.h, time.h, wchar.h and wctype.h are not available 
and cannot be included by a program. 

So stddef.h should be allowed.


More information about the cfe-commits mailing list