1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-17 12:41:05 +03:00
Files
gnulib/modules/exclude
Sergey Poznyakoff f28a2482fe Optimize exclude: use hash tables for non-wildcard patterns.
* lib/exclude.c: Include hash.h and mbuiter.h
(struct exclude_pattern, exclude_segment): New data types.
(struct exclude): Rewrite.
(fnmatch_pattern_has_wildcards): New function.
(new_exclude_segment, free_exclude_segment): New functions.
(excluded_file_pattern_p, excluded_file_name_p): New functions.
(excluded_file_name, add_exclude): Rewrite using new struct exclude.
* lib/exclude.h (is_fnmatch_pattern): New prototype.
* modules/exclude: Depend on hash and mbuiter.

* modules/exclude-tests: New file.
* tests/test-exclude.c: New file.
* tests/test-exclude1.sh: New file.
* tests/test-exclude2.sh: New file.
* tests/test-exclude3.sh: New file.
* tests/test-exclude4.sh: New file.
* tests/test-exclude5.sh: New file.
* tests/test-exclude6.sh: New file.
* tests/test-exclude7.sh: New file.
2009-08-12 19:06:21 +03:00

31 lines
310 B
Plaintext

Description:
Manage list of filenames or wildcard patterns for --exclude option processing.
Files:
lib/exclude.h
lib/exclude.c
m4/exclude.m4
Depends-on:
fnmatch
hash
mbscasecmp
mbuiter
stdbool
verify
xalloc
configure.ac:
gl_EXCLUDE
Makefile.am:
Include:
"exclude.h"
License:
GPL
Maintainer:
Paul Eggert