diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-11-26 17:21:01 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-11-26 17:21:01 +0000 |
commit | 380c9f61651aaa785dc0d678edd17c17af1c6f90 (patch) | |
tree | 54b44f66459cc0895bfcddd37d66fa614b85b3d5 /newlib/libc/stdlib/wcstod.c | |
parent | bb9d95eb38185520967c2501a878ec6719b35a0d (diff) | |
download | cygnal-380c9f61651aaa785dc0d678edd17c17af1c6f90.tar.gz cygnal-380c9f61651aaa785dc0d678edd17c17af1c6f90.tar.bz2 cygnal-380c9f61651aaa785dc0d678edd17c17af1c6f90.zip |
2013-11-26 Julio Gutierrez <jgutleyva@gmail.com>
*libc/include/wchar.h: Add restrict keyword.
*libc/stdio/fgetws.c (fgetws): ditto.
*libc/stdio/fputws.c (fputws): ditto.
*libc/stdio/fwprintf.c (fwprintf): ditto.
*libc/stdio/fwscanf.c (fwscanf): ditto.
*libc/stdio/swprintf.c (swprintf): ditto.
*libc/stdio/swscanf.c (swscanf): ditto.
*libc/stdio/vfwprintf.c (vfwprintf): ditto.
*libc/stdio/vfwscanf.c (vfwscanf): ditto.
*libc/stdio/vswprintf.c (vswprintf): ditto.
*libc/stdio/vswscanf.c (vswscanf): ditto.
*libc/stdio/vwprintf.c (vwprintf): ditto.
*libc/stdio/vwscanf.c (vwscanf): ditto.
*libc/stdio/wprintf.c (wprintf): ditto.
*libc/stdio/wscanf.c (wscanf): ditto.
*libc/stdlib/mbrlen.c (mbrlen): ditto.
*libc/stdlib/mbrtowc.c (mbrtowc): ditto.
*libc/stdlib/mbsnrtowcs.c (mbsnrtowcs): ditto.
*libc/stdlib/mbsrtowcs.c (mbsrtowcs): ditto.
*libc/stdlib/wcrtomb.c (wcrtomb): ditto.
*libc/stdlib/wcsnrtombs.c (wcsnrtombs): ditto.
*libc/stdlib/wcsrtombs.c (wcsrtombs): ditto.
*libc/stdlib/wcstod.c (wcstod): ditto.
*libc/stdlib/wcstol.c (wcstol): ditto.
*libc/stdlib/wcstold.c (wcstold): ditto.
*libc/stdlib/wcstoll.c (wcstoll): ditto.
*libc/stdlib/wcstoul.c (wcstoul): ditto.
*libc/stdlib/wcstoull.c (cstoull): ditto.
*libc/string/wcpcpy.c (wcpcpy): ditto.
*libc/string/wcpncpy.c (wcpncpy): ditto.
*libc/string/wcscat.c (wcscat): ditto.
*libc/string/wcscpy.c (wcscpy): ditto.
*libc/string/wcsncat.c (wcsncat): ditto.
*libc/string/wcsncpy.c (wcsncpy): ditto.
*libc/string/wcsstr.c (wcsstr): ditto.
*libc/string/wcstok.c (wcstok): ditto.
*libc/string/wcsxfrm.c (wcsxfrm): ditto.
*libc/string/wmemcpy.c (wmemcpy): ditto.
Diffstat (limited to 'newlib/libc/stdlib/wcstod.c')
-rw-r--r-- | newlib/libc/stdlib/wcstod.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/newlib/libc/stdlib/wcstod.c b/newlib/libc/stdlib/wcstod.c index d80454c8f..c91ecf2fe 100644 --- a/newlib/libc/stdlib/wcstod.c +++ b/newlib/libc/stdlib/wcstod.c @@ -13,8 +13,10 @@ INDEX ANSI_SYNOPSIS #include <stdlib.h> - double wcstod(const wchar_t *<[str]>, wchar_t **<[tail]>); - float wcstof(const wchar_t *<[str]>, wchar_t **<[tail]>); + double wcstod(const wchar_t *__restrict <[str]>, + wchar_t **__restrict <[tail]>); + float wcstof(const wchar_t *__restrict <[str]>, + wchar_t **__restrict <[tail]>); double _wcstod_r(void *<[reent]>, const wchar_t *<[str]>, wchar_t **<[tail]>); @@ -24,12 +26,12 @@ ANSI_SYNOPSIS TRAD_SYNOPSIS #include <stdlib.h> double wcstod(<[str]>,<[tail]>) - wchar_t *<[str]>; - wchar_t **<[tail]>; + wchar_t *__restrict <[str]>; + wchar_t **__restrict <[tail]>; float wcstof(<[str]>,<[tail]>) - wchar_t *<[str]>; - wchar_t **<[tail]>; + wchar_t *__restrict <[str]>; + wchar_t **__restrict <[tail]>; double _wcstod_r(<[reent]>,<[str]>,<[tail]>) wchar_t *<[reent]>; @@ -211,15 +213,15 @@ _DEFUN (_wcstof_r, (ptr, nptr, endptr), double _DEFUN (wcstod, (nptr, endptr), - _CONST wchar_t *nptr _AND wchar_t **endptr) + _CONST wchar_t *__restrict nptr _AND wchar_t **__restrict endptr) { return _wcstod_r (_REENT, nptr, endptr); } float _DEFUN (wcstof, (nptr, endptr), - _CONST wchar_t *nptr _AND - wchar_t **endptr) + _CONST wchar_t *__restrict nptr _AND + wchar_t **__restrict endptr) { double retval = _wcstod_r (_REENT, nptr, endptr); if (isnan (retval)) |