]> Savannah Git Hosting - gnulib.git/commitdiff
dosname: Redirect to 'filename'.
authorBruno Haible <bruno@clisp.org>
Sat, 28 Mar 2020 14:12:41 +0000 (15:12 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 28 Mar 2020 14:12:41 +0000 (15:12 +0100)
Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.

* lib/dosname.h: Remove all definitions. Just include filename.h.
* modules/dosname (Status, Notice): Mark as deprecated.
(Depends-on): Add 'filename'.

ChangeLog
lib/dosname.h
modules/dosname

index af102e1dbb138e6301265caffd838f91edd9a76e..b754b5ae40941606a4b3fb3e1c0248c51fa99dbc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2020-03-28  Bruno Haible  <bruno@clisp.org>
+
+       dosname: Redirect to 'filename'.
+       Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
+       * lib/dosname.h: Remove all definitions. Just include filename.h.
+       * modules/dosname (Status, Notice): Mark as deprecated.
+       (Depends-on): Add 'filename'.
+
 2020-03-28  Bruno Haible  <bruno@clisp.org>
 
        dosname: Change IS_RELATIVE_FILE_NAME.
index 926a6955bf1d2c5f680684f4878a1c9d75a9bdcc..490e0c5a7ddc83ae7f6c6d2feee6c40eca92c5f8 100644 (file)
    GNU General Public License for more details.
 
    You should have received a copy of the GNU General Public License
-   along with this program.  If not, see <https://www.gnu.org/licenses/>.
+   along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-   From Paul Eggert and Jim Meyering.  */
-
-#ifndef _DOSNAME_H
-#define _DOSNAME_H
-
-#if (defined _WIN32 || defined __CYGWIN__ \
-     || defined __EMX__ || defined __MSDOS__ || defined __DJGPP__)
-   /* This internal macro assumes ASCII, but all hosts that support drive
-      letters use ASCII.  */
-# define _IS_DRIVE_LETTER(C) (((unsigned int) (C) | ('a' - 'A')) - 'a'  \
-                              <= 'z' - 'a')
-# define FILE_SYSTEM_PREFIX_LEN(Filename) \
-          (_IS_DRIVE_LETTER ((Filename)[0]) && (Filename)[1] == ':' ? 2 : 0)
-# ifndef __CYGWIN__
-#  define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE 1
-# endif
-# define ISSLASH(C) ((C) == '/' || (C) == '\\')
-#else
-# define FILE_SYSTEM_PREFIX_LEN(Filename) 0
-# define ISSLASH(C) ((C) == '/')
-#endif
-
-#ifndef FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE
-# define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE 0
-#endif
-
-#if FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE
-#  define IS_ABSOLUTE_FILE_NAME(F) ISSLASH ((F)[FILE_SYSTEM_PREFIX_LEN (F)])
-# else
-#  define IS_ABSOLUTE_FILE_NAME(F)                              \
-     (ISSLASH ((F)[0]) || FILE_SYSTEM_PREFIX_LEN (F) != 0)
-#endif
-#define IS_RELATIVE_FILE_NAME(F) \
-  (! (ISSLASH ((F)[0]) || FILE_SYSTEM_PREFIX_LEN (F) != 0))
-
-#endif /* DOSNAME_H_ */
+#include "filename.h"
index 0e8703cb337637973fcb8a8be72e576139a82471..e323aa743aba4017cbd275813db192577ebe3fe0 100644 (file)
@@ -1,10 +1,17 @@
 Description:
 Macros for porting to systems with DOS-style file names.
 
+Status:
+deprecated
+
+Notice:
+This module is deprecated. Use the module 'filename' instead.
+
 Files:
 lib/dosname.h
 
 Depends-on:
+filename
 
 configure.ac: