diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-06-30 11:20:33 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-06-30 11:20:33 +0000 |
commit | e6830b1398c4e7ce4800aa72b564ebd81702e14c (patch) | |
tree | 51ec8bed88c687781e37f6bcf0d7a5c81bb5017b /perl.c | |
parent | cd1c2c6905a80e547b6f46f140e4e8bf42c8dc0d (diff) | |
download | perl-e6830b1398c4e7ce4800aa72b564ebd81702e14c.tar.gz |
Why use Perl_form and newSVpv when newSVpvf will do it in one?
p4raw-id: //depot/perl@25021
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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) { |