summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdlib/strtod.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2013-11-18 17:26:52 +0000
committerJoel Sherrill <joel.sherrill@oarcorp.com>2013-11-18 17:26:52 +0000
commit8ab08406dadea2499a556446a0112b9a104cb1d3 (patch)
tree98164fd35a5f4de21bd0c4a23540d9f7aaf75408 /newlib/libc/stdlib/strtod.c
parent7c62befe16da50189ee807356b84822bdc5f42e6 (diff)
downloadcygnal-8ab08406dadea2499a556446a0112b9a104cb1d3.tar.gz
cygnal-8ab08406dadea2499a556446a0112b9a104cb1d3.tar.bz2
cygnal-8ab08406dadea2499a556446a0112b9a104cb1d3.zip
2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com>
* 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.
Diffstat (limited to 'newlib/libc/stdlib/strtod.c')
-rw-r--r--newlib/libc/stdlib/strtod.c16
1 files changed, 8 insertions, 8 deletions
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 <stdlib.h>
- 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 <stdlib.h>
@@ -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))