This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PATCH: Support __WORDSIZE == 64 in i386/bits/wchar.h
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Roland McGrath <roland at hack dot frob dot com>
- Cc: "H.J. Lu" <hjl dot tools at gmail dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Thu, 31 May 2012 22:56:51 +0000 (UTC)
- Subject: Re: PATCH: Support __WORDSIZE == 64 in i386/bits/wchar.h
- References: <20120531154723.GA5304@intel.com> <20120531222710.9EF612C097@topped-with-meat.com>
On Thu, 31 May 2012, Roland McGrath wrote:
> It seems to me it would be better just to make the common bits/wchar.h
> cast the values to wchar_t so that the generic definitions will produce
> the right type across the board. Then we can remove i386/bits/wchar.h.
These macros must be usable in #if conditions, so they cannot contain
casts. (I haven't yet got that far in making the conform/ tests assert
such things; I still have two C90 headers to do before going onto C90
Amendment 1 headers and then C99 and C11 headers.)
--
Joseph S. Myers
joseph@codesourcery.com