Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/BLI_fnmatch.h
| Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | |||||
| #undef FNM_NOESCAPE | #undef FNM_NOESCAPE | ||||
| #undef FNM_PERIOD | #undef FNM_PERIOD | ||||
| /* Bits set in the FLAGS argument to `fnmatch'. */ | /* Bits set in the FLAGS argument to `fnmatch'. */ | ||||
| #define FNM_PATHNAME (1 << 0) /* No wildcard can ever match `/'. */ | #define FNM_PATHNAME (1 << 0) /* No wildcard can ever match `/'. */ | ||||
| #define FNM_NOESCAPE (1 << 1) /* Backslashes don't quote special chars. */ | #define FNM_NOESCAPE (1 << 1) /* Backslashes don't quote special chars. */ | ||||
| #define FNM_PERIOD (1 << 2) /* Leading `.' is matched only explicitly. */ | #define FNM_PERIOD (1 << 2) /* Leading `.' is matched only explicitly. */ | ||||
| #if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 2 || defined(_GNU_SOURCE) || defined(__SUNPRO_C) | #if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 2 || defined(_GNU_SOURCE) | ||||
| #define FNM_FILE_NAME FNM_PATHNAME /* Preferred GNU name. */ | #define FNM_FILE_NAME FNM_PATHNAME /* Preferred GNU name. */ | ||||
| #define FNM_LEADING_DIR (1 << 3) /* Ignore `/...' after a match. */ | #define FNM_LEADING_DIR (1 << 3) /* Ignore `/...' after a match. */ | ||||
| #define FNM_CASEFOLD (1 << 4) /* Compare without regard to case. */ | #define FNM_CASEFOLD (1 << 4) /* Compare without regard to case. */ | ||||
| #endif | #endif | ||||
| /* Value returned by `fnmatch' if STRING does not match PATTERN. */ | /* Value returned by `fnmatch' if STRING does not match PATTERN. */ | ||||
| #define FNM_NOMATCH 1 | #define FNM_NOMATCH 1 | ||||
| Show All 17 Lines | |||||