git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH/RFC 2/6] Makefile & compat/pcre2: add dependency on pcre2_convert.c

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
May 11, 2017, 17:51 UTC
Message-ID
<20170511175115.648-3-avarab@gmail.com>
In-Reply-To
<20170511175115.648-1-avarab@gmail.com>

Add a dependency on the experimental pcre2_convert.c. This only exists in svn trunk of pcre2 currently, and allows for converting POSIX basic/extended & glob patterns to patterns accepted by PCRE[1][2].

1. https://bugs.exim.org/show_bug.cgi?id=2106
2. https://bugs.exim.org/show_bug.cgi?id=2107
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
---
 Makefile                  | 1 +
 compat/pcre2/get-pcre2.sh | 1 +
 2 files changed, 2 insertions(+)
diff --git a/Makefile b/Makefile
index b18867196e..e437fa011c 100644
--- a/Makefile
+++ b/Makefile
@@ -1541,6 +1541,7 @@ endif
 		compat/pcre2/src/pcre2_compile.o \
 		compat/pcre2/src/pcre2_config.o \
 		compat/pcre2/src/pcre2_context.o \
+		compat/pcre2/src/pcre2_convert.o \
 		compat/pcre2/src/pcre2_error.o \
 		compat/pcre2/src/pcre2_find_bracket.o \
 		compat/pcre2/src/pcre2_jit_compile.o \
diff --git a/compat/pcre2/get-pcre2.sh b/compat/pcre2/get-pcre2.sh
index f1796cb518..7679fba8e4 100755
--- a/compat/pcre2/get-pcre2.sh
+++ b/compat/pcre2/get-pcre2.sh
@@ -26,6 +26,7 @@ for srcfile in \
 	pcre2_compile.c \
 	pcre2_config.c \
 	pcre2_context.c \
+	pcre2_convert.c \
 	pcre2_error.c \
 	pcre2_find_bracket.c \
 	pcre2_jit_compile.c \
-- 
2.11.0
Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 3 of 6 in “Speed up git-grep by using PCRE v2 as a backend”
  1. 0/6 Speed up git-grep by using PCRE v2 as a backendÆvar Arnfjörð Bjarmason, May 11, 2017
  2. 1/6 Makefile & compat/pcre2: add ability to build an embedded PCREÆvar Arnfjörð Bjarmason, May 11, 2017
  3. 2/6 Makefile & compat/pcre2: add dependency on pcre2_convert.cÆvar Arnfjörð Bjarmason, May 11, 2017
  4. 4/6 test-lib: add LIBPCRE1 & LIBPCRE2 prerequisitesÆvar Arnfjörð Bjarmason, May 11, 2017
  5. 6/6 grep: use PCRE v2 under the hood for -G & -E for amazing speedupÆvar Arnfjörð Bjarmason, May 11, 2017
  6. 5/6 grep: support regex patterns containing \0 via PCRE v2Ævar Arnfjörð Bjarmason, May 11, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.