Possible documentation problems.
Chris Saunders
evas at mountaincable.net
Tue Apr 11 22:27:00 CEST 2006
Actually building a library to interface to GMP from another language may
(and has) require digging into the C code.
Regards
Chris Saunders
-----Original Message-----
From: Décio Luiz Gazzoni Filho [mailto:decio at decpp.net]
Sent: Tuesday, April 11, 2006 10:18 AM
To: Chris Saunders
Cc: 'Torbjorn Granlund'; gmp-discuss at swox.com
Subject: Re: Possible documentation problems.
On Apr 11, 2006, at 11:06 AM, Chris Saunders wrote:
> Thanks for the response Torbjörn. I now see that both _mpq_cmp_ui and
> mpq_cmp_ui and I assume they are supposed to accomplish the same
> thing. Can
> I ask why both are defined and what the relative advantages are?
> Sorry if
> this question appears stupid but I am not at all expert at C. I
> write an
> interface to GMP from the computer language Eiffel. My knowledge
> of C is
> mostly from building this interface.
Is there any particular reason why you won't stick to the documented
interface presented in the manual?
mpq_cmp_ui is in the manual, _mpq_cmp_ui isn't. If you were to stick
to the documented interface instead of hunting through the code,
you'd have avoided these questions.
In case you don't know, the manual is at www.swox.com/gmp/manual/
Décio
More information about the gmp-discuss
mailing list