summaryrefslogtreecommitdiff
path: root/src/mpfr-gmp.h
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-08-28 00:12:04 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-08-28 00:12:04 +0000
commit23746acbf8fe15cbc20c9935bae65a7ef91f289b (patch)
tree824853053292cdf1c8b83828216906db9f36d206 /src/mpfr-gmp.h
parent0789b484f7eee804ef7f4ae8e60a8f34fa82c212 (diff)
downloadmpfr-23746acbf8fe15cbc20c9935bae65a7ef91f289b.tar.gz
[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
Diffstat (limited to 'src/mpfr-gmp.h')
-rw-r--r--src/mpfr-gmp.h5
1 files changed, 4 insertions, 1 deletions
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