Commit 8d15eebc by Gabriel Dos Reis Committed by Gabriel Dos Reis

c-common.c (cb_register_builtins): Define __WCHAR_MAX__.

	* c-common.c (cb_register_builtins): Define __WCHAR_MAX__.
	* doc/cpp.texi (Common Predefined Macros): Document.

From-SVN: r57966
parent cef1c1ba
...@@ -4,6 +4,11 @@ ...@@ -4,6 +4,11 @@
2002-10-09 Gabriel Dos Reis <gdr@integrable-solutions.net> 2002-10-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
* c-common.c (cb_register_builtins): Define __WCHAR_MAX__.
* doc/cpp.texi (Common Predefined Macros): Document.
2002-10-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
PR doc/7484 PR doc/7484
* doc/invoke.texi (Option Summary): List * doc/invoke.texi (Option Summary): List
-Wmissing-declarations as a C only option. -Wmissing-declarations as a C only option.
......
...@@ -4918,6 +4918,7 @@ cb_register_builtins (pfile) ...@@ -4918,6 +4918,7 @@ cb_register_builtins (pfile)
builtin_define_type_max ("__INT_MAX__", integer_type_node, 0); builtin_define_type_max ("__INT_MAX__", integer_type_node, 0);
builtin_define_type_max ("__LONG_MAX__", long_integer_type_node, 1); builtin_define_type_max ("__LONG_MAX__", long_integer_type_node, 1);
builtin_define_type_max ("__LONG_LONG_MAX__", long_long_integer_type_node, 2); builtin_define_type_max ("__LONG_LONG_MAX__", long_long_integer_type_node, 2);
builtin_define_type_max ("__WCHAR_MAX__", wchar_type_node, 0);
builtin_define_type_precision ("__CHAR_BIT__", char_type_node); builtin_define_type_precision ("__CHAR_BIT__", char_type_node);
......
...@@ -2013,11 +2013,13 @@ numerical limits work correctly. You should not use ...@@ -2013,11 +2013,13 @@ numerical limits work correctly. You should not use
this macro directly; instead, include the appropriate headers. this macro directly; instead, include the appropriate headers.
@item __SCHAR_MAX__ @item __SCHAR_MAX__
@itemx __WCHAR_MAX__
@itemx __SHRT_MAX__ @itemx __SHRT_MAX__
@itemx __INT_MAX__ @itemx __INT_MAX__
@itemx __LONG_MAX__ @itemx __LONG_MAX__
@itemx __LONG_LONG_MAX__ @itemx __LONG_LONG_MAX__
Defined to the maximum value of the @code{signed char}, @code{signed short}, Defined to the maximum value of the @code{signed char}, @code{wchar_t},
@code{signed short},
@code{signed int}, @code{signed long}, and @code{signed long long} types @code{signed int}, @code{signed long}, and @code{signed long long} types
respectively. They exist to make the standard header given numerical limits respectively. They exist to make the standard header given numerical limits
work correctly. You should not use these macros directly; instead, include work correctly. You should not use these macros directly; instead, include
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment