]> git.proxmox.com Git - libgit2.git/blob - src/fnmatch.h
Move `url` to last place in parameter list
[libgit2.git] / src / fnmatch.h
1 /*
2 * Copyright (C) 2009-2012 the libgit2 contributors
3 *
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
6 */
7 #ifndef INCLUDE_fnmatch__compat_h__
8 #define INCLUDE_fnmatch__compat_h__
9
10 #include "common.h"
11
12 #define FNM_NOMATCH 1 /* Match failed. */
13 #define FNM_NOSYS 2 /* Function not supported (unused). */
14 #define FNM_NORES 3 /* Out of resources */
15
16 #define FNM_NOESCAPE 0x01 /* Disable backslash escaping. */
17 #define FNM_PATHNAME 0x02 /* Slash must be matched by slash. */
18 #define FNM_PERIOD 0x04 /* Period must be matched by period. */
19 #define FNM_LEADING_DIR 0x08 /* Ignore /<tail> after Imatch. */
20 #define FNM_CASEFOLD 0x10 /* Case insensitive search. */
21
22 #define FNM_IGNORECASE FNM_CASEFOLD
23 #define FNM_FILE_NAME FNM_PATHNAME
24
25 extern int p_fnmatch(const char *pattern, const char *string, int flags);
26
27 #endif /* _FNMATCH_H */
28