diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-11-25 13:46:23 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-11-25 13:46:23 +0000 |
commit | d482870337349732ad1c9f3715730fd32b6216d0 (patch) | |
tree | a7395d230c93fee8c52d2b4730963001bdf7149d /newlib/libc/time/strftime.c | |
parent | 3073f26d6ab5d0ce902d5bfe75600e6577d903c9 (diff) | |
download | cygnal-d482870337349732ad1c9f3715730fd32b6216d0.tar.gz cygnal-d482870337349732ad1c9f3715730fd32b6216d0.tar.bz2 cygnal-d482870337349732ad1c9f3715730fd32b6216d0.zip |
2013-11-25 Sahil Patnayakuni <sahil.patnayakuni@gmail.com>
* libc/include/time.h (time): Add restrict keyword.
* libc/include/wchar.h (wcsftime): Add restrict keyword.
* libc/time/asctime_r.c (asctime_r): Same.
* libc/time/gmtime_r.c (gmtime_r): Same.
* libc/time/lcltime_r.c (lcltime_r): Same.
* libc/time/strftime.c (strftime): Same.
* libc/time/strptime.c (strptime): Same.
* libc/sys/linux/linuxthreads/timer_create.c (timer_create): Same.
* libc/sys/linux/linuxthreads/timer_settime.c (timer_settime): Same.
Diffstat (limited to 'newlib/libc/time/strftime.c')
-rw-r--r-- | newlib/libc/time/strftime.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/newlib/libc/time/strftime.c b/newlib/libc/time/strftime.c index 2bcedb2a0..ea15813d8 100644 --- a/newlib/libc/time/strftime.c +++ b/newlib/libc/time/strftime.c @@ -24,8 +24,9 @@ INDEX ANSI_SYNOPSIS #include <time.h> - size_t strftime(char *<[s]>, size_t <[maxsize]>, - const char *<[format]>, const struct tm *<[timp]>); + size_t strftime(char *restrict<[s]>, size_t <[maxsize]>, + const char *restrict<[format]>, + const struct tm *restrict<[timp]>); TRAD_SYNOPSIS #include <time.h> @@ -662,10 +663,10 @@ static size_t __strftime (CHAR *, size_t, const CHAR *, const struct tm *, size_t _DEFUN (strftime, (s, maxsize, format, tim_p), - CHAR *s _AND + CHAR *__restrict s _AND size_t maxsize _AND - _CONST CHAR *format _AND - _CONST struct tm *tim_p) + _CONST CHAR *__restrict format _AND + _CONST struct tm *__restrict tim_p) { era_info_t *era_info = NULL; alt_digits_t *alt_digits = NULL; @@ -686,10 +687,10 @@ __strftime (CHAR *s, size_t maxsize, const CHAR *format, size_t _DEFUN (strftime, (s, maxsize, format, tim_p), - CHAR *s _AND + CHAR *__restrict s _AND size_t maxsize _AND - _CONST CHAR *format _AND - _CONST struct tm *tim_p) + _CONST CHAR *__restrict format _AND + _CONST struct tm *__restrict tim_p) #endif /* !_WANT_C99_TIME_FORMATS */ { size_t count = 0; |