aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio/scanf.c
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2017-12-03 23:58:31 -0600
committerYaakov Selkowitz <yselkowi@redhat.com>2018-01-17 11:47:30 -0600
commit7192f840966684d4460542a516278ca08dd14842 (patch)
treeef7c9f4eeeed6163e2faa9098525e4744fdf82b1 /newlib/libc/stdio/scanf.c
parent70ee6b17df9b055a05cdcc4d3fe1813d7b57e2d8 (diff)
downloadnewlib-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/scanf.c')
-rw-r--r--newlib/libc/stdio/scanf.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/newlib/libc/stdio/scanf.c b/newlib/libc/stdio/scanf.c
index a5a9391..898c6e7 100644
--- a/newlib/libc/stdio/scanf.c
+++ b/newlib/libc/stdio/scanf.c
@@ -18,34 +18,20 @@
#include <_ansi.h>
#include <reent.h>
#include <stdio.h>
-#ifdef _HAVE_STDC
#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
#include "local.h"
#ifndef _REENT_ONLY
int
-#ifdef _HAVE_STDC
scanf(const char *__restrict fmt, ...)
-#else
-scanf(fmt, va_alist)
- char *fmt;
- va_dcl
-#endif
{
int ret;
va_list ap;
struct _reent *reent = _REENT;
_REENT_SMALL_CHECK_INIT (reent);
-#ifdef _HAVE_STDC
va_start (ap, fmt);
-#else
- va_start (ap);
-#endif
ret = _vfscanf_r (reent, _stdin_r (reent), fmt, ap);
va_end (ap);
return ret;
@@ -60,24 +46,13 @@ iscanf (const char *, ...)
#endif /* !_REENT_ONLY */
int
-#ifdef _HAVE_STDC
_scanf_r(struct _reent *ptr, const char *__restrict fmt, ...)
-#else
-_scanf_r(ptr, fmt, va_alist)
- struct _reent *ptr;
- char *fmt;
- va_dcl
-#endif
{
int ret;
va_list ap;
_REENT_SMALL_CHECK_INIT (ptr);
-#ifdef _HAVE_STDC
va_start (ap, fmt);
-#else
- va_start (ap);
-#endif
ret = _vfscanf_r (ptr, _stdin_r (ptr), fmt, ap);
va_end (ap);
return (ret);