develooper Front page | perl.perl5.porters | Postings from January 2004

a new newSV macro around sv_usepvn?

Stas Bekman
January 28, 2004 14:32
a new newSV macro around sv_usepvn?
Message ID:
something like that? Notice s/const char *s/char *s/ as sv_usepvn accepts 
'char */.

=for apidoc newSVpvn_nocopy

Creates a new SV without copying a string into it.  The reference
count for the SV is set to 1. Make sure to read the sv_usepvn entry,
which is used by this function.


SV *
Perl_newSVpvn_nocopy(pTHX_ char *s, STRLEN len)
     register SV *sv;

     return sv;

Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker     mod_perl Guide ---> Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About