1 /* grep.h - interface to grep driver for searching subroutines.
2 Copyright (C) 1992, 1998, 2001, 2007, 2009-2010 Free Software Foundation,
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3, or (at your option)
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
20 #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 6) || __STRICT_ANSI__
21 # define __attribute__(x)
24 /* Function pointer types. */
25 typedef void (*compile_fp_t
) (char const *, size_t);
26 typedef size_t (*execute_fp_t
) (char const *, size_t, size_t *, char const *);
28 /* grep.c expects the matchers vector to be terminated by an entry
29 with a NULL name, and to contain at least one entry. */
37 extern const char before_options
[];
38 extern const char after_options
[];
40 /* The following flags are exported from grep for the matchers
42 extern int match_icase
; /* -i */
43 extern int match_words
; /* -w */
44 extern int match_lines
; /* -x */
45 extern unsigned char eolbyte
; /* -z */