Throughout, keep function definitions and declarations in sync with

newlib in terms of C99 "restrict" keyword.
This commit is contained in:
Corinna Vinschen
2013-11-25 11:38:08 +00:00
parent bd1af1cab5
commit 3073f26d6a
15 changed files with 47 additions and 30 deletions

View File

@ -681,7 +681,7 @@ sys_mbstowcs_alloc (wchar_t **dst_p, int type, const char *src, size_t nms)
NUL-terminate the destination string (s1).
Return pointer to terminating byte in dst string. */
char * __stdcall
strccpy (char *s1, const char **s2, char c)
strccpy (char *__restrict s1, const char **__restrict s2, char c)
{
while (**s2 && **s2 != c)
*s1++ = *((*s2)++);