GNU bug report logs -
#18592
FFI should have portable access to ‘errno’
Previous Next
Full log
Message #67 received at 18592 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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
[0001-Added-new-function-pointer-procedure-with-errno-to-r.patch (text/x-patch, attachment)]
This bug report was last modified 8 years and 338 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.