GCC wint_t patch

Joseph S. Myers jsm28@cam.ac.uk
Fri Aug 4 05:49:00 GMT 2000


On Sun, 9 Jul 2000, Zack Weinberg wrote:

> > 2000-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
> > 
> > 	* ginclude/stddef.h: Don't declare wint_t unless __need_wint_t.
> > 	* c-common.h (enum c_tree_index): Add CTI_WINT_TYPE.
> > 	(wint_type_node): Define.
> > 	* c-decl.c (WINT_TYPE): Define.
> > 	(init_decl_processing): Create the wint_type_node type.
> > 	* cppdefault.h (WINT_TYPE): Define.
> > 	* cppinit.c (builtin_array): Define __WINT_TYPE__.
> > 	* tradcpp.c (initialize_builtins): Define __WINT_TYPE__.
> > 	* tm.texi (NO_BUILTIN_WINT_TYPE, WINT_TYPE): Document.
> > 	* c-common.c (T_WI): Define.
> > 	(print_char_table): Use T_WI for %lc format.
> 
> I approve the changes to cppdefault.h, cppinit.c, tradcpp.c, and
> tm.texi.

I've installed those parts of the patch; could someone review the rest
(the changes to the compiler proper and to stddef.h)?

http://gcc.gnu.org/ml/gcc-patches/2000-07/msg00266.html

Target maintainers may wish to add definitions of WINT_TYPE if their
vendor <wchar.h> and <wctype.h> define wint_t to be something other than
gcc's default of unsigned int.

-- 
Joseph S. Myers
jsm28@cam.ac.uk



More information about the Gcc-patches mailing list