_mp_alloc vs ALLOC

Pedro Gimeno gmpdevel at formauri.es
Mon Jun 4 20:41:08 CEST 2012


Torbjorn Granlund wrote:
> Pedro Gimeno <p.gimeno at formauri.es> writes:
> 
>   My recollection is that gmp_errno was not thread-safe, not just
>   obsolete, and that that was a reason for getting rid of it.
>   
> Making some C error handling mechanism would be great, though.  I am not
> sure that's easy, though.  "For error handling, use C++"?

I've seen attempts at structured exception handling in C using
setjmp/longjmp but they looked awkward and were incomplete, so SEH might
not be the way to go in C. I don't know what other options may exist.


More information about the gmp-devel mailing list