Branch: refs/heads/smoke-me/khw-pr_curly
  Home:   https://github.com/Perl/perl5
  Commit: d9eb4de3557181e3f104ba29a27ec2e31c309fe3
      
https://github.com/Perl/perl5/commit/d9eb4de3557181e3f104ba29a27ec2e31c309fe3
  Author: Karl Williamson <[email protected]>
  Date:   2020-11-18 (Wed, 18 Nov 2020)

  Changed paths:
    M regcomp.c

  Log Message:
  -----------
  regcomp.c: Change 2 macro names to be mnemonic

I believe the new names are much more understandable as to what they do.
This commit also adds a second parameter to one macro, but which is unused
until the next commit


  Commit: 98ed452831fa5ada00f206ec5a8d1dcb1cb4f348
      
https://github.com/Perl/perl5/commit/98ed452831fa5ada00f206ec5a8d1dcb1cb4f348
  Author: Karl Williamson <[email protected]>
  Date:   2020-11-18 (Wed, 18 Nov 2020)

  Changed paths:
    M embed.fnc
    M embed.h
    M proto.h
    M regcomp.c
    M toke.c

  Log Message:
  -----------
  Revamp regcurly(), regpiece() use of it

This commit copies portions of new_regcurly(), which has been around
since 5.28, into plain regcurly(), as a baby step in preparation for
converting entirely to the new one.  These functions are used for
parsing {m,n} quantifiers.  Future commits will add capabilities not
available using the old version.

The commit adds an optional parameter, to return to the caller
information it gleans during parsing.

regpiece() is changed by this commit to use this information, instead of
itself reparsing the input.  Part of the reason for this commit is that
changes are planned soon to what is legal syntax.  With this commit in
place, those changes only have to be done once.

This commit also extracts into a function the calculation of the
quantifier bounds.  This allows the logic for that to be done in one
place instead of two.


Compare: https://github.com/Perl/perl5/compare/5a8147865c8e...98ed452831fa

Reply via email to