Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/printf.c')
-rw-r--r--newlib/libc/stdio/printf.c64
1 files changed, 0 insertions, 64 deletions
diff --git a/newlib/libc/stdio/printf.c b/newlib/libc/stdio/printf.c
deleted file mode 100644
index da4cb8ee8..000000000
--- a/newlib/libc/stdio/printf.c
+++ /dev/null
@@ -1,64 +0,0 @@
-
-#include <_ansi.h>
-#include <stdio.h>
-
-#include "local.h"
-
-#ifdef _HAVE_STDC
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
-
-#ifdef _HAVE_STDC
-int
-_printf_r (struct _reent *ptr, const char *fmt, ...)
-#else
-int
-_printf_r (ptr, fmt, va_alist)
- struct _reent *ptr;
- char *fmt;
- va_dcl
-#endif
-{
- int ret;
- va_list ap;
-
- _REENT_SMALL_CHECK_INIT(_stdout_r (ptr));
-#ifdef _HAVE_STDC
- va_start (ap, fmt);
-#else
- va_start (ap);
-#endif
- ret = _vfprintf_r (ptr, _stdout_r (ptr), fmt, ap);
- va_end (ap);
- return ret;
-}
-
-#ifndef _REENT_ONLY
-
-#ifdef _HAVE_STDC
-int
-printf (const char *fmt, ...)
-#else
-int
-printf (fmt, va_alist)
- char *fmt;
- va_dcl
-#endif
-{
- int ret;
- va_list ap;
-
- _REENT_SMALL_CHECK_INIT(_stdout_r (_REENT));
-#ifdef _HAVE_STDC
- va_start (ap, fmt);
-#else
- va_start (ap);
-#endif
- ret = vfprintf (_stdout_r (_REENT), fmt, ap);
- va_end (ap);
- return ret;
-}
-
-#endif /* ! _REENT_ONLY */