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 decpp.net]
Sent: Tuesday, April 11, 2006 10:18 AM
To: Chris Saunders
Cc: 'Torbjorn Granlund'; gmp-discuss 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
_______________________________________________
gmp-discuss mailing list
gmp-discuss swox.com
http://s
wox.com/mailman/listinfo/gmp-discuss
|