diff options
author | Andy Wingo <wingo@pobox.com> | 2020-04-12 22:17:22 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2020-04-12 22:17:22 +0200 |
commit | cae74359decc1a9d28c7892c7344512178eeac2e (patch) | |
tree | 72984b9ae43c5aa79ad285caedbda6f83091cdb2 /NEWS | |
parent | 24a34074ef8fd91c111ed9987375f25925f69e26 (diff) | |
download | guile-cae74359decc1a9d28c7892c7344512178eeac2e.tar.gz |
Replace bit-count with bitvector-count
The old name was wonky and had bad argument order.
* NEWS: Add entry.
* doc/ref/api-data.texi (Bit Vectors): Update.
* libguile/bitvectors.h:
* libguile/bitvectors.c (VALIDATE_BITVECTOR): New helper.
(scm_bitvector_count): New function.
* libguile/deprecated.h:
* libguile/deprecated.c (scm_bit_count): Deprecate.
* module/ice-9/sandbox.scm (bitvector-bindings): Replace bit-count with
bitvector-count.
* module/srfi/srfi-60.scm: No need to #:replace bit-count.
* module/system/vm/frame.scm (available-bindings): Use bitvector-count.
* test-suite/tests/bitvectors.test ("bitvector-count"): Add test.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -7,8 +7,19 @@ Please send Guile bug reports to bug-guile@gnu.org. Changes in 3.0.3 (since 3.0.2) +* New interfaces and functionality + +** New bitvector-count procedure + +This replaces the wonky "bit-count" procedure. See "Bit Vectors" in the +manual, for more. + * New deprecations +** bit-count deprecated + +Use bitvector-count instead. See "Bit Vectors" in the manual. + ** Passing a u32vector to 'bit-set*!' and 'bit-count*' deprecated These functions had an interface that allowed the second bit-selection |