string->pointer and pointer->string have optional encoding arg
authorAndy Wingo <wingo@pobox.com>
Fri, 1 Apr 2011 11:31:26 +0000 (13:31 +0200)
committerAndy Wingo <wingo@pobox.com>
Fri, 1 Apr 2011 11:31:26 +0000 (13:31 +0200)
commitc6b08d21947b1b33de1e8cd364553112d4015253
treeafd04977f493891892d664fb7cc4d0231cde5ecc
parent13a78b0fd75a4825de0624e47911810fe8a5d150
string->pointer and pointer->string have optional encoding arg

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

* libguile/foreign.c (scm_string_to_pointer, scm_pointer_to_string): Add
  optional encoding, and in the pointer->string case, length arguments.

* libguile/foreign.h: Update prototypes of internal functions.
  Shouldn't affect ABI as they are internal.

* doc/ref/api-foreign.texi (Void Pointers and Byte Access): Update
  docs.
doc/ref/api-foreign.texi
libguile/foreign.c
libguile/foreign.h
test-suite/tests/foreign.test