summaryrefslogtreecommitdiff
path: root/src/grep.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2014-10-24 13:27:29 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2014-10-24 13:35:19 -0700
commit16f6616acaa4fcf44edbc3b56ca10fc06b07cf25 (patch)
tree7c29ee4edb115141168c73fa7a8eccdc2ff6e9af /src/grep.h
parentb2490802defe3c3bf7ef0036a4515d006a08a769 (diff)
downloadgrep-16f6616acaa4fcf44edbc3b56ca10fc06b07cf25.tar.gz
grep: fix grep -P crash
Reported by Shlomi Fish in: http://bugs.gnu.org/18806 Commit 9fa500407137f49f6edc3c6b4ee6c7096f0190c5 (2014-09-16) is a hack that I put in to speed up 'grep -P'. Unfortunately, not only is it violation of modularity, it's also a bug magnet, as we have found out with Bug#18738 and Bug#18806. Remove the optimization instead of applying more bandaids. Perhaps we can think of a better way of doing the optimization, or perhaps we can just live with a slower grep -P (as -P is inherently slower anyway...). * src/grep.c, src/grep.h (validated_boundary): Remove. All uses removed. * src/pcresearch.c (Pexecute): Do not worry about validated_boundary.
Diffstat (limited to 'src/grep.h')
-rw-r--r--src/grep.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/grep.h b/src/grep.h
index 86259fbe..02052b48 100644
--- a/src/grep.h
+++ b/src/grep.h
@@ -47,8 +47,4 @@ enum textbin
/* Input file type. */
extern enum textbin input_textbin;
-/* Validation boundary. Earlier bytes have already been validated by
- the PCRE matcher, which cares about this sort of thing. */
-extern char const *validated_boundary;
-
#endif