source: vendor/diffutils/2.8.1/lib/exclude.h

Last change on this file was 2556, checked in by bird, 19 years ago

diffutils 2.8.1

File size: 1.8 KB
Line 
1/* exclude.h -- declarations for excluding file names
2 Copyright 1992, 1993, 1994, 1997, 1999, 2001 Free Software Foundation, Inc.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; see the file COPYING.
16 If not, write to the Free Software Foundation,
17 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
18
19/* Written by Paul Eggert <eggert@twinsun.com> */
20
21#ifndef PARAMS
22# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
23# define PARAMS(Args) Args
24# else
25# define PARAMS(Args) ()
26# endif
27#endif
28
29/* Exclude options, which can be ORed with fnmatch options. */
30
31/* Patterns must match the start of file names, instead of matching
32 anywhere after a '/'. */
33#define EXCLUDE_ANCHORED (1 << 5)
34
35/* Include instead of exclude. */
36#define EXCLUDE_INCLUDE (1 << 6)
37
38/* '?', '*', '[', and '\\' are special in patterns. Without this
39 option, these characters are ordinary and fnmatch is not used. */
40#define EXCLUDE_WILDCARDS (1 << 7)
41
42struct exclude;
43
44struct exclude *new_exclude PARAMS ((void));
45void free_exclude PARAMS ((struct exclude *));
46void add_exclude PARAMS ((struct exclude *, char const *, int));
47int add_exclude_file PARAMS ((void (*) (struct exclude *, char const *, int),
48 struct exclude *, char const *, int, char));
49bool excluded_filename PARAMS ((struct exclude const *, char const *));
Note: See TracBrowser for help on using the repository browser.