diff options
author | Andy Wingo <wingo@pobox.com> | 2020-04-13 22:06:56 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2020-04-13 22:06:56 +0200 |
commit | ff9979b6bc6a72e03085d7ce21fd3f8f1bd39b64 (patch) | |
tree | e33416015ef500ac2c8e6ea9674c312a34ea88ae /libguile/bitvectors.h | |
parent | 06709d77b9f519c712e13e086c7213e5a77fcbc4 (diff) | |
download | guile-ff9979b6bc6a72e03085d7ce21fd3f8f1bd39b64.tar.gz |
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.
Diffstat (limited to 'libguile/bitvectors.h')
-rw-r--r-- | libguile/bitvectors.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libguile/bitvectors.h b/libguile/bitvectors.h index 09a9a6147..82c8b3236 100644 --- a/libguile/bitvectors.h +++ b/libguile/bitvectors.h @@ -44,8 +44,9 @@ SCM_API SCM scm_bitvector_fill_x (SCM vec, SCM val); SCM_API SCM scm_bitvector_count (SCM v); SCM_API SCM scm_bitvector_position (SCM v, SCM item, SCM start); +SCM_API SCM scm_bitvector_set_bits_x (SCM v, SCM bits); +SCM_API SCM scm_bitvector_clear_bits_x (SCM v, SCM bits); -SCM_API SCM scm_bit_set_star_x (SCM v, SCM kv, SCM obj); SCM_API SCM scm_bit_count_star (SCM v, SCM kv, SCM obj); SCM_API SCM scm_bit_invert_x (SCM v); |