Branch: refs/heads/yves/regex_prep_patches
  Home:   https://github.com/Perl/perl5
  Commit: 3e8976028a3b9048865a59be0baf928fa8a3bb2c
      
https://github.com/Perl/perl5/commit/3e8976028a3b9048865a59be0baf928fa8a3bb2c
  Author: Yves Orton <[email protected]>
  Date:   2023-01-15 (Sun, 15 Jan 2023)

  Changed paths:
    M regexec.c

  Log Message:
  -----------
  regexec.c - rework CLOSE_CAPTURE() to take rex as an arg to enable reuse.

This also splits up CLOSE_CAPTURE() into two parts, with the important parts
implemented by CLOSE_ANY_CAPTURE(), and the debugging parts in
CLOSE_CAPTURE(). This allows it to be used in contexts where the regexp
structure isn't set up under the name 'rex', and where the debugging output it
includes might not be relevant or possible to produce.

This encapsulates all the places that "close" a capture buffer, and ensures
that they are closed properly. One important case in particular cannot use
CLOSE_CAPTURE() directly, as it does not have a 'rex' variable in scope (it is
called prog in this function), nor the debugging context used in normal
execution of CLOSE_CAPTURE(). Using CLOSE_ANY_CAPTURE() instead means all the
main points that update capture buffer state use the same macro API.


  Commit: fa102f05d69780986f17756e428ad801ec059da8
      
https://github.com/Perl/perl5/commit/fa102f05d69780986f17756e428ad801ec059da8
  Author: Yves Orton <[email protected]>
  Date:   2023-01-15 (Sun, 15 Jan 2023)

  Changed paths:
    M regcomp.c
    M regcomp.h

  Log Message:
  -----------
  regcomp.h - get rid of EXTRA_STEP defines

They are unused these days.


  Commit: 0b0bf3f975c4c849c0f4fe9f90b23175461907d8
      
https://github.com/Perl/perl5/commit/0b0bf3f975c4c849c0f4fe9f90b23175461907d8
  Author: Yves Orton <[email protected]>
  Date:   2023-01-15 (Sun, 15 Jan 2023)

  Changed paths:
    M regcomp.c

  Log Message:
  -----------
  regcomp.c - add whitespace to binary operation

The tight & is hard to read.


  Commit: d9723652a85466031f91853b2672232ec5e27da2
      
https://github.com/Perl/perl5/commit/d9723652a85466031f91853b2672232ec5e27da2
  Author: Yves Orton <[email protected]>
  Date:   2023-01-15 (Sun, 15 Jan 2023)

  Changed paths:
    M regcomp_trie.c

  Log Message:
  -----------
  regcomp_trie.c - use the indirect types so we are safe to changes

We shouldnt assume that a TRIEC is a regcomp_charclass. We have a per
opcode type exactly for this type of use, so lets use it.


Compare: https://github.com/Perl/perl5/compare/24437904f23d...d9723652a854

Reply via email to