Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: bb24c5faeec6a976ba9304a4b9a79a10de935db3
https://github.com/Perl/perl5/commit/bb24c5faeec6a976ba9304a4b9a79a10de935db3
Author: Karl Williamson <[email protected]>
Date: 2021-08-23 (Mon, 23 Aug 2021)
Changed paths:
M regen/regcomp.pl
M regnodes.h
Log Message:
-----------
regnodes.h: Add new set of defines
There currently is a set of defines for switching on the op code of the
regnode, and another set for switching on that plus the utf8ness of both
the target and pattern. This latter set is useful in one routine in
regexec.c where all three are important. It allows fewer branches to
have to be done by encoding where to go into the case: value.
There are other similar switches in regexec. The one in regrepeat()
doesn't care very much about the utf8ness of the pattern.
This commit adds a third set of defines for use by that switch, which
will be used by the next commit.
Commit: 3a9d3517e1368936caea4d3133d580aa792ff913
https://github.com/Perl/perl5/commit/3a9d3517e1368936caea4d3133d580aa792ff913
Author: Karl Williamson <[email protected]>
Date: 2021-08-23 (Mon, 23 Aug 2021)
Changed paths:
M regexec.c
Log Message:
-----------
regexec.c: regrepeat() switch() on target utf8ness
Many of the cases in the main switch() statement in regrepeat() begin
with
if (utf8_target)
or similar. These branches can be saved, and the code easier to
understand by including the utf8ness in the case statements, as this
commit does; taking advantage of the changes in the previous commit.
Commit: 1193dfbdbb72740773cd5c0902a64972352c8809
https://github.com/Perl/perl5/commit/1193dfbdbb72740773cd5c0902a64972352c8809
Author: Karl Williamson <[email protected]>
Date: 2021-08-23 (Mon, 23 Aug 2021)
Changed paths:
M regexec.c
Log Message:
-----------
regexec.c: White-space/comment only
Compare: https://github.com/Perl/perl5/compare/f6d7eeb5e8b2...1193dfbdbb72