diff options
author | Richard Leach <richardleach@users.noreply.github.com> | 2022-11-28 13:28:46 +0000 |
---|---|---|
committer | Richard Leach <richardleach@users.noreply.github.com> | 2022-11-30 00:45:02 +0000 |
commit | 54ca894738d71b8a053b5405699c66b8c0bd346d (patch) | |
tree | cfd73c82af0aeb53c5f048b73e64c05fd313b59d /toke.c | |
parent | a91f26aeba97b32d0b4e53a62efa08351a1e8b6f (diff) | |
download | perl-54ca894738d71b8a053b5405699c66b8c0bd346d.tar.gz |
Replace SvGROW with sv_grow_fresh in perl.c, pp_sys.c, toke.c
Changed:
* perl.c - Perl_moreswitches
* pp_sys.c - pp_sysread
* toke.c - Perl_scan_str
In each of the above functions, one instance of SvGROW on a new SVt_PV
can be swapped for the more efficient sv_grow_fresh. In two of the
instances, the calls used to create the the SVt_PV have also been
streamlined.
There should not be any functional change as a result of this commit.
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -11488,7 +11488,7 @@ Perl_scan_str(pTHX_ char *start, int keep_bracketed_quoted, int keep_delims, int /* create a new SV to hold the contents. 79 is the SV's initial length. What a random number. */ sv = newSV_type(SVt_PVIV); - SvGROW(sv, 79); + sv_grow_fresh(sv, 79); SvIV_set(sv, close_delim_code); (void)SvPOK_only(sv); /* validate pointer */ |