bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#24262: [PATCH 2/2] dfa: support not newline_anchor of regex


From: Norihiro Tanaka
Subject: bug#24262: [PATCH 2/2] dfa: support not newline_anchor of regex
Date: Sat, 20 Aug 2016 00:46:44 +0900

On Thu, 18 Aug 2016 23:57:27 +0900
Norihiro Tanaka <address@hidden> wrote:

> The patch introduces not newline_anchor option of regex to dfa.  grep is
> always newline_anchor, so newer codes is not used.  I expect it is used
> by sed and gawk.
> 
> However, the patch adds an argument to dfasyntax().   To synchronize
> between grep and dfa easily, I expect it is applied before dfa is moved
> to gnulib.

Applying the patch, if we generate multiple dfa instance, three global
vars. (sbit, letters, newline) may be overrided.  So I moved them to
member of struct dfa in modified patch.

Attachment: 0002-dfa-support-not-newline_anchor-of-regex.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]