Here's updated patch Thanks! On Tue, 2016-01-05 at 10:08 -0500, Mark H Weaver wrote: > More specifically, here's what I'd suggest: > > * A new, static, 'pointer_to_procedure' C function that inherits the > signature and body of 'scm_pointer_to_procedure' but with a new and > required 'return_errno' argument. The other functions below would be > wrappers for this function. > > * A new private 'scm_i_pointer_to_procedure_with_keywords' C function, > defined using SCM_DEFINE and bound to 'pointer->procedure' in Scheme, > that uses 'scm_c_bind_keyword_arguments' and calls > 'pointer_to_procedure'. > > * The C API function 'scm_pointer_to_procedure', which has the same > arguments as in Guile 2.0.11 and calls 'pointer_to_procedure' with > 'return_errno' set to SCM_BOOL_F. > > * A new C API function 'scm_pointer_to_procedure_with_errno', which is > identical to 'scm_pointer_to_procedure' except that it calls > 'pointer_to_procedure' with 'return_errno' set to SCM_BOOL_T. > > The only change to foreign.h would be to add a prototype for > 'scm_pointer_to_procedure_with_errno'. > > What do you think? > > Regards, > Mark