summaryrefslogtreecommitdiff
path: root/libguile/bytevectors.c
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2009-06-19 00:10:21 +0200
committerLudovic Courtès <ludo@gnu.org>2009-06-19 00:10:21 +0200
commit55bf8cb7af47cde26e6a70dae056752c8265508d (patch)
treeab1ae884b5535611850e1f420ac4c6799a611029 /libguile/bytevectors.c
parentb242715b288b8f076d1617668e77f1ef44dfeeb3 (diff)
downloadguile-55bf8cb7af47cde26e6a70dae056752c8265508d.tar.gz
Fix `equal?' on bytevectors.
* libguile/bytevectors.c (bytevector_equal_p): New function. * test-suite/tests/bytevectors.test ("2.3 Operations on Bytes and Octets")["equal?"]: New test.
Diffstat (limited to 'libguile/bytevectors.c')
-rw-r--r--libguile/bytevectors.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libguile/bytevectors.c b/libguile/bytevectors.c
index 0846d9120..2484a64a4 100644
--- a/libguile/bytevectors.c
+++ b/libguile/bytevectors.c
@@ -300,6 +300,11 @@ SCM_SMOB_PRINT (scm_tc16_bytevector, print_bytevector,
return 1;
}
+SCM_SMOB_EQUALP (scm_tc16_bytevector, bytevector_equal_p, bv1, bv2)
+{
+ return scm_bytevector_eq_p (bv1, bv2);
+}
+
SCM_SMOB_FREE (scm_tc16_bytevector, free_bytevector, bv)
{