summaryrefslogtreecommitdiff
path: root/tests/mpfr-test.h
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-01-29 13:45:57 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-01-29 13:45:57 +0000
commite6559be7a708e66ac9ec633cd9cc0e4d07b2105b (patch)
treeb3bc396e5e1c3a9672c788c8f9742347c565157f /tests/mpfr-test.h
parente32c09fe27c46519c27672c841764b72c9615b20 (diff)
downloadmpfr-e6559be7a708e66ac9ec633cd9cc0e4d07b2105b.tar.gz
Cleanup of memory allocation in the tests:
* only tests_allocate, tests_reallocate and tests_free should be used (now exported instead of mpfr_default_allocate, etc.); * this is now mentioned in doc/README.dev; * added checks to tools/mpfrlint (heuristics as usual). Note: This follows the discussion at https://sympa.inria.fr/sympa/arc/mpfr/2015-12/msg00055.html and should solve these problems under MS Windows (mingw32), though this cleanup is more general than an attempt to fix a Windows issue. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9891 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/mpfr-test.h')
-rw-r--r--tests/mpfr-test.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/mpfr-test.h b/tests/mpfr-test.h
index 0bb6c96cb..6cf34ec20 100644
--- a/tests/mpfr-test.h
+++ b/tests/mpfr-test.h
@@ -205,11 +205,9 @@ extern gmp_randstate_t mpfr_rands;
typedef __gmp_randstate_struct *mpfr_gmp_randstate_ptr;
/* Allocation */
-void *mpfr_default_allocate _MPFR_PROTO ((size_t));
-void *mpfr_default_reallocate _MPFR_PROTO ((void *, size_t,
- size_t));
-void mpfr_default_free _MPFR_PROTO ((void *, size_t));
-
+void *tests_allocate _MPFR_PROTO ((size_t));
+void *tests_reallocate _MPFR_PROTO ((void *, size_t, size_t));
+void tests_free _MPFR_PROTO ((void *, size_t));
#if defined (__cplusplus)
}