summaryrefslogtreecommitdiff
path: root/printf/printf.c
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2014-01-19 14:35:25 +0100
committerTorbjorn Granlund <tege@gmplib.org>2014-01-19 14:35:25 +0100
commitfae4e36024f08ed96cb79195935f637bdfc9875b (patch)
tree2c13895a0b54eb7b6d6a5f815b65891acff34961 /printf/printf.c
parentcf6b3dd7ae4bd3ae91a2a23dcb40361ca2e52f98 (diff)
downloadgmp-fae4e36024f08ed96cb79195935f637bdfc9875b.tar.gz
Get rid of varargs code and references.
Diffstat (limited to 'printf/printf.c')
-rw-r--r--printf/printf.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/printf/printf.c b/printf/printf.c
index 8727dca3b..45795dfa8 100644
--- a/printf/printf.c
+++ b/printf/printf.c
@@ -17,14 +17,7 @@ License for more details.
You should have received a copy of the GNU Lesser General Public License
along with the GNU MP Library. If not, see https://www.gnu.org/licenses/. */
-#include "config.h"
-
-#if HAVE_STDARG
#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
-
#include <stdio.h>
#include "gmp.h"
@@ -32,23 +25,12 @@ along with the GNU MP Library. If not, see https://www.gnu.org/licenses/. */
int
-#if HAVE_STDARG
gmp_printf (const char *fmt, ...)
-#else
-gmp_printf (va_alist)
- va_dcl
-#endif
{
va_list ap;
int ret;
-#if HAVE_STDARG
va_start (ap, fmt);
-#else
- const char *fmt;
- va_start (ap);
- fmt = va_arg (ap, const char *);
-#endif
ret = __gmp_doprnt (&__gmp_fprintf_funs, stdout, fmt, ap);
va_end (ap);