TMP_ALLOC in C++

Marc Glisse marc.glisse at inria.fr
Fri Dec 26 14:02:28 UTC 2014


On Thu, 18 Dec 2014, Marc Glisse wrote:

> this patch moves deallocation of temporary memory to a destructor when GMP is 
> compiled with a C++ compiler. This may not be the final form of the patch, 
> but I am interested in comments. Most of the patch is adjustments to 
> tests/mpn so that temporary memory is freed before calling tests_end.
>
> (for the tal-debug.c patch, it may be simpler to change the type of block to 
> void* in gmp-impl.h)

I think I'll commit the testsuite adjustments soon. For the main part 
(gmp-impl.h), I'll wait and play with it some more, at least to remove the 
ugly pedantic warning.

-- 
Marc Glisse


More information about the gmp-devel mailing list