4
0

exclude.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* exclude.h -- declarations for excluding file names
  2. Copyright (C) 1992, 1993, 1994, 1997, 1999, 2001, 2002, 2003 Free
  3. Software Foundation, Inc.
  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. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; see the file COPYING.
  14. If not, write to the Free Software Foundation,
  15. 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
  16. /* Written by Paul Eggert <[email protected]> */
  17. /* Exclude options, which can be ORed with fnmatch options. */
  18. /* Patterns must match the start of file names, instead of matching
  19. anywhere after a '/'. */
  20. #define EXCLUDE_ANCHORED (1 << 30)
  21. /* Include instead of exclude. */
  22. #define EXCLUDE_INCLUDE (1 << 29)
  23. /* '?', '*', '[', and '\\' are special in patterns. Without this
  24. option, these characters are ordinary and fnmatch is not used. */
  25. #define EXCLUDE_WILDCARDS (1 << 28)
  26. struct exclude;
  27. struct exclude *new_exclude (void);
  28. void free_exclude (struct exclude *);
  29. void add_exclude (struct exclude *, char const *, int);
  30. int add_exclude_file (void (*) (struct exclude *, char const *, int),
  31. struct exclude *, char const *, int, char);
  32. bool excluded_filename (struct exclude const *, char const *);