diff options
author | Matthew Horsfall (alh) <wolfsage@gmail.com> | 2013-12-18 08:59:02 -0500 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2013-12-18 06:25:47 -0800 |
commit | 0d7b27597cc56fd28bf02a6f3e4caeec29e98f62 (patch) | |
tree | 31a505b89b5d521214883336570d84fba6917461 /handy.h | |
parent | aa13e525452842be4732a0b9d771f3641019dc96 (diff) | |
download | perl-0d7b27597cc56fd28bf02a6f3e4caeec29e98f62.tar.gz |
Note usage compatability of Safefree / Newx and friends
Diffstat (limited to 'handy.h')
-rw-r--r-- | handy.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1565,6 +1565,8 @@ typedef U32 line_t; =for apidoc Am|void|Newx|void* ptr|int nitems|type The XSUB-writer's interface to the C C<malloc> function. +Memory obtained by this should B<ONLY> be freed with L<"Safefree">. + 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 superseded by a new build option, @@ -1575,20 +1577,30 @@ there for use in XS modules supporting older perls. The XSUB-writer's interface to the C C<malloc> function, with cast. See also C<Newx>. +Memory obtained by this should B<ONLY> be freed with L<"Safefree">. + =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>. See also C<Newx>. +Memory obtained by this should B<ONLY> be freed with L<"Safefree">. + =for apidoc Am|void|Renew|void* ptr|int nitems|type The XSUB-writer's interface to the C C<realloc> function. +Memory obtained by this should B<ONLY> be freed with L<"Safefree">. + =for apidoc Am|void|Renewc|void* ptr|int nitems|type|cast The XSUB-writer's interface to the C C<realloc> function, with cast. +Memory obtained by this should B<ONLY> be freed with L<"Safefree">. + =for apidoc Am|void|Safefree|void* ptr The XSUB-writer's interface to the C C<free> function. +This should B<ONLY> be used on memory obtained using L<"Newx"> and friends. + =for apidoc Am|void|Move|void* src|void* dest|int nitems|type The XSUB-writer's interface to the C C<memmove> function. The C<src> is the source, C<dest> is the destination, C<nitems> is the number of items, and |