VirtualBox

source: kBuild/vendor/grep/2.12/src/grep.h

Last change on this file was 2595, checked in by bird, 12 years ago

gnu grep version 2.12 (grep-2.12.tar.xz, md5sum=8d2f0346d08b13c18afb81f0e8aa1e2f)

  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1/* grep.h - interface to grep driver for searching subroutines.
2 Copyright (C) 1992, 1998, 2001, 2007, 2009-2012 Free Software Foundation,
3 Inc.
4
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)
8 any later version.
9
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.
14
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
18 02110-1301, USA. */
19
20#ifndef GREP_GREP_H
21#define GREP_GREP_H 1
22
23/* Function pointer types. */
24typedef void (*compile_fp_t) (char const *, size_t);
25typedef size_t (*execute_fp_t) (char const *, size_t, size_t *, char const *);
26
27/* grep.c expects the matchers vector to be terminated by an entry
28 with a NULL name, and to contain at least one entry. */
29struct matcher
30{
31 const char *name;
32 compile_fp_t compile;
33 execute_fp_t execute;
34};
35extern const struct matcher matchers[];
36
37extern const char before_options[];
38extern const char after_options[];
39
40/* The following flags are exported from grep for the matchers
41 to look at. */
42extern int match_icase; /* -i */
43extern int match_words; /* -w */
44extern int match_lines; /* -x */
45extern unsigned char eolbyte; /* -z */
46
47#endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette