diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-11-18 17:26:52 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-11-18 17:26:52 +0000 |
commit | 8ab08406dadea2499a556446a0112b9a104cb1d3 (patch) | |
tree | 98164fd35a5f4de21bd0c4a23540d9f7aaf75408 /newlib/libc/stdlib/strtol.c | |
parent | 7c62befe16da50189ee807356b84822bdc5f42e6 (diff) | |
download | cygnal-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/strtol.c')
-rw-r--r-- | newlib/libc/stdlib/strtol.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/newlib/libc/stdlib/strtol.c b/newlib/libc/stdlib/strtol.c index 4fcce958f..7273c7d4b 100644 --- a/newlib/libc/stdlib/strtol.c +++ b/newlib/libc/stdlib/strtol.c @@ -9,10 +9,10 @@ INDEX ANSI_SYNOPSIS #include <stdlib.h> - long strtol(const char *<[s]>, char **<[ptr]>,int <[base]>); + long strtol(const char *restrict <[s]>, char **restrict <[ptr]>,int <[base]>); long _strtol_r(void *<[reent]>, - const char *<[s]>, char **<[ptr]>,int <[base]>); + const char *restrict <[s]>, char **restrict <[ptr]>,int <[base]>); TRAD_SYNOPSIS #include <stdlib.h> @@ -133,8 +133,8 @@ No supporting OS subroutines are required. long _DEFUN (_strtol_r, (rptr, nptr, endptr, base), struct _reent *rptr _AND - _CONST char *nptr _AND - char **endptr _AND + _CONST char *__restrict nptr _AND + char **__restrict endptr _AND int base) { register const unsigned char *s = (const unsigned char *)nptr; @@ -216,8 +216,8 @@ _DEFUN (_strtol_r, (rptr, nptr, endptr, base), long _DEFUN (strtol, (s, ptr, base), - _CONST char *s _AND - char **ptr _AND + _CONST char *__restrict s _AND + char **__restrict ptr _AND int base) { return _strtol_r (_REENT, s, ptr, base); |