Now that two gnulib-using packages are using grep's DFA matcher, I am
going to move that code into gnulib, so there is one clear source of
truth.

GNU sed began using dfa.[ch] very recently.
While gawk has been copying grep's dfa.[ch] for a long time, it does
not use gnulib.

To that end, I've written both the add-to-gnulib patch and the
use-from-grep patches and tested via grep's "make distcheck" and via
this for gnulib:

  ./gnulib-tool --create-testdir --dir=/tmp/x --with-tests --test dfa

Note that this merely moves grep/src/dfa.[ch] to gnulib/lib/ and also
moves the DFA-specific tests from grep/tests/. It does not add any new
tests. I am in no great hurry to make the switch, and expect to wait
at least for a few more pending patches by Norihiro Tanaka, syncing
the result to gnulib before pulling the trigger.

This is all the result of a couple of hours last night, so it's almost
certainly not perfect.  Feedback welcome.
From 594011bf91cf1a7fdbf81291ea55ce9f2f6455f3 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyer...@fb.com>
Date: Wed, 17 Aug 2016 10:02:31 -0700
Subject: [PATCH] gnulib: update to latest

---
 gnulib | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnulib b/gnulib
index b7bc3c1..4e9d041 160000
--- a/gnulib
+++ b/gnulib
@@ -1 +1 @@
-Subproject commit b7bc3c1a4e78add4cbad39ae1a0c4fb0747b483f
+Subproject commit 4e9d041cf9e3c9260da3169bcda6133a4f800347
-- 
2.7.4

Reply via email to