summaryrefslogtreecommitdiff
path: root/mpz/set_str.c
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2005-05-18 15:39:59 +0200
committertege <tege@gmplib.org>2005-05-18 15:39:59 +0200
commit85d3ff30728f215e6601f701ae03addf4eab69f7 (patch)
tree40fa89fb5ae60d161e015f2690e7fbc4f584b362 /mpz/set_str.c
parenta3d00ad3dbee97a09e3bb641a0d7dfcbe2d437ca (diff)
downloadgmp-85d3ff30728f215e6601f701ae03addf4eab69f7.tar.gz
Remove TMP_XXXX marker arguments.
Diffstat (limited to 'mpz/set_str.c')
-rw-r--r--mpz/set_str.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mpz/set_str.c b/mpz/set_str.c
index b38469487..d9b756b93 100644
--- a/mpz/set_str.c
+++ b/mpz/set_str.c
@@ -42,7 +42,7 @@ mpz_set_str (mpz_ptr x, const char *str, int base)
int c;
int negative;
const unsigned char *digit_value;
- TMP_DECL (marker);
+ TMP_DECL;
digit_value = digit_value_tab;
if (base > 36)
@@ -101,7 +101,7 @@ mpz_set_str (mpz_ptr x, const char *str, int base)
return 0;
}
- TMP_MARK (marker);
+ TMP_MARK;
str_size = strlen (str - 1);
s = begs = (char *) TMP_ALLOC (str_size + 1);
@@ -114,7 +114,7 @@ mpz_set_str (mpz_ptr x, const char *str, int base)
int dig = digit_value[c];
if (dig >= base)
{
- TMP_FREE (marker);
+ TMP_FREE;
return -1;
}
*s++ = dig;
@@ -132,6 +132,6 @@ mpz_set_str (mpz_ptr x, const char *str, int base)
xsize = mpn_set_str (x->_mp_d, (unsigned char *) begs, str_size, base);
x->_mp_size = negative ? -xsize : xsize;
- TMP_FREE (marker);
+ TMP_FREE;
return 0;
}