From 23746acbf8fe15cbc20c9935bae65a7ef91f289b Mon Sep 17 00:00:00 2001 From: vlefevre Date: Sun, 28 Aug 2016 00:12:04 +0000 Subject: [src/mpfr-gmp.h] Added a warning about r10749. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10753 280ebfd0-de03-0410-8827-d642c229c3f4 --- src/mpfr-gmp.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/mpfr-gmp.h') diff --git a/src/mpfr-gmp.h b/src/mpfr-gmp.h index 4e803fd95..3088338fa 100644 --- a/src/mpfr-gmp.h +++ b/src/mpfr-gmp.h @@ -259,7 +259,10 @@ __MPFR_DECLSPEC extern const struct bases mpfr_bases[257]; mp_set_memory_functions(). This is fine as long as the user who wants to use different memory allocation functions first calls mp_set_memory_functions() before any call to mpfr_init or mpfr_init2. - For more complex usages, change #if 1 into #if 0. */ + For more complex usages, change #if 1 into #if 0. Warning! But in this + case, the user must make sure that there are no data internal to MPFR + allocated with the previous allocator. Freeing all the caches may be + necessary, but this is not guaranteed to be sufficient. */ #if 1 #undef __gmp_allocate_func -- cgit v1.2.1