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

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

Thread Next
From:
Nicholas Clark
Date:
December 22, 2004 14:33
Subject:
[perl #33156] perlapi.pod and the Perl_ prefix
Message ID:
rt-3.0.11-33156-103441.8.45278988872877@perl.org
# New Ticket Created by  Nicholas Clark 
# Please include the string:  [perl #33156]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=33156 >


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


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