Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 1c5e7b4c8cffc034079b98f0ad05cbcdcb8903ec
      
https://github.com/Perl/perl5/commit/1c5e7b4c8cffc034079b98f0ad05cbcdcb8903ec
  Author: Karl Williamson <[email protected]>
  Date:   2022-06-12 (Sun, 12 Jun 2022)

  Changed paths:
    M regexec.c

  Log Message:
  -----------
  regexec.c: Use new macros; refactor switch()

These case statements in a switch all had the same prelude for checking
if the locale is UTF-8 and handling that case separately.  A few commits
ago created macros closer to the base level.  This commit factors out
the common UTF-8 handling, and then puts the lower lever things in the
switch().  Perhaps the C optimizer would have been smart enough to do
this too, but we might as well do it ourselves, now that it is
convenient.


  Commit: 75111994648b802c88381a3cd338185fd1bbb6fa
      
https://github.com/Perl/perl5/commit/75111994648b802c88381a3cd338185fd1bbb6fa
  Author: Karl Williamson <[email protected]>
  Date:   2022-06-12 (Sun, 12 Jun 2022)

  Changed paths:
    M regexec.c

  Log Message:
  -----------
  regexec.c: Refactor switch default()

It seems clearer to me to have the panic at the end of the routine
instead of as the default: of a switch().


Compare: https://github.com/Perl/perl5/compare/dcbeec20aa8d...75111994648b

Reply via email to