Remove comments that no longer apply. clocale should not do anyting if CONFIG_LIBC_LOCALE is not defined.

This commit is contained in:
Gregory Nutt 2016-10-19 07:06:43 -06:00
parent bbf1627024
commit c73d3e9c5f
4 changed files with 6 additions and 16 deletions

View File

@ -46,9 +46,11 @@
// Namespace
//***************************************************************************
#ifdef CONFIG_LIBC_LOCALE
namespace std
{
using ::setlocale;
}
#endif
#endif // __INCLUDE_CXX_CLOCALE

View File

@ -40,6 +40,7 @@
* Included Files
****************************************************************************/
#include <nuttx/config.h>
#include <nuttx/compiler.h>
#ifdef CONFIG_LIBC_LOCALE

View File

@ -80,7 +80,7 @@
* codes for all members of the largest character set specified among the
* locales supported by the compilation environment: the null character has
* the code value 0 and each member of the portable character set has a
* code value equal to its value when used as the lone character in an\
* code value equal to its value when used as the lone character in an
* integer character constant.
*
* size_t

View File

@ -102,6 +102,8 @@ typedef int wint_t;
* A scalar type of a data object that can hold values which represent
* locale-specific character classification.
*
* Ddefined in wctype.h. Should be defined here.
*
* mbstate_t
* An object type other than an array type that can hold the conversion
* state information necessary to convert between sequences of (possibly
@ -110,21 +112,6 @@ typedef int wint_t;
* state, the results are unspecified.
*/
/* Commented out because this is dangerous. This defines a type that would
* be internal to some wchar implementation. NuttX does not implement the
* wchar functions. Having this definition is a time bomb: If this header
* file is inadvertently included in code that interacts with an external
* library and if the definition of mbstate_t does not EXACTLY match the
* usage in that external library, then a potentially fatal error could
* occur.
*
* It is better to let the build error out due to the lack of the mbstate_t
* definition. At least that way, the problem can be avoided and the user
* can come up with some alternative way of dealing with the interfacing
* issue that does not require NuttX to be in lock-step with some external
* implementation.
*/
struct mbstate_s
{
int __fill[6];