filenames.h (61843) | filenames.h (89857) |
---|---|
1/* Macros for taking apart, interpreting and processing file names. 2 3 These are here because some non-Posix (a.k.a. DOSish) systems have 4 drive letter brain-damage at the beginning of an absolute file name, 5 use forward- and back-slash in path names interchangeably, and 6 some of them have case-insensitive file names. 7 | 1/* Macros for taking apart, interpreting and processing file names. 2 3 These are here because some non-Posix (a.k.a. DOSish) systems have 4 drive letter brain-damage at the beginning of an absolute file name, 5 use forward- and back-slash in path names interchangeably, and 6 some of them have case-insensitive file names. 7 |
8 Copyright 2000 Free Software Foundation, Inc. | 8 Copyright 2000, 2001 Free Software Foundation, Inc. |
9 10This file is part of BFD, the Binary File Descriptor library. 11 12This program is free software; you can redistribute it and/or modify 13it under the terms of the GNU General Public License as published by 14the Free Software Foundation; either version 2 of the License, or 15(at your option) any later version. 16 --- 4 unchanged lines hidden (view full) --- 21 22You should have received a copy of the GNU General Public License 23along with this program; if not, write to the Free Software 24Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 25 26#ifndef FILENAMES_H 27#define FILENAMES_H 28 | 9 10This file is part of BFD, the Binary File Descriptor library. 11 12This program is free software; you can redistribute it and/or modify 13it under the terms of the GNU General Public License as published by 14the Free Software Foundation; either version 2 of the License, or 15(at your option) any later version. 16 --- 4 unchanged lines hidden (view full) --- 21 22You should have received a copy of the GNU General Public License 23along with this program; if not, write to the Free Software 24Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 25 26#ifndef FILENAMES_H 27#define FILENAMES_H 28 |
29#if defined(__MSDOS__) || defined(_WIN32) || defined(__OS2__) | 29#if defined(__MSDOS__) || defined(_WIN32) || defined(__OS2__) || defined (__CYGWIN__) |
30 31#ifndef HAVE_DOS_BASED_FILE_SYSTEM 32#define HAVE_DOS_BASED_FILE_SYSTEM 1 33#endif 34 35#define IS_DIR_SEPARATOR(c) ((c) == '/' || (c) == '\\') 36/* Note that IS_ABSOLUTE_PATH accepts d:foo as well, although it is 37 only semi-absolute. This is because the users of IS_ABSOLUTE_PATH --- 14 unchanged lines hidden --- | 30 31#ifndef HAVE_DOS_BASED_FILE_SYSTEM 32#define HAVE_DOS_BASED_FILE_SYSTEM 1 33#endif 34 35#define IS_DIR_SEPARATOR(c) ((c) == '/' || (c) == '\\') 36/* Note that IS_ABSOLUTE_PATH accepts d:foo as well, although it is 37 only semi-absolute. This is because the users of IS_ABSOLUTE_PATH --- 14 unchanged lines hidden --- |