From: Stas Bekman Date: Thu, 23 Dec 2004 16:28:06 +0000 (-0500) Subject: Re: [patch perlapi doc] sv_magic X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4509d3fb05d64606512f188665275ee93b1085ab;p=p5sagit%2Fp5-mst-13.2.git Re: [patch perlapi doc] sv_magic Message-ID: <41CB3866.1080307@stason.org> p4raw-id: //depot/perl@23678 --- diff --git a/pod/perlapi.pod b/pod/perlapi.pod index 1bdc2f2..c3f9d98 100644 --- a/pod/perlapi.pod +++ b/pod/perlapi.pod @@ -4303,6 +4303,9 @@ then adds a new magic item of type C to the head of the magic list. See C (which C now calls) for a description of the handling of the C and C arguments. +You need to use C to add magic to SvREADONLY SVs and also +to add more than one instance of the same 'how'. + void sv_magic(SV* sv, SV* obj, int how, const char* name, I32 namlen) =for hackers diff --git a/sv.c b/sv.c index 7687921..cfdfea3 100644 --- a/sv.c +++ b/sv.c @@ -5406,6 +5406,9 @@ then adds a new magic item of type C to the head of the magic list. See C (which C now calls) for a description of the handling of the C and C arguments. +You need to use C to add magic to SvREADONLY SVs and also +to add more than one instance of the same 'how'. + =cut */