diff options
author | Jim Cromie <jcromie@cpan.org> | 2005-07-11 13:18:02 -0600 |
---|---|---|
committer | Steve Hay <SteveHay@planit.com> | 2005-07-12 07:48:51 +0000 |
commit | c5008215525f2f0a2a10a4c6a997f4cccfb6d09b (patch) | |
tree | 88d6527b8e9894b145580cf3c11933e031241ae9 /handy.h | |
parent | f458b6e8d4ef066d8e0768073b3c77d2c9bf98e0 (diff) | |
download | perl-c5008215525f2f0a2a10a4c6a997f4cccfb6d09b.tar.gz |
[patch: handy.c] update Newx API pod to mention PERL_MEM_LOG build opt
Message-ID: <42D31A4A.1020305@divsol.com>
(with some minor tweaks)
p4raw-id: //depot/perl@25115
Diffstat (limited to 'handy.h')
-rw-r--r-- | handy.h | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -550,18 +550,19 @@ C<id> is an integer id between 0 and 1299 (used to identify leaks). =for apidoc Am|void|Newx|void* ptr|int nitems|type The XSUB-writer's interface to the C C<malloc> function. +In 5.9.3, Newx() and friends replace the older New() API, and drops +the first parameter, I<x>, a debug aid which allowed callers to identify +themselves. This aid has been superceded by a new build option, +PERL_MEM_LOG (see L<perlhack/PERL_MEM_LOG>). The older API is still +there for use in XS modules supporting older perls. + =for apidoc Am|void|Newxc|void* ptr|int nitems|type|cast The XSUB-writer's interface to the C C<malloc> function, with -cast. +cast. See also C<Newx>. =for apidoc Am|void|Newxz|void* ptr|int nitems|type The XSUB-writer's interface to the C C<malloc> function. The allocated -memory is zeroed with C<memzero>. - -In 5.9.3, we removed the 1st parameter, a debug aid, from the api. It -was used to uniquely identify each usage of these allocation -functions, but was deemed unnecessary with the availability of better -memory tracking tools, valgrind for example. +memory is zeroed with C<memzero>. See also C<Newx>. =for apidoc Am|void|Renew|void* ptr|int nitems|type The XSUB-writer's interface to the C C<realloc> function. |