diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2004-05-07 14:51:43 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2004-05-07 14:51:43 +0000 |
commit | 73336cf4fb0979d4d55d8dec48b6336562cbace5 (patch) | |
tree | 528e13afcd3b1d15cb94b7e84d3ea8790ab91c71 /usr.bin/grep/grep.h | |
parent | e8a1d5db468a4c9891094f658236c006e9af206c (diff) |
Add a new past path for fgrep that is just a simplified version of
fastcomp. This makes fgrep faster and fixes the -w flag w/ fgrep.
Also remove free_patterns() since calling free right before exit
is silly. Problem noticed by espie@
Diffstat (limited to 'usr.bin/grep/grep.h')
-rw-r--r-- | usr.bin/grep/grep.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/grep/grep.h b/usr.bin/grep/grep.h index 43842ba56d5..eccb8800246 100644 --- a/usr.bin/grep/grep.h +++ b/usr.bin/grep/grep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: grep.h,v 1.10 2004/01/25 21:36:00 millert Exp $ */ +/* $OpenBSD: grep.h,v 1.11 2004/05/07 14:51:42 millert Exp $ */ /*- * Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav @@ -86,6 +86,7 @@ void *grep_malloc(size_t size); void *grep_realloc(void *ptr, size_t size); void printline(str_t *line, int sep); int fastcomp(fastgrep_t *, const char *); +int fgrepcomp(fastgrep_t *, const char *); /* queue.c */ void initqueue(void); |