version 1.1.1.2, 2011/09/24 22:22:27 |
version 1.1.1.3, 2013/09/29 13:45:09 |
Line 26 Foundation, Inc., 51 Franklin Street - F |
|
Line 26 Foundation, Inc., 51 Franklin Street - F |
|
#ifndef FILENAMES_H |
#ifndef FILENAMES_H |
#define FILENAMES_H |
#define FILENAMES_H |
|
|
|
#include "hashtab.h" /* for hashval_t */ |
|
|
#ifdef __cplusplus |
#ifdef __cplusplus |
extern "C" { |
extern "C" { |
#endif |
#endif |
|
|
# ifndef HAVE_DOS_BASED_FILE_SYSTEM |
# ifndef HAVE_DOS_BASED_FILE_SYSTEM |
# define HAVE_DOS_BASED_FILE_SYSTEM 1 |
# define HAVE_DOS_BASED_FILE_SYSTEM 1 |
# endif |
# endif |
|
# ifndef HAVE_CASE_INSENSITIVE_FILE_SYSTEM |
|
# define HAVE_CASE_INSENSITIVE_FILE_SYSTEM 1 |
|
# endif |
# define HAS_DRIVE_SPEC(f) HAS_DOS_DRIVE_SPEC (f) |
# define HAS_DRIVE_SPEC(f) HAS_DOS_DRIVE_SPEC (f) |
# define IS_DIR_SEPARATOR(c) IS_DOS_DIR_SEPARATOR (c) |
# define IS_DIR_SEPARATOR(c) IS_DOS_DIR_SEPARATOR (c) |
# define IS_ABSOLUTE_PATH(f) IS_DOS_ABSOLUTE_PATH (f) |
# define IS_ABSOLUTE_PATH(f) IS_DOS_ABSOLUTE_PATH (f) |
#else /* not DOSish */ |
#else /* not DOSish */ |
|
# if defined(__APPLE__) |
|
# ifndef HAVE_CASE_INSENSITIVE_FILE_SYSTEM |
|
# define HAVE_CASE_INSENSITIVE_FILE_SYSTEM 1 |
|
# endif |
|
# endif /* __APPLE__ */ |
# define HAS_DRIVE_SPEC(f) (0) |
# define HAS_DRIVE_SPEC(f) (0) |
# define IS_DIR_SEPARATOR(c) IS_UNIX_DIR_SEPARATOR (c) |
# define IS_DIR_SEPARATOR(c) IS_UNIX_DIR_SEPARATOR (c) |
# define IS_ABSOLUTE_PATH(f) IS_UNIX_ABSOLUTE_PATH (f) |
# define IS_ABSOLUTE_PATH(f) IS_UNIX_ABSOLUTE_PATH (f) |
|
|
extern int filename_cmp (const char *s1, const char *s2); |
extern int filename_cmp (const char *s1, const char *s2); |
#define FILENAME_CMP(s1, s2) filename_cmp(s1, s2) |
#define FILENAME_CMP(s1, s2) filename_cmp(s1, s2) |
|
|
|
extern int filename_ncmp (const char *s1, const char *s2, |
|
size_t n); |
|
|
|
extern hashval_t filename_hash (const void *s); |
|
|
|
extern int filename_eq (const void *s1, const void *s2); |
|
|
#ifdef __cplusplus |
#ifdef __cplusplus |
} |
} |
#endif |
#endif |