Syntactic Confectionery Delight | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Actually what gellyfish said is spot on. All Perl_ routines on certain OS'es take an explicit aTHX_ pointer as the first argument. The macro equivelents (without the Perl_ prefix) transparently handle this. So Perl_av_clear() is what av_clear() resolves to, except that the latter handles the aTHX_ pointer as needed on a arch/os dependent basis. Also, judging by the code av_clear() has not substantially changed since Perl has been in subversion. The version in bleadperl, is substantially unchanged, and the the Perl_ prefix was added in change #3522. And for the record i dont consider this to be OT at all. Im sure somebody can learn something useful from it.
--- $world=~s/war/peace/g In reply to Re^8: perlembed: mortalize an AV, get "Attempt to free unreferenced scalar" - don't mortalize, leaks memory
by demerphq
|
|