From dec27025b2daad3680e8bf709cfde743aa01e6ee Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 6 Jul 2007 20:03:28 +0000 Subject: * libc/include/wchar.h: Declare wcstol, wcstoll, wcstoul, wcstoull, _wcstol_r, _wcstoll_r, _wcstoul_r and _wcstoull_r. * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstol.c and wcstoul.c. (EXTENDED_SOURCES): Add wcstoll.c, wcstoll_r.c, wcstoull.c and wcstoull_r.c. (CHEWOUT_FILES): Add .def files accordingly. * libc/stdlib/Makefile.in: Regenerate. * libc/stdlib/stdlib.tex: Add documentation links for above functions. * libc/stdlib/strtoll.c: Fix portability note. * libc/stdlib/strtoull.c: Ditto. * libc/stdlib/wcstol.c: New file. * libc/stdlib/wcstoll.c: New file. * libc/stdlib/wcstoll_r.c: New file. * libc/stdlib/wcstoul.c: New file. * libc/stdlib/wcstoull.c: New file. * libc/stdlib/wcstoull_r.c: New file. --- newlib/libc/include/wchar.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'newlib/libc/include/wchar.h') diff --git a/newlib/libc/include/wchar.h b/newlib/libc/include/wchar.h index dfc8c68d2..fdc2c0ae3 100644 --- a/newlib/libc/include/wchar.h +++ b/newlib/libc/include/wchar.h @@ -79,6 +79,15 @@ wchar_t *_EXFUN(wmemcpy, (wchar_t * , const wchar_t * , size_t)); wchar_t *_EXFUN(wmemmove, (wchar_t *, const wchar_t *, size_t)); wchar_t *_EXFUN(wmemset, (wchar_t *, wchar_t, size_t)); +long _EXFUN(wcstol, (const wchar_t *, wchar_t **, int)); +long long _EXFUN(wcstoll, (const wchar_t *, wchar_t **, int)); +unsigned long _EXFUN(wcstoul, (const wchar_t *, wchar_t **, int)); +unsigned long long _EXFUN(wcstoull, (const wchar_t *, wchar_t **, int)); +long _EXFUN(_wcstol_r, (struct _reent *, const wchar_t *, wchar_t **, int)); +long long _EXFUN(_wcstoll_r, (struct _reent *, const wchar_t *, wchar_t **, int)); +unsigned long _EXFUN(_wcstoul_r, (struct _reent *, const wchar_t *, wchar_t **, int)); +unsigned long long _EXFUN(_wcstoull_r, (struct _reent *, const wchar_t *, wchar_t **, int)); + _END_STD_C #endif /* _WCHAR_H_ */ -- cgit v1.2.3