summaryrefslogtreecommitdiff
path: root/libguile/foreign.h
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2011-04-01 13:31:26 +0200
committerAndy Wingo <wingo@pobox.com>2011-04-01 13:31:26 +0200
commitc6b08d21947b1b33de1e8cd364553112d4015253 (patch)
treeafd04977f493891892d664fb7cc4d0231cde5ecc /libguile/foreign.h
parent13a78b0fd75a4825de0624e47911810fe8a5d150 (diff)
downloadguile-c6b08d21947b1b33de1e8cd364553112d4015253.tar.gz
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.
Diffstat (limited to 'libguile/foreign.h')
-rw-r--r--libguile/foreign.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libguile/foreign.h b/libguile/foreign.h
index b29001962..6c6f37306 100644
--- a/libguile/foreign.h
+++ b/libguile/foreign.h
@@ -72,8 +72,8 @@ SCM_INTERNAL void scm_i_pointer_print (SCM pointer, SCM port,
scm_print_state *pstate);
SCM_INTERNAL SCM scm_dereference_pointer (SCM pointer);
-SCM_INTERNAL SCM scm_string_to_pointer (SCM string);
-SCM_INTERNAL SCM scm_pointer_to_string (SCM pointer);
+SCM_INTERNAL SCM scm_string_to_pointer (SCM string, SCM encoding);
+SCM_INTERNAL SCM scm_pointer_to_string (SCM pointer, SCM length, SCM encoding);