[Cffi-devel] Fw: writing documentation for CFFI functions
Joeish W
joeish80829 at yahoo.com
Sun Mar 30 18:26:10 UTC 2014
Here is the definition, but thanks for the HELambdaP idea
Trust me the opinion of a CFFI expert does matter...could you also show me what a HELambdaP definition would look like for this defcfun.
;; double RNG::uniform(double a, double b)
;; C++
;; double cv_RNG_uniform_double(RNG* self, double a, double b) ;; C
(defcfun ("cv_RNG_uniform_double" uniform-d) :double
"Returns the next random number sampled from the uniform distribution."
(self (:pointer rng))
(a :double)
(b :double))
On Sunday, March 30, 2014 9:44 AM, Marco Antoniotti <marcoxa at cs.nyu.edu> wrote:
What is the CFFI actual definition?
>
>I - but that is a very selfish proposal :) - would just write a proper handler for HELambdaP.
>
>Cheers
>
>MA
>
>
>
>
>
>On Mar 30, 2014, at 17:11 , Joeish W <joeish80829 at yahoo.com> wrote:
>
>> Which is the better way do write documentation for functions for a CFFI library
>>
>> like this?
>>
>> C++: int RNG::uniform(int a, int b)
>>
>> Common Lisp: (UNIFORM-D (RNG (:POINTER RNG)) (A :DOUBLE) (B :DOUBLE)) => :DOUBLE
>>
>> or like this without the parenthesis
>>
>> C++: float RNG::uniform(float a, float b)
>>
>> Common Lisp: (UNIFORM-F (RNG :POINTER RNG) A :FLOAT B :FLOAT) => :FLOAT
>>
>> _______________________________________________
>> Cffi-devel mailing list
>> Cffi-devel at common-lisp.net
>> http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel
>
>--
>Marco Antoniotti
>
>
>
>
>_______________________________________________
>Cffi-devel mailing list
>Cffi-devel at common-lisp.net
>http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cffi-devel/attachments/20140330/f265373f/attachment.html>
More information about the cffi-devel
mailing list