From 8ab08406dadea2499a556446a0112b9a104cb1d3 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 18 Nov 2013 17:26:52 +0000 Subject: 2013-11-18 Sahil Patnayakuni * libc/include/stdlib.h, libc/stdlib/mbstowcs.c, libc/stdlib/mbstowcs_r.c, libc/stdlib/mbtowc.c, libc/stdlib/mbtowc_r.c, libc/stdlib/strtod.c, libc/stdlib/strtol.c, libc/stdlib/strtold.c, libc/stdlib/strtoll.c, libc/stdlib/strtoll_r.c, libc/stdlib/strtoul.c, libc/stdlib/strtoull.c, libc/stdlib/strtoull_r.c, libc/stdlib/wcstombs.c, libc/stdlib/wcstombs_r.c: Add restrict keyword. --- newlib/libc/stdlib/strtod.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'newlib/libc/stdlib/strtod.c') diff --git a/newlib/libc/stdlib/strtod.c b/newlib/libc/stdlib/strtod.c index ee33960e3..f7cae78f7 100644 --- a/newlib/libc/stdlib/strtod.c +++ b/newlib/libc/stdlib/strtod.c @@ -11,11 +11,11 @@ INDEX ANSI_SYNOPSIS #include - double strtod(const char *<[str]>, char **<[tail]>); - float strtof(const char *<[str]>, char **<[tail]>); + double strtod(const char *restrict <[str]>, char **restrict <[tail]>); + float strtof(const char *restrict <[str]>, char **restrict <[tail]>); double _strtod_r(void *<[reent]>, - const char *<[str]>, char **<[tail]>); + const char *restrict <[str]>, char **restrict <[tail]>); TRAD_SYNOPSIS #include @@ -236,8 +236,8 @@ _DEFUN (match, (sp, t), double _DEFUN (_strtod_r, (ptr, s00, se), struct _reent *ptr _AND - _CONST char *s00 _AND - char **se) + _CONST char *__restrict s00 _AND + char **__restrict se) { #ifdef Avoid_Underflow int scale; @@ -1255,15 +1255,15 @@ _DEFUN (_strtod_r, (ptr, s00, se), double _DEFUN (strtod, (s00, se), - _CONST char *s00 _AND char **se) + _CONST char *__restrict s00 _AND char **__restrict se) { return _strtod_r (_REENT, s00, se); } float _DEFUN (strtof, (s00, se), - _CONST char *s00 _AND - char **se) + _CONST char *__restrict s00 _AND + char **__restrict se) { double retval = _strtod_r (_REENT, s00, se); if (isnan (retval)) -- cgit v1.2.3