From 84e851fd643d3e7b5433cae92bb057ee1db3d6af Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 18 Feb 2009 17:35:24 +0000 Subject: * libc/stdio/open_memstream.c: Add open_wmemstream to doumentation. (struct memstream): Add wide element. Change saved to a union to take char and wchar_t values. (memwriter): Accommodate wide-oriented oeprations. (memseeker): Ditto. (memseeker64): Ditto. (memcloser): Ditto. (internal_open_memstream_r): New static function. Take functionality from former _open_memstream_r and handle additional "wide" parameter. (_open_memstream_r): Just call internal_open_memstream_r with wide==-1 from here. (_open_wmemstream_r): New function. (open_wmemstream): Ditto. * libc/include/wchar.h (open_wmemstream): Declare. (_open_wmemstream_r): Declare. --- newlib/libc/include/wchar.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'newlib/libc/include/wchar.h') diff --git a/newlib/libc/include/wchar.h b/newlib/libc/include/wchar.h index 31e768700..4cec3ce95 100644 --- a/newlib/libc/include/wchar.h +++ b/newlib/libc/include/wchar.h @@ -118,6 +118,9 @@ wint_t _EXFUN(_putwc_r, (struct _reent *, wchar_t, __FILE *)); wint_t _EXFUN(_putwchar_r, (struct _reent *, wchar_t)); wint_t _EXFUN (_ungetwc_r, (struct _reent *, wint_t wc, __FILE *)); +__FILE *_EXFUN (open_wmemstream, (wchar_t **, size_t *)); +__FILE *_EXFUN (_open_wmemstream_r, (struct _reent *, wchar_t **, size_t *)); + #define getwc(fp) fgetwc(fp) #define putwc(wc,fp) fputwc((wc), (fp)) #ifndef _REENT_ONLY -- cgit v1.2.3