add pointer->scm, scm->pointer
authorAndy Wingo <wingo@pobox.com>
Thu, 17 Mar 2011 09:39:02 +0000 (10:39 +0100)
committerAndy Wingo <wingo@pobox.com>
Thu, 17 Mar 2011 09:39:02 +0000 (10:39 +0100)
commit148c3317691d5b7d2414179031f87905454cb11a
treed5c8549de65fb07c83ab52461ef75574bd9bec5f
parentf5fc7e5710438389b21c5c754e959a5554561868
add pointer->scm, scm->pointer

* libguile/foreign.c (scm_pointer_to_scm, scm_scm_to_pointer): New
  functions, useful to pass and receive SCM values to and from foreign
  functions.

* module/system/foreign.scm: Export the new functions.

* doc/ref/api-foreign.texi (Foreign Variables): Add docs.

* test-suite/tests/foreign.test ("pointer<->scm"): Tests.
doc/ref/api-foreign.texi
libguile/foreign.c
module/system/foreign.scm
test-suite/tests/foreign.test