mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 05:50:26 +02:00
Fix doc for last bitvector patch
This commit is contained in:
parent
ef0579492a
commit
e3795a39fa
1 changed files with 17 additions and 6 deletions
|
@ -6663,15 +6663,13 @@ For example,
|
||||||
@end example
|
@end example
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
@deftypefn {C Function} {const scm_t_uint32 *} scm_bitvector_elements (SCM vec, scm_t_array_handle *handle, size_t *offp, size_t *lenp, ssize_t *incp)
|
@deftypefn {C Function} {const scm_t_uint32 *} scm_bitvector_elements (SCM vec)
|
||||||
Like @code{scm_vector_elements} (@pxref{Vector Accessing from C}), but
|
Like @code{scm_vector_elements} (@pxref{Vector Accessing from C}), but
|
||||||
for bitvectors. The variable pointed to by @var{offp} is set to the
|
for bitvectors. See @code{scm_array_handle_bit_elements} for how to use the returned
|
||||||
value returned by @code{scm_array_handle_bit_elements_offset}. See
|
pointer.
|
||||||
@code{scm_array_handle_bit_elements} for how to use the returned
|
|
||||||
pointer and the offset.
|
|
||||||
@end deftypefn
|
@end deftypefn
|
||||||
|
|
||||||
@deftypefn {C Function} {scm_t_uint32 *} scm_bitvector_writable_elements (SCM vec, scm_t_array_handle *handle, size_t *offp, size_t *lenp, ssize_t *incp)
|
@deftypefn {C Function} {scm_t_uint32 *} scm_bitvector_writable_elements (SCM vec)
|
||||||
Like @code{scm_bitvector_elements}, but the pointer is good for reading
|
Like @code{scm_bitvector_elements}, but the pointer is good for reading
|
||||||
and writing.
|
and writing.
|
||||||
@end deftypefn
|
@end deftypefn
|
||||||
|
@ -8184,6 +8182,19 @@ reading and writing. You must take care not to modify bits outside of
|
||||||
the allowed index range of the array, even for contiguous arrays.
|
the allowed index range of the array, even for contiguous arrays.
|
||||||
@end deftypefn
|
@end deftypefn
|
||||||
|
|
||||||
|
The following functions are provided as shortcuts for the @code{_elements} functions for the specific case of rank-1 arrays. They avoid the need to manage the array handle object.
|
||||||
|
|
||||||
|
@deftypefn {C Function} {const scm_t_uint32 *} scm_array1_bit_elements (SCM vec, size_t *lenp, ssize_t *incp, size_t *offp)
|
||||||
|
Obtain the parameters of the first axis of rank-1 bit array @var{vec}, plus a pointer to the elements.
|
||||||
|
See @code{scm_array_handle_bit_elements} for how to use these values.
|
||||||
|
@end deftypefn
|
||||||
|
|
||||||
|
@deftypefn {C Function} {scm_t_uint32 *} scm_array1_bit_writable_elements (SCM vec, size_t *lenp, ssize_t *incp, size_t *offp)
|
||||||
|
Like @code{scm_array1_bit_writable_elements}, but the pointer is good for reading
|
||||||
|
and writing.
|
||||||
|
@end deftypefn
|
||||||
|
|
||||||
|
|
||||||
@node VLists
|
@node VLists
|
||||||
@subsection VLists
|
@subsection VLists
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue