gnulib: update to latest and adapt to modified dfa API
* sed/regexp.c (compile_regex_1): Do away with use of DFA_CASE_FOLD. This gnulib update pulls in a dfa module in which that symbol no longer exists. Instead, it uses RE_ICASE in syntax bits. * m4/.gitignore: Add files created by running bootstrap. * lib/.gitignore: Likewise.
This commit is contained in:
1 parent
937b1ba642
commit
9ce9ee19f8
4 files changed
+5
-3
No files matched your search
+1
-1
Submodule gnulib updated: a673fa2e90...bd70cf691d.
@@ -234,3 +234,4 @@ xstrndup.h
|
||||
/hard-locale.c
|
||||
/hard-locale.h
|
||||
/memrchr.c
|
||||
/minmax.h
|
||||
@@ -224,3 +224,5 @@ xstrndup.m4
|
||||
/isblank.m4
|
||||
/limits-h.m4
|
||||
/memrchr.m4
|
||||
/builtin-expect.m4
|
||||
/minmax.m4
|
||||
+1
-2
@@ -144,8 +144,7 @@ compile_regex_1 (struct regex *new_regex, int needed_sub)
|
||||
bad_prog(buf);
|
||||
}
|
||||
|
||||
int dfaopts = (new_regex->flags & REG_ICASE) ? DFA_CASE_FOLD : 0;
|
||||
dfaopts |= (buffer_delimiter == '\n') ? 0 : DFA_EOL_NUL;
|
||||
int dfaopts = buffer_delimiter == '\n' ? 0 : DFA_EOL_NUL;
|
||||
new_regex->dfa = dfaalloc ();
|
||||
dfasyntax (new_regex->dfa, &localeinfo, syntax, dfaopts);
|
||||
dfacomp (new_regex->re, new_regex->sz, new_regex->dfa, 1);
|
||||
|
||||
Reference in new issue
Block a user