195b7b453SJohn Marino /* grep.h - interface to grep driver for searching subroutines. 2*09d4459fSDaniel Fojt Copyright (C) 1992, 1998, 2001, 2007, 2009-2020 Free Software Foundation, 395b7b453SJohn Marino Inc. 495b7b453SJohn Marino 595b7b453SJohn Marino This program is free software; you can redistribute it and/or modify 695b7b453SJohn Marino it under the terms of the GNU General Public License as published by 795b7b453SJohn Marino the Free Software Foundation; either version 3, or (at your option) 895b7b453SJohn Marino any later version. 995b7b453SJohn Marino 1095b7b453SJohn Marino This program is distributed in the hope that it will be useful, 1195b7b453SJohn Marino but WITHOUT ANY WARRANTY; without even the implied warranty of 1295b7b453SJohn Marino MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1395b7b453SJohn Marino GNU General Public License for more details. 1495b7b453SJohn Marino 1595b7b453SJohn Marino You should have received a copy of the GNU General Public License 1695b7b453SJohn Marino along with this program; if not, write to the Free Software 1795b7b453SJohn Marino Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 1895b7b453SJohn Marino 02110-1301, USA. */ 1995b7b453SJohn Marino 20200fbe8dSJohn Marino #ifndef GREP_GREP_H 21200fbe8dSJohn Marino #define GREP_GREP_H 1 22200fbe8dSJohn Marino 23dc7c36e4SJohn Marino #include <stdbool.h> 24dc7c36e4SJohn Marino 2595b7b453SJohn Marino /* The following flags are exported from grep for the matchers 2695b7b453SJohn Marino to look at. */ 27dc7c36e4SJohn Marino extern bool match_icase; /* -i */ 28dc7c36e4SJohn Marino extern bool match_words; /* -w */ 29dc7c36e4SJohn Marino extern bool match_lines; /* -x */ 30dc7c36e4SJohn Marino extern char eolbyte; /* -z */ 31dc7c36e4SJohn Marino 32*09d4459fSDaniel Fojt extern char const *pattern_file_name (size_t, size_t *); 33200fbe8dSJohn Marino 34200fbe8dSJohn Marino #endif 35