diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2001-04-24 22:09:21 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2001-04-24 22:09:21 +0000 |
commit | a874cd21de8bb73cb87321e3ec4a90462ff23213 (patch) | |
tree | 6d01776ffa4fa497de309c21213fde2c78c83f15 /newlib/libc/stdio/vprintf.c | |
parent | b7cf6a2f5b7ba5236d5c105029d37f74b9a463a6 (diff) | |
download | cygnal-a874cd21de8bb73cb87321e3ec4a90462ff23213.tar.gz cygnal-a874cd21de8bb73cb87321e3ec4a90462ff23213.tar.bz2 cygnal-a874cd21de8bb73cb87321e3ec4a90462ff23213.zip |
2001-04-24 Charles Wilson <cwilson@ece.gatech.edu
* libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN
* libc/stdio/vprintf.c (_vprintf_r): new function
* libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN
* libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use
_DEFUN, and call _vfprintf_r, not vfprintf.
* libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN
* libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use
_DEFUN, and call _vfprintf_r, not vfprintf.
Diffstat (limited to 'newlib/libc/stdio/vprintf.c')
-rw-r--r-- | newlib/libc/stdio/vprintf.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/newlib/libc/stdio/vprintf.c b/newlib/libc/stdio/vprintf.c index c270141f0..f913bc097 100644 --- a/newlib/libc/stdio/vprintf.c +++ b/newlib/libc/stdio/vprintf.c @@ -27,9 +27,18 @@ #endif int -vprintf (fmt, ap) - char _CONST *fmt; - va_list ap; +_DEFUN (vprintf, (fmt, ap), + _CONST char *fmt _AND + va_list ap) { return vfprintf (stdout, fmt, ap); } + +int +_DEFUN (_vprintf_r, (ptr, fmt, ap), + struct _reent *ptr _AND + _CONST char *fmt _AND + va_list ap) +{ + return _vfprintf_r (ptr, _stdout_r (ptr), fmt, ap); +} |