diff options
author | Gisle Aas <gisle@activestate.com> | 2006-01-04 14:04:16 +0000 |
---|---|---|
committer | Gisle Aas <gisle@activestate.com> | 2006-01-04 14:04:16 +0000 |
commit | 18916d0db6e8b0ac0abf09300cb33647d974ddc0 (patch) | |
tree | 310d7227ad38d4f86342bd66d2891c92c7716c6e /perl.c | |
parent | 6a245ed1e7ef6f728779f8328fb52e42b1aa0b8c (diff) | |
download | perl-18916d0db6e8b0ac0abf09300cb33647d974ddc0.tar.gz |
Introduce newSVpvs_share() macro.
Gets rid of some hardcoded string lengths.
p4raw-id: //depot/perl@26646
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3453,7 +3453,7 @@ S_init_main_stash(pTHX) /* We know that the string "main" will be in the global shared string table, so it's a small saving to use it rather than allocate another 8 bytes. */ - PL_curstname = newSVpvn_share("main", 4, 0); + PL_curstname = newSVpvs_share("main"); gv = gv_fetchpv("main::",TRUE, SVt_PVHV); /* If we hadn't caused another reference to "main" to be in the shared string table above, then it would be worth reordering these two, |