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

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

Thread Next
Nicholas Clark
December 22, 2004 14:33
[perl #33156] perlapi.pod and the Perl_ prefix
Message ID:
# New Ticket Created by  Nicholas Clark 
# Please include the string:  [perl #33156]
# in the subject line of all future correspondence about this issue. 
# <URL: >

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

	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 be changed to generate this entry?

	SV*	Perl_newSVpvf(const char* pat, ...)

for the entry without the Perl_ prefix?

Nicholas Clark

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About