VirtualBox

source: kBuild/vendor/grep/2.12/lib/exclude.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.9 KB
Line 
1/* exclude.h -- declarations for excluding file names
2
3 Copyright (C) 1992-1994, 1997, 1999, 2001-2003, 2005-2006, 2009-2012 Free
4 Software Foundation, Inc.
5
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>. */
18
19#ifndef _GL_EXCLUDE_H
20#define _GL_EXCLUDE_H 1
21
22#include <stdbool.h>
23
24/* Written by Paul Eggert <eggert@twinsun.com>
25 and Sergey Poznyakoff <gray@gnu.org> */
26
27/* Exclude options, which can be ORed with fnmatch options. */
28
29/* Patterns must match the start of file names, instead of matching
30 anywhere after a '/'. */
31#define EXCLUDE_ANCHORED (1 << 30)
32
33/* Include instead of exclude. */
34#define EXCLUDE_INCLUDE (1 << 29)
35
36/* '?', '*', '[', and '\\' are special in patterns. Without this
37 option, these characters are ordinary and fnmatch is not used. */
38#define EXCLUDE_WILDCARDS (1 << 28)
39
40struct exclude;
41
42bool fnmatch_pattern_has_wildcards (const char *, int) _GL_ATTRIBUTE_PURE;
43
44struct exclude *new_exclude (void);
45void free_exclude (struct exclude *);
46void add_exclude (struct exclude *, char const *, int);
47int add_exclude_file (void (*) (struct exclude *, char const *, int),
48 struct exclude *, char const *, int, char);
49bool excluded_file_name (struct exclude const *, char const *);
50bool exclude_fnmatch (char const *pattern, char const *f, int options);
51
52#endif /* _GL_EXCLUDE_H */
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