summaryrefslogtreecommitdiff
path: root/set_str_raw.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2001-01-11 16:45:01 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2001-01-11 16:45:01 +0000
commitc14c6d23d35d2ee302597f9b843c5836145340b4 (patch)
treea1b673e5d3f77b8a7d383aa277c2f0aba096a1bc /set_str_raw.c
parent235fe5534072efe52607f1e3ccdddf56067c3a07 (diff)
downloadmpfr-c14c6d23d35d2ee302597f9b843c5836145340b4.tar.gz
_mp_allocate_func -> _gmp_allocate_func
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@976 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'set_str_raw.c')
-rw-r--r--set_str_raw.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/set_str_raw.c b/set_str_raw.c
index e00645cef..56b166042 100644
--- a/set_str_raw.c
+++ b/set_str_raw.c
@@ -52,12 +52,7 @@ mpfr_set_str_raw (x, str)
xp = MPFR_MANT(x);
xsize = 1 + (MPFR_PREC(x)-1)/BITS_PER_MP_LIMB;
alloc = (strlen(str)+1) * sizeof(char);
- str0 = str2 = (char *) (*_mp_allocate_func) (alloc);
-
- if (str0 == NULL) {
- fprintf (stderr, "Error in mpfr_set_str_raw: no more memory available\n");
- exit (1);
- }
+ str0 = str2 = (char *) (*__gmp_allocate_func) (alloc);
if (*str == '-') { negative = 1; str++; }
else if (*str == '+') str++;
@@ -131,7 +126,7 @@ mpfr_set_str_raw (x, str)
MPFR_EXP(x) = expn - cnt;
MPFR_SIZE(x) = xsize; if (negative) MPFR_CHANGE_SIGN(x);
- (*_mp_free_func) (str0, alloc);
+ (*__gmp_free_func) (str0, alloc);
/* May change to take into account : syntax errors, overflow in exponent,
string truncated because of size of x */