Patch - Add restrict to time.h
Howland Craig D (Craig)
Mon Nov 25 16:42:00 GMT 2013
>From: firstname.lastname@example.org [mailto:email@example.com]
On Behalf Of Joel Sherrill
>Sent: Sunday, November 24, 2013 12:46 PM
>Subject: Patch - Add restrict to time.h
>Please review this one a little closer than the others.
>I hope this version is OK to commit but won't be surprised
>if there are comments. I tried to review it carefully but...
> * libc/time/strftime.c (strftime): Same.
- size_t strftime(char *<[s]>, size_t <[maxsize]>,
- const char *<[format]>, const struct tm
+ size_t strftime(char *restrict<[s]>, size_t <[maxsize]>,
+ const char *restrict<[format]>,
+ const struct tm *restrict<[timp]>);
The strftime patch for the man page is missing spaces between restrict
and the respective pointers, which will make it very hard to read.
More information about the Newlib