1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-25 16:13:17 +00:00

"fix" this for compiling under the sticter ELF linker.. There was a

reference to an undefined function (digit_value_in_base()) that was static
elsewhere that it was used.
This commit is contained in:
Peter Wemm 1997-08-29 06:14:05 +00:00
parent 2eba9bcd51
commit 3be5a5220c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28883

View File

@ -26,6 +26,27 @@ MA 02111-1307, USA. */
#include "gmp.h"
#include "gmp-impl.h"
static int
digit_value_in_base (c, base)
int c;
int base;
{
int digit;
if (isdigit (c))
digit = c - '0';
else if (islower (c))
digit = c - 'a' + 10;
else if (isupper (c))
digit = c - 'A' + 10;
else
return -1;
if (digit < base)
return digit;
return -1;
}
void
#if __STDC__
min (MINT *dest)