diff options
author | Russell Belfer <rb@github.com> | 2012-10-11 11:58:00 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-10-15 12:54:46 -0700 |
commit | 824d5e4d260fc740dbe9251008439b9e58db5f19 (patch) | |
tree | 03d0c83fbf7f9921c1a41b08c7c3f7c2a426bd17 /src/fnmatch.h | |
parent | 1c3acf148b97c952fcb942a73cda9f891f04f1b5 (diff) | |
download | libgit2-824d5e4d260fc740dbe9251008439b9e58db5f19.tar.gz |
Always use internal fnmatch, not system
Diffstat (limited to 'src/fnmatch.h')
-rw-r--r-- | src/fnmatch.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/fnmatch.h b/src/fnmatch.h new file mode 100644 index 000000000..7faef09b3 --- /dev/null +++ b/src/fnmatch.h @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2009-2012 the libgit2 contributors + * + * This file is part of libgit2, distributed under the GNU GPL v2 with + * a Linking Exception. For full terms see the included COPYING file. + */ +#ifndef INCLUDE_fnmatch__compat_h__ +#define INCLUDE_fnmatch__compat_h__ + +#include "common.h" + +#define FNM_NOMATCH 1 /* Match failed. */ +#define FNM_NOSYS 2 /* Function not supported (unused). */ + +#define FNM_NOESCAPE 0x01 /* Disable backslash escaping. */ +#define FNM_PATHNAME 0x02 /* Slash must be matched by slash. */ +#define FNM_PERIOD 0x04 /* Period must be matched by period. */ +#define FNM_LEADING_DIR 0x08 /* Ignore /<tail> after Imatch. */ +#define FNM_CASEFOLD 0x10 /* Case insensitive search. */ + +#define FNM_IGNORECASE FNM_CASEFOLD +#define FNM_FILE_NAME FNM_PATHNAME + +extern int p_fnmatch(const char *pattern, const char *string, int flags); + +#endif /* _FNMATCH_H */ + |