diff options
author | Andy Wingo <wingo@pobox.com> | 2020-04-12 22:39:55 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2020-04-12 22:39:55 +0200 |
commit | 06709d77b9f519c712e13e086c7213e5a77fcbc4 (patch) | |
tree | b3f94fd3454cc22208dc8f8bb570b795798d917e /doc/ref/api-data.texi | |
parent | cae74359decc1a9d28c7892c7344512178eeac2e (diff) | |
download | guile-06709d77b9f519c712e13e086c7213e5a77fcbc4.tar.gz |
Replace bit-position with bitvector-position
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 (scm_bitvector_position): New function.
* libguile/deprecated.h:
* libguile/deprecated.c (scm_bit_position): Deprecate.
* module/ice-9/sandbox.scm (bitvector-bindings): Replace bit-position
with bitvector-position.
* module/language/cps/intset.scm (bitvector->intset): Use
bitvector-position.
* module/system/vm/frame.scm (available-bindings): Use
bitvector-position.
* test-suite/tests/bitvectors.test ("bitvector-position"): Add test.
Diffstat (limited to 'doc/ref/api-data.texi')
-rw-r--r-- | doc/ref/api-data.texi | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/ref/api-data.texi b/doc/ref/api-data.texi index bce628cab..732884213 100644 --- a/doc/ref/api-data.texi +++ b/doc/ref/api-data.texi @@ -6622,16 +6622,16 @@ Return a count of how many entries in @var{bitvector} are set. @end example @end deffn -@deffn {Scheme Procedure} bit-position bool bitvector start -@deffnx {C Function} scm_bit_position (bool, bitvector, start) +@deffn {Scheme Procedure} bitvector-position bitvector bool start +@deffnx {C Function} scm_bitvector_position (bitvector, bool, start) Return the index of the first occurrence of @var{bool} in @var{bitvector}, starting from @var{start}. If there is no @var{bool} entry between @var{start} and the end of @var{bitvector}, then return @code{#f}. For example, @example -(bit-position #t #*000101 0) @result{} 3 -(bit-position #f #*0001111 3) @result{} #f +(bitvector-position #*000101 #t 0) @result{} 3 +(bitvector-position #*0001111 #f 3) @result{} #f @end example @end deffn |