remove obsolete global varible gmp_errno
This commit is contained in:
parent
59e7877431
commit
8c976a91a4
3
errno.c
3
errno.c
@ -27,8 +27,6 @@ MA 02110-1301, USA. */
|
|||||||
#include "mpir.h"
|
#include "mpir.h"
|
||||||
#include "gmp-impl.h"
|
#include "gmp-impl.h"
|
||||||
|
|
||||||
int gmp_errno = 0;
|
|
||||||
|
|
||||||
|
|
||||||
/* The deliberate divide by zero triggers an exception on most systems. On
|
/* The deliberate divide by zero triggers an exception on most systems. On
|
||||||
those where it doesn't, for example power and powerpc, use abort instead.
|
those where it doesn't, for example power and powerpc, use abort instead.
|
||||||
@ -40,7 +38,6 @@ int gmp_errno = 0;
|
|||||||
void
|
void
|
||||||
__gmp_exception (int error_bit)
|
__gmp_exception (int error_bit)
|
||||||
{
|
{
|
||||||
gmp_errno |= error_bit;
|
|
||||||
__gmp_junk = 10 / __gmp_0;
|
__gmp_junk = 10 / __gmp_0;
|
||||||
abort ();
|
abort ();
|
||||||
}
|
}
|
||||||
|
3
gmp-h.in
3
gmp-h.in
@ -546,9 +546,6 @@ __GMP_DECLSPEC void mp_get_memory_functions __GMP_PROTO ((void *(**) (size_t),
|
|||||||
#define mp_bits_per_limb __gmp_bits_per_limb
|
#define mp_bits_per_limb __gmp_bits_per_limb
|
||||||
__GMP_DECLSPEC extern __gmp_const int mp_bits_per_limb;
|
__GMP_DECLSPEC extern __gmp_const int mp_bits_per_limb;
|
||||||
|
|
||||||
#define gmp_errno __gmp_errno
|
|
||||||
__GMP_DECLSPEC extern int gmp_errno;
|
|
||||||
|
|
||||||
#define gmp_version __gmp_version
|
#define gmp_version __gmp_version
|
||||||
__GMP_DECLSPEC extern __gmp_const char * __gmp_const gmp_version;
|
__GMP_DECLSPEC extern __gmp_const char * __gmp_const gmp_version;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user