This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Take advantage of SvGROW's return value
authorKarl Williamson <khw@cpan.org>
Thu, 11 Aug 2016 22:42:20 +0000 (16:42 -0600)
committerKarl Williamson <khw@cpan.org>
Wed, 17 Aug 2016 21:23:59 +0000 (15:23 -0600)
commit1065615957bc3821a00a319d54f18f443fc2861e
tree1e7974fe0057f8e62de957de28483f7b0ac94c72
parentcc890588b0ce25c7e37126933582b6d944ad1584
Take advantage of SvGROW's return value

I had not realized that SvGROW returned the new string pointer.  Using
that makes a one-step process from a two-step process.

I examined the code for other possible occurrences, and found others
where it seemed that the two-step seemed clearer, so left those alone.
perl.c
pp.c
toke.c