Why use Perl_form and newSVpv when newSVpvf will do it in one?
Nicholas Clark [Thu, 30 Jun 2005 11:20:33 +0000 (11:20 +0000)]
p4raw-id: //depot/perl@25021

perl.c

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) {