From: Nicholas Clark <nick@ccl4.org>
Date: Thu, 20 Dec 2007 20:58:25 +0000 (+0000)
Subject: Correct the embed.fnc descriptions of newAV() and newHV() - they do not
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3bdcbd26ea8ce137a02a61d6364dbbb1afb63c19;p=p5sagit%2Fp5-mst-13.2.git

Correct the embed.fnc descriptions of newAV() and newHV() - they do not
return memory allocated à la malloc(), as it comes from an arena.

p4raw-id: //depot/perl@32679
---

diff --git a/embed.fnc b/embed.fnc
index a37d54f..a5a191d 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -565,7 +565,7 @@ ApM	|CV *	|newXS_flags	|NULLOK const char *name|NN XSUBADDR_t subaddr\
 				|NN const char *const filename \
 				|NULLOK const char *const proto|U32 flags
 Apd	|CV*	|newXS		|NULLOK const char* name|NN XSUBADDR_t f|NN const char* filename
-Amdba	|AV*	|newAV
+AmdbR	|AV*	|newAV
 Apa	|OP*	|newAVREF	|NN OP* o
 Apa	|OP*	|newBINOP	|I32 type|I32 flags|NULLOK OP* first|NULLOK OP* last
 Apa	|OP*	|newCVREF	|I32 flags|NULLOK OP* o
@@ -573,7 +573,7 @@ Apa	|OP*	|newGVOP	|I32 type|I32 flags|NN GV* gv
 Apa	|GV*	|newGVgen	|NN const char* pack
 Apa	|OP*	|newGVREF	|I32 type|NULLOK OP* o
 ApaR	|OP*	|newHVREF	|NN OP* o
-AmdbaR	|HV*	|newHV
+AmdbR	|HV*	|newHV
 ApaR	|HV*	|newHVhv	|NULLOK HV* hv
 Apa	|IO*	|newIO
 Apa	|OP*	|newLISTOP	|I32 type|I32 flags|NULLOK OP* first|NULLOK OP* last
diff --git a/proto.h b/proto.h
index 42b4131..1aec27a 100644
--- a/proto.h
+++ b/proto.h
@@ -1509,7 +1509,6 @@ PERL_CALLCONV CV*	Perl_newXS(pTHX_ const char* name, XSUBADDR_t f, const char* f
 			__attribute__nonnull__(pTHX_3);
 
 /* PERL_CALLCONV AV*	Perl_newAV(pTHX)
-			__attribute__malloc__
 			__attribute__warn_unused_result__; */
 
 PERL_CALLCONV OP*	Perl_newAVREF(pTHX_ OP* o)
@@ -1545,7 +1544,6 @@ PERL_CALLCONV OP*	Perl_newHVREF(pTHX_ OP* o)
 			__attribute__nonnull__(pTHX_1);
 
 /* PERL_CALLCONV HV*	Perl_newHV(pTHX)
-			__attribute__malloc__
 			__attribute__warn_unused_result__; */
 
 PERL_CALLCONV HV*	Perl_newHVhv(pTHX_ HV* hv)