This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: patch v2 add restrict to string.h methods
- From: Freddie Chopin <freddie_chopin at op dot pl>
- To: newlib at sourceware dot org
- Date: Sat, 03 Aug 2013 10:56:28 +0200
- Subject: Re: patch v2 add restrict to string.h methods
- References: <51E93F7C dot 6070504 at oarcorp dot com> <51E94132 dot 6050304 at embedded-brains dot de> <51E94A5E dot 3020303 at oarcorp dot com>
W dniu 19.07.2013 16:17, Joel Sherrill pisze:
Attached is v3. OK this time?
Here's a patch that fixes building pdfs. With current code it fails with
"missing endgroup or stray {" or sth like that (sorry, don't have the
exact message right now).
Regards,
FCh
diff --git a/newlib/libc/string/strncat.c b/newlib/libc/string/strncat.c
index d31a030..2f5a061 100644
--- a/newlib/libc/string/strncat.c
+++ b/newlib/libc/string/strncat.c
@@ -7,7 +7,7 @@ INDEX
ANSI_SYNOPSIS
#include <string.h>
- char *strncat(char *<restrict [dst]>, const char *<restrict [src]>,
+ char *strncat(char *restrict <[dst]>, const char *restrict <[src]>,
size_t <[length]>);
TRAD_SYNOPSIS