Add `string->pointer' and `pointer->string' to the FFI.
authorLudovic Courtès <ludo@gnu.org>
Sun, 15 Aug 2010 14:42:33 +0000 (16:42 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sun, 15 Aug 2010 14:43:39 +0000 (16:43 +0200)
commitfa2a89a6d174a863ffc5d4d5b3e90d542a9962aa
treeb9aeafd966d2d25c35889f1f83864fa2c6c67000
parent61d1d4a83afb55a524b548a0f07b11dae177281a
Add `string->pointer' and `pointer->string' to the FFI.

* libguile/foreign.c (scm_string_to_pointer, scm_pointer_to_string): New
  functions.

* libguile/foreign.h (scm_string_to_pointer, scm_pointer_to_string): New
  declarations.

* module/system/foreign.scm: Export `string->pointer' and
  `pointer->string'.

* test-suite/tests/foreign.test ("pointer<->string"): New test prefix.

* doc/ref/api-foreign.texi (Void Pointers and Byte Access): Add
  `string->pointer' and `pointer->string'.
doc/ref/api-foreign.texi
libguile/foreign.c
libguile/foreign.h
module/system/foreign.scm
test-suite/tests/foreign.test