This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd1c2c6
)
Why use Perl_form and newSVpv when newSVpvf will do it in one?
author
Nicholas Clark
<nick@ccl4.org>
Thu, 30 Jun 2005 11:20:33 +0000
(11:20 +0000)
committer
Nicholas Clark
<nick@ccl4.org>
Thu, 30 Jun 2005 11:20:33 +0000
(11:20 +0000)
p4raw-id: //depot/perl@25021
perl.c
patch
|
blob
|
blame
|
history
diff --git
a/perl.c
b/perl.c
index
cb82691
..
e573425
100644
(file)
--- a/
perl.c
+++ b/
perl.c
@@
-332,12
+332,8
@@
perl_construct(pTHXx)
PL_stashcache = newHV();
- PL_patchlevel = newSVpv(
- Perl_form(aTHX_ "%d.%d.%d",
- (int)PERL_REVISION,
- (int)PERL_VERSION,
- (int)PERL_SUBVERSION ), 0
- );
+ PL_patchlevel = Perl_newSVpvf(aTHX_ "%d.%d.%d", (int)PERL_REVISION,
+ (int)PERL_VERSION, (int)PERL_SUBVERSION);
#ifdef HAS_MMAP
if (!PL_mmap_page_size) {