From ff9979b6bc6a72e03085d7ce21fd3f8f1bd39b64 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Mon, 13 Apr 2020 22:06:56 +0200 Subject: Replace bit-set*! with bitvector-set-bits! / bitvector-clear-bits! The old name was wonky and hard to read: you almost always pass a literal as the value to set, so better to make separate functions. * NEWS: Add entry. * doc/ref/api-data.texi (Bit Vectors): Update. * libguile/bitvectors.h: * libguile/bitvectors.c (scm_bitvector_set_bits_x) (scm_bitvector_clear_bits_x): New functions. * libguile/deprecated.h: * libguile/deprecated.c (scm_bit_set_star_x): Deprecate. * module/ice-9/sandbox.scm (mutable-bitvector-bindings): Replace bit-set*! with bitvector-set-bits! / bitvector-clear-bits!. * module/system/vm/frame.scm (available-bindings, compute-killv): Use bitvector-set-bits! and bitvector-clear-bits!. * test-suite/tests/bitvectors.test: Update. --- libguile/deprecated.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libguile/deprecated.h') diff --git a/libguile/deprecated.h b/libguile/deprecated.h index edbbff418..3411ab7c6 100644 --- a/libguile/deprecated.h +++ b/libguile/deprecated.h @@ -117,6 +117,7 @@ SCM_DEPRECATED char* scm_find_executable (const char *name); SCM_DEPRECATED SCM scm_bit_count (SCM item, SCM seq); SCM_DEPRECATED SCM scm_bit_position (SCM item, SCM v, SCM k); +SCM_DEPRECATED SCM scm_bit_set_star_x (SCM v, SCM kv, SCM obj); SCM_DEPRECATED SCM scm_istr2bve (SCM str); void scm_i_init_deprecated (void); -- cgit v1.2.3