diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-07-22 22:54:07 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-08-15 10:56:57 +0200 |
commit | aefd8b5b518b958f64506a6f74aeffb4f47bde8a (patch) | |
tree | 2eb483eb3ab883d1426e7783d8eb322bb66c7952 /newlib/libc/include/locale.h | |
parent | d4f6cae9cd526290bfa2a0be7d3dc9fd20f31dba (diff) | |
download | cygnal-aefd8b5b518b958f64506a6f74aeffb4f47bde8a.tar.gz cygnal-aefd8b5b518b958f64506a6f74aeffb4f47bde8a.tar.bz2 cygnal-aefd8b5b518b958f64506a6f74aeffb4f47bde8a.zip |
Implement newlocale, freelocale, duplocale, uselocale
Add global const __C_locale for reference purposes.
Bump Cygwin API minor number and DLL major version number to 2.6.0.
Signed-off by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/include/locale.h')
-rw-r--r-- | newlib/libc/include/locale.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/newlib/libc/include/locale.h b/newlib/libc/include/locale.h index 40e412451..d60132c35 100644 --- a/newlib/libc/include/locale.h +++ b/newlib/libc/include/locale.h @@ -65,14 +65,24 @@ struct lconv char int_p_sign_posn; }; +struct _reent; +char *_EXFUN(_setlocale_r,(struct _reent *, int, const char *)); +struct lconv *_EXFUN(_localeconv_r,(struct _reent *)); + +locale_t _newlocale_r (struct _reent *, int, const char *, locale_t); +void _freelocale_r (struct _reent *, locale_t); +locale_t _duplocale_r (struct _reent *, locale_t); +locale_t _uselocale_r (struct _reent *, locale_t); + #ifndef _REENT_ONLY -char *_EXFUN(setlocale,(int category, const char *locale)); +char *_EXFUN(setlocale,(int, const char *)); struct lconv *_EXFUN(localeconv,(void)); -#endif -struct _reent; -char *_EXFUN(_setlocale_r,(struct _reent *, int category, const char *locale)); -struct lconv *_EXFUN(_localeconv_r,(struct _reent *)); +locale_t newlocale (int, const char *, locale_t); +void freelocale (locale_t); +locale_t duplocale (locale_t); +locale_t uselocale (locale_t); +#endif _END_STD_C |