summaryrefslogtreecommitdiff
path: root/av.c
diff options
context:
space:
mode:
authorSimon Cozens <simon@netthink.co.uk>2000-07-24 06:40:52 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-07-25 15:41:15 +0000
commitf3b76584ef7773843ba39a11b8bd91238af59f12 (patch)
tree9fe51961c6802f7a863938ffd299365128bc772d /av.c
parentdb22727b1cdf038cfb2d069831d76310ffc4b838 (diff)
downloadperl-f3b76584ef7773843ba39a11b8bd91238af59f12.tar.gz
av.c apidoc
Message-ID: <slrn8nnp7k.cgv.simon@justanother.perlhacker.org> p4raw-id: //depot/perl@6438
Diffstat (limited to 'av.c')
-rw-r--r--av.c27
1 files changed, 24 insertions, 3 deletions
diff --git a/av.c b/av.c
index 819887e2ad..ef2c90562d 100644
--- a/av.c
+++ b/av.c
@@ -661,6 +661,14 @@ Perl_av_len(pTHX_ register AV *av)
return AvFILL(av);
}
+/*
+=for apidoc av_fill
+
+Ensure than an array has a given number of elements, equivalent to
+Perl's C<$#array = $fill;>.
+
+=cut
+*/
void
Perl_av_fill(pTHX_ register AV *av, I32 fill)
{
@@ -708,6 +716,14 @@ Perl_av_fill(pTHX_ register AV *av, I32 fill)
(void)av_store(av,fill,&PL_sv_undef);
}
+/*
+=for apidoc av_delete
+
+Deletes the element indexed by C<key> from the array. Returns the
+deleted element. C<flags> is currently ignored.
+
+=cut
+*/
SV *
Perl_av_delete(pTHX_ AV *av, I32 key, I32 flags)
{
@@ -758,10 +774,15 @@ Perl_av_delete(pTHX_ AV *av, I32 key, I32 flags)
}
/*
- * This relies on the fact that uninitialized array elements
- * are set to &PL_sv_undef.
- */
+=for apidoc av_exists
+
+Returns true if the element indexed by C<key> has been initialized.
+This relies on the fact that uninitialized array elements are set to
+C<&PL_sv_undef>.
+
+=cut
+*/
bool
Perl_av_exists(pTHX_ AV *av, I32 key)
{