diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-11-18 17:28:06 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-11-18 17:28:06 +0000 |
commit | 481cb456a484b13e5fba53b86bdbc652227b8e2b (patch) | |
tree | 5fec15f7a7e00882113b9b84064a11279f40e120 /newlib/libc/stdio/dprintf.c | |
parent | 8ab08406dadea2499a556446a0112b9a104cb1d3 (diff) | |
download | newlib-481cb456a484b13e5fba53b86bdbc652227b8e2b.zip newlib-481cb456a484b13e5fba53b86bdbc652227b8e2b.tar.gz newlib-481cb456a484b13e5fba53b86bdbc652227b8e2b.tar.bz2 |
2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com>
* libc/include/stdio.h, libc/machine/powerpc/vfscanf.c,
libc/machine/spu/fgetpos.c, libc/machine/spu/fgets.c,
libc/machine/spu/fopen.c, libc/machine/spu/fputs.c,
libc/machine/spu/fread.c, libc/machine/spu/freopen.c,
libc/machine/spu/fwrite.c, libc/machine/spu/setbuf.c,
libc/machine/spu/vfprintf.c, libc/machine/spu/vfscanf.c,
libc/machine/spu/vsnprintf.c, libc/machine/spu/vsprintf.c,
libc/machine/spu/vsscanf.c, libc/stdio/asnprintf.c,
libc/stdio/asprintf.c, libc/stdio/dprintf.c,
libc/stdio/fgetpos.c, libc/stdio/fgets.c,
libc/stdio/fmemopen.c, libc/stdio/fopen.c,
libc/stdio/fprintf.c, libc/stdio/fputs.c,
libc/stdio/fread.c, libc/stdio/freopen.c,
libc/stdio/fscanf.c, libc/stdio/fwrite.c,
libc/stdio/printf.c, libc/stdio/scanf.c,
libc/stdio/setbuf.c, libc/stdio/snprintf.c,
libc/stdio/sprintf.c, libc/stdio/sscanf.c,
libc/stdio/vdprintf.c, libc/stdio/vprintf.c,
libc/stdio/vscanf.c, libc/stdio/vsnprintf.c,
libc/stdio/vsprintf.c, libc/stdio/vsscanf.c: Add restrict keyword.
Diffstat (limited to 'newlib/libc/stdio/dprintf.c')
-rw-r--r-- | newlib/libc/stdio/dprintf.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/newlib/libc/stdio/dprintf.c b/newlib/libc/stdio/dprintf.c index e2d8b36..2271f4b 100644 --- a/newlib/libc/stdio/dprintf.c +++ b/newlib/libc/stdio/dprintf.c @@ -19,12 +19,13 @@ INDEX ANSI_SYNOPSIS #include <stdio.h> #include <stdarg.h> - int dprintf(int <[fd]>, const char *<[format]>, ...); - int vdprintf(int <[fd]>, const char *<[format]>, va_list <[ap]>); + int dprintf(int <[fd]>, const char *restrict <[format]>, ...); + int vdprintf(int <[fd]>, const char *restrict <[format]>, + va_list <[ap]>); int _dprintf_r(struct _reent *<[ptr]>, int <[fd]>, - const char *<[format]>, ...); + const char *restrict <[format]>, ...); int _vdprintf_r(struct _reent *<[ptr]>, int <[fd]>, - const char *<[format]>, va_list <[ap]>); + const char *restrict <[format]>, va_list <[ap]>); DESCRIPTION <<dprintf>> and <<vdprintf>> allow printing a format, similarly to @@ -55,7 +56,7 @@ int _DEFUN(_dprintf_r, (ptr, fd, format), struct _reent *ptr _AND int fd _AND - const char *format _DOTS) + const char *__restrict format _DOTS) { va_list ap; int n; @@ -71,7 +72,7 @@ _DEFUN(_dprintf_r, (ptr, fd, format), int _DEFUN(dprintf, (fd, format), int fd _AND - const char *format _DOTS) + const char *__restrict format _DOTS) { va_list ap; int n; |