summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2000-04-16 06:40:39 +0200
committerKevin Ryde <user42@zip.com.au>2000-04-16 06:40:39 +0200
commit0951b6bb9deb57092d7ed0f3fa8aec68d84e9a66 (patch)
treed9ba271842519c22d99757af87fc1e58b7246eae
parent44cd75b7f738959064b061b28096df9bfb1b730c (diff)
downloadgmp-0951b6bb9deb57092d7ed0f3fa8aec68d84e9a66.tar.gz
* stack-alloc.c (__gmp_allocate_func,etc): Change from _mp_*.
This is separate from the change in gmp-impl.h because gmp-impl.h isn't included in stack-alloc.c (it conflicts with stack-alloc.h).
-rw-r--r--stack-alloc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/stack-alloc.c b/stack-alloc.c
index 217f39e87..c4336683e 100644
--- a/stack-alloc.c
+++ b/stack-alloc.c
@@ -29,11 +29,11 @@ MA 02111-1307, USA. */
/* gmp-impl.h and stack-alloc.h conflict when not USE_STACK_ALLOC, so these
declarations are copied here */
#if __STDC__
-extern void * (*_mp_allocate_func) (size_t);
-extern void (*_mp_free_func) (void *, size_t);
+extern void * (*__gmp_allocate_func) (size_t);
+extern void (*__gmp_free_func) (void *, size_t);
#else
-extern void * (*_mp_allocate_func) ();
-extern void (*_mp_free_func) ();
+extern void * (*__gmp_allocate_func) ();
+extern void (*__gmp_free_func) ();
#endif
typedef struct tmp_stack tmp_stack;
@@ -82,7 +82,7 @@ __gmp_tmp_alloc (size)
current_total_allocation = max_total_allocation;
}
- chunk = (*_mp_allocate_func) (chunk_size);
+ chunk = (*__gmp_allocate_func) (chunk_size);
header = chunk;
header->end = (char *) chunk + chunk_size;
header->alloc_point = (char *) chunk + HSIZ;
@@ -118,7 +118,7 @@ __gmp_tmp_free (mark)
tmp = current;
current = tmp->prev;
current_total_allocation -= (((char *) (tmp->end) - (char *) tmp) - HSIZ);
- (*_mp_free_func) (tmp, (char *) tmp->end - (char *) tmp);
+ (*__gmp_free_func) (tmp, (char *) tmp->end - (char *) tmp);
}
current->alloc_point = mark->alloc_point;
}