This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
parts/inc/inctools: Rewrite parse_version
authorKarl Williamson <khw@cpan.org>
Sat, 20 Jul 2019 20:52:09 +0000 (14:52 -0600)
committerNicolas R <atoomic@cpan.org>
Fri, 27 Sep 2019 22:39:30 +0000 (16:39 -0600)
commita65af1bac53bae1dddbc704ca4067dfe728d3b53
tree8e79f7ebb807d94a63b264893e4d7fda170b6524
parent4208c867671ed9dc7ede5b3f2e1972672628d260
parts/inc/inctools: Rewrite parse_version

This now accepts more input formats than before, and dies when wrong
with the same messages that ppport.h uses, so that the latter can now
convert to use this function.

And, importantly, it fixes a bug where the lowest component of version
numbers in early perls was multiplied by 10.

(cherry picked from commit 38f1e0a218ae97b719e1cd048bde157d08dd3f37)
Signed-off-by: Nicolas R <atoomic@cpan.org>
dist/Devel-PPPort/parts/inc/inctools
dist/Devel-PPPort/parts/inc/ppphbin