develooper Front page | perl.perl5.porters | Postings from May 2012

[perl #33156] perlapi.pod and the Perl_ prefix

Thread Next
From:
James E Keenan via RT
Date:
May 26, 2012 18:43
Subject:
[perl #33156] perlapi.pod and the Perl_ prefix
Message ID:
rt-3.6.HEAD-7788-1338082980-638.33156-15-0@perl.org
On Wed Dec 22 11:45:31 2004, nicholas wrote:
> So I'm hacking on the core:
> 
> perl.c: In function `S_incpush':
> perl.c:4435: warning: implicit declaration of function `newSVpvf'
> perl.c:4435: warning: assignment makes pointer from integer without a
> cast
> 
> But in perlapi.pod:
> 
> =item newSVpvf
> 
> Creates a new SV and initializes it with the string formatted like
> C<sprintf>.
> 
> 	SV*	newSVpvf(const char* pat, ...)
> 
> embed.fnc says
> 
> Afpd	|SV*	|newSVpvf	|const char* pat|...
> 
> where 'p' is the important flag:
> 
> :	p		function has a Perl_ prefix
> 
> which means that there's no #define to create newSVpvf.
> 
> So is perlapi.pod buggy? Should autodoc.pl be changed to generate this
> entry?
> 
> 	SV*	Perl_newSVpvf(const char* pat, ...)
> 
> for the entry without the Perl_ prefix?
> 
> Nicholas Clark

Is this still an issue?


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=33156

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About