[Fwd: Re: new mpfr release]

Torbjorn Granlund tege at swox.com
Thu Sep 25 15:07:19 CEST 2003

Vincent Lefevre <vincent at vinc17.org> writes:

  On 2003-09-25 12:32:47 +0200, Patrick Pelissier wrote:
  > Why don't add for mpz/mpq/mpfr the varargs list version of 
  > init/init2/clear ?
  >   	mpx_t x, y, z, a, b, c;
  >   	mpx_init_s (x, y, z, NULL);
  >   	mpx_init2_s(50, a, b, c, NULL);
  > 	...
  >   	mpx_clear_s (x, y, z, a, b, c, NULL);
  except that NULL must be casted to a pointer type (in the case
  it is not a pointer), or something equivalent.
A properly declared NULL should work in any context, I think.
But we would need to instruct people to #include stdlib.h
before gmp.h in modern C, and stdio.h in classical C.

Defining NULL ourselves is no option.


More information about the gmp-devel mailing list