mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-20 16:01:10 +08:00
Actually return pointers in locale categroy accessor functions
Commit 6e7ce50 was broken. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
625a8a3f62
commit
1c25a777b3
@ -326,49 +326,49 @@ __get_current_messages_locale (void)
|
||||
_ELIDABLE_INLINE const struct lc_monetary_T *
|
||||
__get_monetary_locale (struct __locale_t *locale)
|
||||
{
|
||||
return _C_monetary_locale;
|
||||
return &_C_monetary_locale;
|
||||
}
|
||||
|
||||
_ELIDABLE_INLINE const struct lc_monetary_T *
|
||||
__get_current_monetary_locale (void)
|
||||
{
|
||||
return _C_monetary_locale;
|
||||
return &_C_monetary_locale;
|
||||
}
|
||||
|
||||
_ELIDABLE_INLINE const struct lc_numeric_T *
|
||||
__get_numeric_locale (struct __locale_t *locale)
|
||||
{
|
||||
return _C_numeric_locale;
|
||||
return &_C_numeric_locale;
|
||||
}
|
||||
|
||||
_ELIDABLE_INLINE const struct lc_numeric_T *
|
||||
__get_current_numeric_locale (void)
|
||||
{
|
||||
return _C_numeric_locale;
|
||||
return &_C_numeric_locale;
|
||||
}
|
||||
|
||||
_ELIDABLE_INLINE const struct lc_time_T *
|
||||
__get_time_locale (struct __locale_t *locale)
|
||||
{
|
||||
return _C_time_locale;
|
||||
return &_C_time_locale;
|
||||
}
|
||||
|
||||
_ELIDABLE_INLINE const struct lc_time_T *
|
||||
__get_current_time_locale (void)
|
||||
{
|
||||
return _C_time_locale;
|
||||
return &_C_time_locale;
|
||||
}
|
||||
|
||||
_ELIDABLE_INLINE const struct lc_messages_T *
|
||||
__get_messages_locale (struct __locale_t *locale)
|
||||
{
|
||||
return _C_messages_locale;
|
||||
return &_C_messages_locale;
|
||||
}
|
||||
|
||||
_ELIDABLE_INLINE const struct lc_messages_T *
|
||||
__get_current_messages_locale (void)
|
||||
{
|
||||
return _C_messages_locale;
|
||||
return &_C_messages_locale;
|
||||
}
|
||||
#endif /* !__HAVE_LOCALE_INFO__ */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user