X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=handy.h;h=445611118b68c7a7ee6fa76c870d97de37e97c47;hb=561b68a973f8a5d10c61d6a02c02f3002a0a63ba;hp=3f13a9385395a6367c5263cab55f97c5c8acfac2;hpb=2f397494d2e5c4344bda444a704ca9e81d71a61b;p=p5sagit%2Fp5-mst-13.2.git diff --git a/handy.h b/handy.h index 3f13a93..4456111 100644 --- a/handy.h +++ b/handy.h @@ -554,15 +554,6 @@ typedef U32 line_t; /* -=head1 SV Manipulation Functions - -=for apidoc Am|SV*|NEWSV|int id|STRLEN len -Creates a new SV. A non-zero C parameter indicates the number of -bytes of preallocated string space the SV should have. An extra byte for a -tailing NUL is also reserved. (SvPOK is not set for the SV even if string -space is allocated.) The reference count for the new SV is set to 1. -C is an integer id between 0 and 1299 (used to identify leaks). - =head1 Memory Management =for apidoc Am|void|Newx|void* ptr|int nitems|type @@ -631,7 +622,10 @@ hopefully catches attempts to access uninitialized memory. =cut */ +/* Maintained for backwards-compatibility only. Use newSV() instead. */ +#ifndef PERL_CORE #define NEWSV(x,len) newSV(len) +#endif #ifdef PERL_MALLOC_WRAP #define MEM_WRAP_CHECK(n,t) MEM_WRAP_CHECK_1(n,t,PL_memory_wrap)