aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-04-09 08:24:37 +0000
committerCorinna Vinschen <corinna@vinschen.de>2009-04-09 08:24:37 +0000
commit9b26525ec38243245b9736272e58ee1a0d492959 (patch)
treeb6b68b1d819d1a87234312dde9e9632e06264f27
parentf03f51dccf606bd9ba89991e67132bf58e6fcdf0 (diff)
downloadnewlib-9b26525ec38243245b9736272e58ee1a0d492959.zip
newlib-9b26525ec38243245b9736272e58ee1a0d492959.tar.gz
newlib-9b26525ec38243245b9736272e58ee1a0d492959.tar.bz2
* libc/stdlib/local.h (__mbtowc): Declare extern.
(__wctomb): Ditto.
-rw-r--r--newlib/ChangeLog15
-rw-r--r--newlib/libc/stdlib/local.h7
2 files changed, 19 insertions, 3 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 0ac1c73..aba64d5 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,18 @@
+2009-04-09 Corinna Vinschen <corinna@vinschen.de>
+
+ * libc/stdlib/local.h (__mbtowc): Declare extern.
+ (__wctomb): Ditto.
+
+2009-04-09 Corinna Vinschen <corinna@vinschen.de>
+
+ * libc/stdlib/mbctype.h (_iseucjp1): Like _iseucjp, but also
+ recognizes 0x8e and 0x8f lead bytes.
+ (_iseucjp2): Rename from _iseucjp.
+ * libc/stdlib/mbtowc_r.c (__eucjp_mbtowc): Convert JIS-X-0212
+ triplebyte sequences as well.
+ * libc/stdlib/wctomb_r.c (__eucjp_wctomb): Convert to JIS-X-0212
+ triplebyte sequences as well.
+
2009-04-08 Ken Werner <ken.werner@de.ibm.com>
* configure.in: Add square brackets for the array aliasing conftest.
diff --git a/newlib/libc/stdlib/local.h b/newlib/libc/stdlib/local.h
index 459d98b..37856f8 100644
--- a/newlib/libc/stdlib/local.h
+++ b/newlib/libc/stdlib/local.h
@@ -11,7 +11,8 @@ char *__locale_charset ();
#include <wchar.h>
#endif
-int (*__wctomb) (struct _reent *, char *, wchar_t, const char *, mbstate_t *);
+extern int (*__wctomb) (struct _reent *, char *, wchar_t, const char *,
+ mbstate_t *);
int __ascii_wctomb (struct _reent *, char *, wchar_t, const char *,
mbstate_t *);
#ifdef _MB_CAPABLE
@@ -29,8 +30,8 @@ int __big5_wctomb (struct _reent *, char *, wchar_t, const char *, mbstate_t *);
#endif
#endif
-int (*__mbtowc) (struct _reent *, wchar_t *, const char *, size_t,
- const char *, mbstate_t *);
+extern int (*__mbtowc) (struct _reent *, wchar_t *, const char *, size_t,
+ const char *, mbstate_t *);
int __ascii_mbtowc (struct _reent *, wchar_t *, const char *, size_t,
const char *, mbstate_t *);
#ifdef _MB_CAPABLE