This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Collapse grok_bin, _oct, _hex into one function
authorKarl Williamson <khw@cpan.org>
Tue, 7 Jan 2020 00:32:35 +0000 (17:32 -0700)
committerKarl Williamson <khw@cpan.org>
Tue, 14 Jan 2020 03:58:56 +0000 (20:58 -0700)
commitbcfb98ec0765d242dbd6338c36fb54cd40f6a9d9
treecce60921b8e5f81b4ad5c3accf423a2f6ad75ba9
parent2ae9030c44be214caa0d1eeafad9425a53344feb
Collapse grok_bin, _oct, _hex into one function

These functions are identical in logic in the main loop, the difference
being which digits they accept.  The rest of the code had slight
variations.  This commit unifies the functions.

I presume the reason they were kept separate was because of speed.
Future commits will make this unified function faster than blead, and
the reduced maintenance cost makes this worthwhile.
embed.fnc
embed.h
numeric.c
perl.h
pod/perldiag.pod
proto.h