summaryrefslogtreecommitdiff
path: root/mpn/generic/set_str.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2000-04-29 00:56:08 +0200
committerKevin Ryde <user42@zip.com.au>2000-04-29 00:56:08 +0200
commitc4f5f2e892d41253bca8cbc04cc84c6deae47daf (patch)
treea04df5f4946a0e1c5d5470930e5797e15f9ebb8f /mpn/generic/set_str.c
parentf1559352f18c62d3297e66a22b658538091973cc (diff)
downloadgmp-c4f5f2e892d41253bca8cbc04cc84c6deae47daf.tar.gz
Provide dual ANSI/K&R function definitions.
Diffstat (limited to 'mpn/generic/set_str.c')
-rw-r--r--mpn/generic/set_str.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mpn/generic/set_str.c b/mpn/generic/set_str.c
index 424fad30e..c8a88c633 100644
--- a/mpn/generic/set_str.c
+++ b/mpn/generic/set_str.c
@@ -3,7 +3,8 @@
limb vector pointed to by RES_PTR. Return the number of limbs in
RES_PTR.
-Copyright (C) 1991, 1992, 1993, 1994, 1996 Free Software Foundation, Inc.
+Copyright (C) 1991, 1992, 1993, 1994, 1996, 2000 Free Software Foundation,
+Inc.
This file is part of the GNU MP Library.
@@ -26,11 +27,15 @@ MA 02111-1307, USA. */
#include "gmp-impl.h"
mp_size_t
+#if __STDC__
+mpn_set_str (mp_ptr xp, const unsigned char *str, size_t str_len, int base)
+#else
mpn_set_str (xp, str, str_len, base)
mp_ptr xp;
const unsigned char *str;
size_t str_len;
int base;
+#endif
{
mp_size_t size;
mp_limb_t big_base;