/* exclude.h -- declarations for excluding file names12Copyright (C) 1992, 1993, 1994, 1997, 1999, 2001, 2002, 2003 Free3Software Foundation, Inc.45This program is free software; you can redistribute it and/or modify6it under the terms of the GNU General Public License as published by7the Free Software Foundation; either version 2, or (at your option)8any later version.910This program is distributed in the hope that it will be useful,11but WITHOUT ANY WARRANTY; without even the implied warranty of12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13GNU General Public License for more details.1415You should have received a copy of the GNU General Public License16along with this program; see the file COPYING.17If not, write to the Free Software Foundation,1859 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */1920/* Written by Paul Eggert <[email protected]> */2122/* Exclude options, which can be ORed with fnmatch options. */2324/* Patterns must match the start of file names, instead of matching25anywhere after a '/'. */26#define EXCLUDE_ANCHORED (1 << 30)2728/* Include instead of exclude. */29#define EXCLUDE_INCLUDE (1 << 29)3031/* '?', '*', '[', and '\\' are special in patterns. Without this32option, these characters are ordinary and fnmatch is not used. */33#define EXCLUDE_WILDCARDS (1 << 28)3435struct exclude;3637struct exclude *new_exclude (void);38void free_exclude (struct exclude *);39void add_exclude (struct exclude *, char const *, int);40int add_exclude_file (void (*) (struct exclude *, char const *, int),41struct exclude *, char const *, int, char);42bool excluded_filename (struct exclude const *, char const *);434445