bug#21266: [PATCH] dfa: simplify for non-POSIX locales

2015-08-15 Thread Norihiro Tanaka
Now dfa is not support range, collating element, equivalent class in non-POSIX locales. We can do dfa more simply by removing codes for them. First, I made update dfaexec_main. Now transit_state is called only when next character matches with ANYCHAR, and match_anychar always returns the length

bug#21273: [PATCH] grep: avoid use of uninitialized variable

2015-08-15 Thread Norihiro Tanaka
Uninitialized value of variable BACKREF is referred in EGexecute. It does not cause wrong result, but regex may be used even when it is not needed. It may lead grep to slowdown. By the way, gawk initializes the variable already, so it does not have to be fixed. From 1103b67eb8cdf02098b09f79d73f2

bug#21266: [PATCH] dfa: simplify for non-POSIX locales

2015-08-15 Thread Norihiro Tanaka
On Sun, 16 Aug 2015 00:51:16 +0900 Norihiro Tanaka wrote: > Now dfa is not support range, collating element, equivalent class in > non-POSIX locales. We can do dfa more simply by removing codes for them. > > > First, I made update dfaexec_main. Now transit_state is called only > when next ch