This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
inline.h: Avoid some extra strlen()
authorKarl Williamson <khw@cpan.org>
Sat, 18 Nov 2017 04:59:59 +0000 (21:59 -0700)
committerKarl Williamson <khw@cpan.org>
Sun, 26 Nov 2017 17:17:29 +0000 (10:17 -0700)
commitf60f61fd47355f97bcac52e6e93e5cba818d1796
treecea0267165d08c8cb7db7599847ce0c6beb05f01
parentbb1b88dd7be03975ef001e007081e75d83f8cb6f
inline.h: Avoid some extra strlen()

The API of these functions says that if the length is 0, strlen() is
called to compute it.  In several cases, control is handed off to a
function using 0, throwing away the already-computed length.  Change
to use the computed length when calling the functions, avoiding the
issue.
embed.fnc
inline.h
proto.h