This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regen/regcharclass.pl: Add const cast
authorKarl Williamson <khw@cpan.org>
Sun, 11 Dec 2016 02:09:19 +0000 (19:09 -0700)
committerKarl Williamson <khw@cpan.org>
Sun, 11 Dec 2016 21:33:47 +0000 (14:33 -0700)
commit29f3ce8f4a4666363512c4948b0be767a54aec9b
tree8b391715b72edf0af064ce4512de2909be5c8353
parent76024109c948397787a27693df5382b9f8005058
regen/regcharclass.pl: Add const cast

This is a follow-up to commit 9f2eed981068e7abbcc52267863529bc59e9c8c0,
which manually added const qualifiers to some generated code in order to
avoid some compiler warnings.  This changes the code generator to use
the same 'const' qualifier generally.  The code changed by the other
commit had been hand-edited after being generated to add branch
prediction, which would be too hard to program in at this time, so the
const additions also had to be hand-edited in.
regcharclass.h
regen/regcharclass.pl