summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2000-04-16 03:13:04 +0200
committerKevin Ryde <user42@zip.com.au>2000-04-16 03:13:04 +0200
commitc23067c6db86148930301868135b76efa355a1c9 (patch)
tree6eabeffd133c5b927c396d5bfa884bb03c0b2d49
parent8e4a5e6823ae832e8a9cbf35273c784a9c0ca921 (diff)
downloadgmp-c23067c6db86148930301868135b76efa355a1c9.tar.gz
* gmp-impl.h (_mp_allocate_func,etc): #define internal allocation
functions and variables to __gmp_allocate_func etc.
-rw-r--r--gmp-impl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gmp-impl.h b/gmp-impl.h
index 79ef473e7..e98c0d42e 100644
--- a/gmp-impl.h
+++ b/gmp-impl.h
@@ -90,6 +90,15 @@ MA 02111-1307, USA. */
#define PREC(x) ((x)->_mp_prec)
#define ALLOC(x) ((x)->_mp_alloc)
+/* FIXME: These are purely internal, so do a search and replace to change
+ them to __gmp forms, rather than using these macros. */
+#define _mp_allocate_func __gmp_allocate_func
+#define _mp_reallocate_func __gmp_reallocate_func
+#define _mp_free_func __gmp_free_func
+#define _mp_default_allocate __gmp_default_allocate
+#define _mp_default_reallocate __gmp_default_reallocate
+#define _mp_default_free __gmp_default_free
+
#if (__STDC__-0) || defined (__cplusplus)
void *malloc (size_t);
void *realloc (void *, size_t);