Re: svn commit: r205954 - head/include

[ Available lists | Index of svn-src-all | Month of Apr 2010 | Week of 15 Apr 2010 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
David Schultz <das@FreeBSD.ORG>
Date
15 Apr 2010 21:27:35
Subject
Re: svn commit: r205954 - head/include
Message-ID
20100415212734.GA17239@zim.MIT.EDU


[ Hide this part ]
On Wed, Mar 31, 2010, Juli Mallett wrote:
> Be like stdlib.h and bring in a wchar_t definition and use it to prototype
> wcstoimax and wcstoumax, rather than spelling it __wchar_t. This is necessary
> to use these functions in C++ where wchar_t is different to __wchar_t and is
> a built-in type.

I don't think this change is correct for C mode. POSIX says
wchar_t is *supposed* to be defined by stdlib.h and wchar.h, but
its definition is namespace pollution elsewhere.

> It may be better to use __wchar_t here and to simply define __wchar_t as being
> wchar_t in C++ mode rather than to bring in wchar_t

That may be better.


Elapsed time: 0.112 seconds