1 /* -*- buffer-read-only: t -*- vi: set ro: */
2 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3 /* exclude.h -- declarations for excluding file names
5 Copyright (C) 1992-1994, 1997, 1999, 2001-2003, 2005-2006, 2009-2014 Free
6 Software Foundation, Inc.
8 This program is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>. */
22 #define _GL_EXCLUDE_H 1
27 /* Written by Paul Eggert <eggert@twinsun.com>
28 and Sergey Poznyakoff <gray@gnu.org> */
30 /* Exclude options, which can be ORed with fnmatch options. */
32 /* Patterns must match the start of file names, instead of matching
33 anywhere after a '/'. */
34 #define EXCLUDE_ANCHORED (1 << 30)
36 /* Include instead of exclude. */
37 #define EXCLUDE_INCLUDE (1 << 29)
39 /* '?', '*', '[', and '\\' are special in patterns. Without this
40 option, these characters are ordinary and fnmatch is not used. */
41 #define EXCLUDE_WILDCARDS (1 << 28)
43 /* Patterns are POSIX extended regular expressions */
44 #define EXCLUDE_REGEX (1 << 27)
46 /* Allocate storage for the pattern */
47 #define EXCLUDE_ALLOC (1 << 26)
51 bool fnmatch_pattern_has_wildcards (const char *, int) _GL_ATTRIBUTE_PURE;
53 struct exclude *new_exclude (void);
54 void free_exclude (struct exclude *);
55 void add_exclude (struct exclude *, char const *, int);
56 int add_exclude_file (void (*) (struct exclude *, char const *, int),
57 struct exclude *, char const *, int, char);
58 int add_exclude_fp (void (*) (struct exclude *, char const *, int, void *),
59 struct exclude *, FILE *, int, char, void *);
60 bool excluded_file_name (struct exclude const *, char const *);
61 void exclude_add_pattern_buffer (struct exclude *ex, char *buf);
62 bool exclude_fnmatch (char const *, char const *, int);
64 #endif /* _GL_EXCLUDE_H */