mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-24 13:30:21 +02:00
Implements wishlist item <https://debbugs.gnu.org/18592>. Requested by Frank Terbeck <ft@bewatermyfriend.org>. Based on a proposed patch by Nala Ginrut <nalaginrut@gmail.com>. Patch ported to 2.2 by Andy Wingo <wingo@pobox.com>. * libguile/foreign.c (cif_to_procedure): Add 'with_errno' argument. If true, truncate result to only one return value. (scm_i_foreign_call): Separate the arguments. Always return errno. (pointer_to_procedure): New static function. (scm_pointer_to_procedure_with_errno): New C API function, implemented in terms of 'pointer_to_procedure'. (scm_pointer_to_procedure): Reimplement in terms of 'pointer_to_procedure', no longer bound to "pointer->procedure". See below. (scm_i_pointer_to_procedure): New C function bound to "pointer->procedure" which now accepts the optional #:return-errno? keyword argument, implemented in terms of 'pointer_to_procedure'. (k_return_errno): New keyword #:return-errno?. * libguile/foreign.h (scm_pointer_to_procedure_with_errno): Add prototype. * doc/ref/api-foreign.texi (Dynamic FFI): Adjust documentation. * libguile/vm-engine.c (foreign-call): Return two values. |
||
---|---|---|
.. | ||
.gitignore | ||
api-binding.texi | ||
api-control.texi | ||
api-coverage.texi | ||
api-data.texi | ||
api-debug.texi | ||
api-deprecated.texi | ||
api-evaluation.texi | ||
api-foreign-objects.texi | ||
api-foreign.texi | ||
api-i18n.texi | ||
api-init.texi | ||
api-io.texi | ||
api-lalr.texi | ||
api-languages.texi | ||
api-macros.texi | ||
api-memory.texi | ||
api-modules.texi | ||
api-options.texi | ||
api-overview.texi | ||
api-peg.texi | ||
api-procedures.texi | ||
api-regex.texi | ||
api-scheduling.texi | ||
api-scm.texi | ||
api-smobs.texi | ||
api-snarf.texi | ||
api-undocumented.texi | ||
api-utility.texi | ||
api.txt | ||
ChangeLog-2008 | ||
ChangeLog-goops-2008 | ||
ChangeLog-guile-doc-ref | ||
compiler.texi | ||
curried.texi | ||
data-rep.texi | ||
effective-version.texi.in | ||
expect.texi | ||
fdl.texi | ||
gds.dia | ||
gds.eps | ||
gds.pdf | ||
gds.txt | ||
goops-tutorial.texi | ||
goops.texi | ||
guile-invoke.texi | ||
guile.texi | ||
hierarchy.dot | ||
hierarchy.eps | ||
hierarchy.pdf | ||
hierarchy.png | ||
hierarchy.txt | ||
history.texi | ||
indices.texi | ||
intro.texi | ||
libguile-autoconf.texi | ||
libguile-concepts.texi | ||
libguile-extensions.texi | ||
libguile-foreign-objects.texi | ||
libguile-linking.texi | ||
libguile-parallel.texi | ||
libguile-program.texi | ||
libguile-snarf.texi | ||
Makefile.am | ||
match.texi | ||
misc-modules.texi | ||
mod-getopt-long.texi | ||
mop.text | ||
new-docstrings.texi | ||
posix.texi | ||
preface.texi | ||
r6rs.texi | ||
repl-modules.texi | ||
scheme-ideas.texi | ||
scheme-indices.texi | ||
scheme-intro.texi | ||
scheme-reading.texi | ||
scheme-scripts.texi | ||
scheme-using.texi | ||
scheme.dia | ||
scheme.eps | ||
scheme.pdf | ||
scheme.txt | ||
scsh.texi | ||
slib.texi | ||
srfi-modules.texi | ||
statprof.texi | ||
sxml-match.texi | ||
sxml.texi | ||
texinfo.texi | ||
tools.texi | ||
tour.texi | ||
vm.texi | ||
web.texi |