Blender V2.61 - r43446
|
00001 /* Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc. 00002 00003 NOTE: The canonical source of this file is maintained with the GNU C Library. 00004 Bugs can be reported to bug-glibc@prep.ai.mit.edu. 00005 00006 This program is free software; you can redistribute it and/or modify it 00007 under the terms of the GNU General Public License as published by the 00008 Free Software Foundation; either version 2, or (at your option) any 00009 later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software Foundation, 00018 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ 00019 00020 #ifndef _FNMATCH_H 00021 #define _FNMATCH_H 1 00022 00027 #ifdef __cplusplus 00028 extern "C" { 00029 #endif 00030 00031 #if defined (__cplusplus) || (defined (__STDC__) && __STDC__) 00032 #undef __P 00033 #define __P(protos) protos 00034 #else /* Not C++ or ANSI C. */ 00035 #undef __P 00036 #define __P(protos) () 00037 /* We can get away without defining `const' here only because in this file 00038 it is used only inside the prototype for `fnmatch', which is elided in 00039 non-ANSI C where `const' is problematical. */ 00040 #endif /* C++ or ANSI C. */ 00041 00042 00043 /* We #undef these before defining them because some losing systems 00044 (HP-UX A.08.07 for example) define these in <unistd.h>. */ 00045 #undef FNM_PATHNAME 00046 #undef FNM_NOESCAPE 00047 #undef FNM_PERIOD 00048 00049 /* Bits set in the FLAGS argument to `fnmatch'. */ 00050 #define FNM_PATHNAME (1 << 0) /* No wildcard can ever match `/'. */ 00051 #define FNM_NOESCAPE (1 << 1) /* Backslashes don't quote special chars. */ 00052 #define FNM_PERIOD (1 << 2) /* Leading `.' is matched only explicitly. */ 00053 00054 #if !defined (_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 2 || defined (_GNU_SOURCE) || defined( __SUNPRO_C) 00055 #define FNM_FILE_NAME FNM_PATHNAME /* Preferred GNU name. */ 00056 #define FNM_LEADING_DIR (1 << 3) /* Ignore `/...' after a match. */ 00057 #define FNM_CASEFOLD (1 << 4) /* Compare without regard to case. */ 00058 #endif 00059 00060 /* Value returned by `fnmatch' if STRING does not match PATTERN. */ 00061 #define FNM_NOMATCH 1 00062 00063 /* Match STRING against the filename pattern PATTERN, 00064 returning zero if it matches, FNM_NOMATCH if not. */ 00065 extern int fnmatch __P ((const char *__pattern, const char *__string, 00066 int __flags)); 00067 00068 #ifdef __cplusplus 00069 } 00070 #endif 00071 00072 #endif /* fnmatch.h */