This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: __SIZE_TYPE__ and friends out of specs


On Tue, May 14, 2002 at 11:39:22PM +0100, Neil Booth wrote:
> A macro, or maybe a file-scope variable
> 
> static const char *wchar_type_text;
> [...]
>   whcar_type_text = flag_short_wchar ? "short unsigned int" ?  WCHAR_TYPE;
>   wchar_type_node = get_identifier (wchar_type_text);
> [...]
> 
> and use wchar_type_text in your code rather than WCHAR_TYPE.  I don't
> think it's worth doing anything harder, or doing anything more complex
> for the other types (at least until they start varying with command line
> options).

Okay.  I'm going to go with a macro, since that avoids introducing a
hidden ordering dependency between c_common_nodes_and_builtins and
cb_register_builtins.  MODIFIED_WCHAR_TYPE sound good to you?

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]