bug#19173: [PATCH] dfa: speed-up for long pattern

2015-07-05 Thread Norihiro Tanaka
On Sat, 4 Jul 2015 20:40:05 -0700 Jim Meyering wrote: > I have rebased it and made some small improvements: > I combined an if+do loop into a single for-loop Thanks for review and improvements. Although, I do not remember why I wrote that code, I see that your change is right. And also change

bug#19173: [PATCH] dfa: speed-up for long pattern

2015-07-05 Thread Jim Meyering
On Sat, Jul 4, 2015 at 11:18 PM, wrote: > Jim Meyering wrote: > >> and moved >> some declarations "down". > > Can we keep delcarations C89 style please? Gawk still supports > some environments that don't allow declarations in the middle > of executable code. For coreutils, in 2006 I began main

bug#20988: FYI: [PATCH] maint: dfa: used unsigned types where appropriate

2015-07-05 Thread Jim Meyering
I've pushed the attached: From 5dffb9cbf9223c5cd923f5c0da9583db95b9e8d0 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 24 Sep 2014 08:44:28 -0700 Subject: [PATCH] maint: dfa: used unsigned types where appropriate * src/dfa.c (case_folded_counterparts): Return unsigned int, not int. Change

bug#20989: [PATCH] tests: add coreutils' perl-driven test framework

2015-07-05 Thread Jim Meyering
I want to use this framework (from coreutils) here in grep, too, so... From ef4091f0813f7c0465f72ace761dfceee547c1df Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 27 Jun 2015 08:43:33 -0700 Subject: [PATCH] tests: add coreutils' perl-driven test framework * configure.ac: Set the AM_CONDI

bug#20990: RFC: [PATCH] accept new option: --files0-from=F

2015-07-05 Thread Jim Meyering
Here is a patch to teach grep the --files0-from=F option. That is the same option that is already supported by wc, du and sort in the GNU coreutils. This option allows one to specify NUL-separated file names in the file argument, F. When I would receive requests to add this option to other progra