# HG changeset patch # User Arnold D. Robbins # Date 1481659808 -7200 # Node ID 5debeeaf05987bd7c6a748517f4de60a328b6cfc # Parent 1f7f312e4bb309a77e7ed37ece3272c62db6e0ac dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE * dfa.h (DFA_CASE_FOLD): Remove. * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE. diff -r 1f7f312e4bb3 -r 5debeeaf0598 ChangeLog --- a/ChangeLog Tue Dec 13 12:43:09 2016 -0500 +++ b/ChangeLog Tue Dec 13 22:10:08 2016 +0200 @@ -1,3 +1,9 @@ +2016-12-13 Arnold D. Robbins + + dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE + * dfa.h (DFA_CASE_FOLD): Remove. + * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE. + 2016-12-13 John W. Eaton link: fix test to declare use of rename() diff -r 1f7f312e4bb3 -r 5debeeaf0598 NEWS --- a/NEWS Tue Dec 13 12:43:09 2016 -0500 +++ b/NEWS Tue Dec 13 22:10:08 2016 +0200 @@ -45,6 +45,8 @@ Date Modules Changes +2016-12-13 dfa Remove DFA_CASE_FOLD flag. Now based on RE_ICASE. + 2016-09-05 progname This module is deprecated. Please switch to the 'getprogname' module and its getprogname() function to obtain the name of the current program. diff -r 1f7f312e4bb3 -r 5debeeaf0598 lib/dfa.c --- a/lib/dfa.c Tue Dec 13 12:43:09 2016 -0500 +++ b/lib/dfa.c Tue Dec 13 22:10:08 2016 +0200 @@ -3992,7 +3992,7 @@ dfa->canychar = -1; dfa->lex.cur_mb_len = 1; dfa->syntax.syntax_bits_set = true; - dfa->syntax.case_fold = (dfaopts & DFA_CASE_FOLD) != 0; + dfa->syntax.case_fold = (bits & RE_ICASE) != 0 dfa->syntax.anchor = (dfaopts & DFA_ANCHOR) != 0; dfa->syntax.eolbyte = dfaopts & DFA_EOL_NUL ? '\0' : '\n'; dfa->syntax.syntax_bits = bits; diff -r 1f7f312e4bb3 -r 5debeeaf0598 lib/dfa.h --- a/lib/dfa.h Tue Dec 13 12:43:09 2016 -0500 +++ b/lib/dfa.h Tue Dec 13 22:10:08 2016 +0200 @@ -58,11 +58,8 @@ possibly true for other apps. */ DFA_ANCHOR = 1 << 0, - /* Ignore case while matching. */ - DFA_CASE_FOLD = 1 << 1, - /* '\0' in data is end-of-line, instead of the traditional '\n'. */ - DFA_EOL_NUL = 1 << 2 + DFA_EOL_NUL = 1 << 1 }; /* Initialize or reinitialize a DFA. This must be called before