>From 71151759513f8163e45c328e5bcae8e89ebbf614 Mon Sep 17 00:00:00 2001 From: Nala Ginrut Date: Thu, 31 Dec 2015 20:28:36 +0800 Subject: [PATCH 2/2] updated pointer->procedure in document --- doc/ref/api-foreign.texi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/ref/api-foreign.texi b/doc/ref/api-foreign.texi index c2c49ec..9fd09f5 100644 --- a/doc/ref/api-foreign.texi +++ b/doc/ref/api-foreign.texi @@ -813,8 +813,8 @@ tightly packed structs and unions by hand. See the code for Of course, the land of C is not all nouns and no verbs: there are functions too, and Guile allows you to call them. address@hidden {Scheme Procedure} pointer->procedure return_type func_ptr arg_types address@hidden {C Procedure} scm_pointer_to_procedure (return_type, func_ptr, arg_types) address@hidden {Scheme Procedure} pointer->procedure return_type func_ptr arg_types [return_errno=#f] address@hidden {C Procedure} scm_pointer_to_procedure (return_type, func_ptr, arg_types, return_errno) Make a foreign function. Given the foreign void pointer @var{func_ptr}, its argument and @@ -825,6 +825,9 @@ and return appropriate values. @var{arg_types} should be a list of foreign types. @code{return_type} should be a foreign type. @xref{Foreign Types}, for more information on foreign types. address@hidden is @code{#f} in default, if set to @code{#t}, then @var{errno} +will be returned as the second value. + @end deffn Here is a better definition of @code{(math bessel)}: -- 1.7.10.4