Skip to content

Update compat/regex

Ævar Arnfjörð Bjarmason git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 2 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
2/3compat/regex: hacks to get the gawk regex engine to compile within gitMakefile compat/regex/regex.h+9 -21 reply
2/3compat/regex: get the gawk regex engine to compile within gitMakefile compat/regex/regex.h+7 -00 replies
3/3t/t7008-grep-binary.sh: un-TODO a test that needs REG_STARTENDt/t7008-grep-binary.sh+1 -10 replies
3/3t/t7008-grep-binary.sh: un-TODO a test that needs REG_STARTENDt/t7008-grep-binary.sh+1 -10 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJonathan NiederJohannes SixtÆvar Arnfjörð Bjarmason
SeriesA-b A-b A-b A-b T-b
2/3
2/3
3/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH/RFC v2 0/3] Update compat/regex

This has the following changes:

* Supply the custom regex.o flags only to regex.o as suggested by Jonathan Nieder:

+ifdef NO_REGEX
+compat/regex/regex.o: EXTRA_CPPFLAGS = -DGAWK -DNO_MBSUPPORT +endif

* The code is LGPL-2.1, not GPL-3

* Don't include mbsupport.h, we don't need it, and it can be un-included with a flag.

* Simplify our modifications to regex.h, just include two headers at the very top, don't modify any gawk code.

* Update commit messages

Ævar Arnfjörð Bjarmason (3):
compat/regex: use the regex engine from gawk for compat compat/regex: get the gawk regex engine to compile within git t/t7008-grep-binary.sh: un-TODO a test that needs REG_STARTEND

 Makefile                      |    4 +
 compat/regex/regcomp.c        | 3892 ++++++++++++++++++++++++++++++++
 compat/regex/regex.c          | 5003 +----------------------------------------
 compat/regex/regex.h          |  462 +++--
 compat/regex/regex_internal.c | 1744 ++++++++++++++
 compat/regex/regex_internal.h |  810 +++++++
 compat/regex/regexec.c        | 4377 +++++++++++++++++++++++++++++++++++
 t/t7008-grep-binary.sh        |    2 +-
 8 files changed, 11188 insertions(+), 5106 deletions(-)
 create mode 100644 compat/regex/regcomp.c
 create mode 100644 compat/regex/regex_internal.c
 create mode 100644 compat/regex/regex_internal.h
 create mode 100644 compat/regex/regexec.c
Signature · 1 line
1.7.2.1.389.gc3d0b