diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2017-12-03 23:58:31 -0600 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2018-01-17 11:47:30 -0600 |
commit | 7192f840966684d4460542a516278ca08dd14842 (patch) | |
tree | ef7c9f4eeeed6163e2faa9098525e4744fdf82b1 /newlib/libc/stdio/siprintf.c | |
parent | 70ee6b17df9b055a05cdcc4d3fe1813d7b57e2d8 (diff) | |
download | newlib-7192f840966684d4460542a516278ca08dd14842.zip newlib-7192f840966684d4460542a516278ca08dd14842.tar.gz newlib-7192f840966684d4460542a516278ca08dd14842.tar.bz2 |
ansification: remove _HAVE_STDC
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'newlib/libc/stdio/siprintf.c')
-rw-r--r-- | newlib/libc/stdio/siprintf.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/newlib/libc/stdio/siprintf.c b/newlib/libc/stdio/siprintf.c index 6ec2477..be000f6 100644 --- a/newlib/libc/stdio/siprintf.c +++ b/newlib/libc/stdio/siprintf.c @@ -94,26 +94,14 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>, #include <_ansi.h> #include <reent.h> #include <stdio.h> -#ifdef _HAVE_STDC #include <stdarg.h> -#else -#include <varargs.h> -#endif #include <limits.h> #include "local.h" int -#ifdef _HAVE_STDC _siprintf_r (struct _reent *ptr, char *str, const char *fmt, ...) -#else -_siprintf_r(ptr, str, fmt, va_alist) - struct _reent *ptr; - char *str; - const char *fmt; - va_dcl -#endif { int ret; va_list ap; @@ -123,11 +111,7 @@ _siprintf_r(ptr, str, fmt, va_alist) f._bf._base = f._p = (unsigned char *) str; f._bf._size = f._w = INT_MAX; f._file = -1; /* No file. */ -#ifdef _HAVE_STDC va_start (ap, fmt); -#else - va_start (ap); -#endif ret = _svfiprintf_r (ptr, &f, fmt, ap); va_end (ap); *f._p = 0; @@ -137,15 +121,8 @@ _siprintf_r(ptr, str, fmt, va_alist) #ifndef _REENT_ONLY int -#ifdef _HAVE_STDC siprintf (char *str, const char *fmt, ...) -#else -siprintf(str, fmt, va_alist) - char *str; - const char *fmt; - va_dcl -#endif { int ret; va_list ap; @@ -155,11 +132,7 @@ siprintf(str, fmt, va_alist) f._bf._base = f._p = (unsigned char *) str; f._bf._size = f._w = INT_MAX; f._file = -1; /* No file. */ -#ifdef _HAVE_STDC va_start (ap, fmt); -#else - va_start (ap); -#endif ret = _svfiprintf_r (_REENT, &f, fmt, ap); va_end (ap); *f._p = 0; |