diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-11-27 10:10:06 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-11-27 10:10:06 +0000 |
commit | cd34071197163d908b881c4204226b13ed4bb6b0 (patch) | |
tree | 7be6b5ba805b1ca40e7215058d818029cd8d3c25 /mathoms.c | |
parent | 428bacd701ef45155f9dfd0d9c3d063dc305de00 (diff) | |
download | perl-cd34071197163d908b881c4204226b13ed4bb6b0.tar.gz |
av_fake() isn't in the public API, and isn't used anywhere, so it can
go.
p4raw-id: //depot/perl@34944
Diffstat (limited to 'mathoms.c')
-rw-r--r-- | mathoms.c | 23 |
1 files changed, 0 insertions, 23 deletions
@@ -607,29 +607,6 @@ Perl_hv_magic(pTHX_ HV *hv, GV *gv, int how) sv_magic(MUTABLE_SV(hv), MUTABLE_SV(gv), how, NULL, 0); } -AV * -Perl_av_fake(pTHX_ register I32 size, register SV **strp) -{ - register SV** ary; - register AV * const av = MUTABLE_AV(newSV_type(SVt_PVAV)); - - PERL_ARGS_ASSERT_AV_FAKE; - - Newx(ary,size+1,SV*); - AvALLOC(av) = ary; - Copy(strp,ary,size,SV*); - AvREIFY_only(av); - AvARRAY(av) = ary; - AvFILLp(av) = size - 1; - AvMAX(av) = size - 1; - while (size--) { - assert (*strp); - SvTEMP_off(*strp); - strp++; - } - return av; -} - bool Perl_do_open(pTHX_ GV *gv, register const char *name, I32 len, int as_raw, int rawmode, int rawperm, PerlIO *supplied_fp) |