diff --git a/doc/ref/api-memory.texi b/doc/ref/api-memory.texi index 6512650ce..130ff84db 100644 --- a/doc/ref/api-memory.texi +++ b/doc/ref/api-memory.texi @@ -1,6 +1,6 @@ @c -*-texinfo-*- @c This is part of the GNU Guile Reference Manual. -@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2009, 2010, 2012, 2013 +@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2009, 2010, 2012, 2013, 2014 @c Free Software Foundation, Inc. @c See the file guile.texi for copying conditions. @@ -350,6 +350,17 @@ Return @code{#t} if @var{obj} is a weak vector. Note that all weak hashes are also weak vectors. @end deffn +@deffn {Scheme Procedure} weak-vector-ref wvect k +@deffnx {C Function} scm_weak_vector_ref (wvect, k) +Return the @var{k}th element of the weak vector @var{wvect}, or +@code{#f} if that element has been collected. +@end deffn + +@deffn {Scheme Procedure} weak-vector-set! wvect k elt +@deffnx {C Function} scm_weak_vector_set_x (wvect, k, elt) +Set the @var{k}th element of the weak vector @var{wvect} to @var{elt}. +@end deffn + @node Guardians @subsection Guardians