Skip to content

Commit 3bdcbd2

Browse files
committed
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
1 parent e504426 commit 3bdcbd2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

embed.fnc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,15 +565,15 @@ ApM |CV * |newXS_flags |NULLOK const char *name|NN XSUBADDR_t subaddr\
565565
|NN const char *const filename \
566566
|NULLOK const char *const proto|U32 flags
567567
Apd |CV* |newXS |NULLOK const char* name|NN XSUBADDR_t f|NN const char* filename
568-
Amdba |AV* |newAV
568+
AmdbR |AV* |newAV
569569
Apa |OP* |newAVREF |NN OP* o
570570
Apa |OP* |newBINOP |I32 type|I32 flags|NULLOK OP* first|NULLOK OP* last
571571
Apa |OP* |newCVREF |I32 flags|NULLOK OP* o
572572
Apa |OP* |newGVOP |I32 type|I32 flags|NN GV* gv
573573
Apa |GV* |newGVgen |NN const char* pack
574574
Apa |OP* |newGVREF |I32 type|NULLOK OP* o
575575
ApaR |OP* |newHVREF |NN OP* o
576-
AmdbaR |HV* |newHV
576+
AmdbR |HV* |newHV
577577
ApaR |HV* |newHVhv |NULLOK HV* hv
578578
Apa |IO* |newIO
579579
Apa |OP* |newLISTOP |I32 type|I32 flags|NULLOK OP* first|NULLOK OP* last

proto.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,7 +1509,6 @@ PERL_CALLCONV CV* Perl_newXS(pTHX_ const char* name, XSUBADDR_t f, const char* f
15091509
__attribute__nonnull__(pTHX_3);
15101510

15111511
/* PERL_CALLCONV AV* Perl_newAV(pTHX)
1512-
__attribute__malloc__
15131512
__attribute__warn_unused_result__; */
15141513

15151514
PERL_CALLCONV OP* Perl_newAVREF(pTHX_ OP* o)
@@ -1545,7 +1544,6 @@ PERL_CALLCONV OP* Perl_newHVREF(pTHX_ OP* o)
15451544
__attribute__nonnull__(pTHX_1);
15461545

15471546
/* PERL_CALLCONV HV* Perl_newHV(pTHX)
1548-
__attribute__malloc__
15491547
__attribute__warn_unused_result__; */
15501548

15511549
PERL_CALLCONV HV* Perl_newHVhv(pTHX_ HV* hv)

0 commit comments

Comments
 (0)