From b917c27c51da4c0486da3efa26d9181ba227fbe0 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 28 Mar 2020 15:12:41 +0100 Subject: [PATCH] dosname: Redirect to 'filename'. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reported by Tim Rühsen in . * lib/dosname.h: Remove all definitions. Just include filename.h. * modules/dosname (Status, Notice): Mark as deprecated. (Depends-on): Add 'filename'. --- ChangeLog | 9 +++++++++ lib/dosname.h | 39 ++------------------------------------- modules/dosname | 7 +++++++ 3 files changed, 18 insertions(+), 37 deletions(-) diff --git a/ChangeLog b/ChangeLog index af102e1dbb..b754b5ae40 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2020-03-28 Bruno Haible + + dosname: Redirect to 'filename'. + Reported by Tim Rühsen in + . + * 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 dosname: Change IS_RELATIVE_FILE_NAME. diff --git a/lib/dosname.h b/lib/dosname.h index 926a6955bf..490e0c5a7d 100644 --- a/lib/dosname.h +++ b/lib/dosname.h @@ -13,41 +13,6 @@ 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 . + along with this program. If not, see . */ - 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" diff --git a/modules/dosname b/modules/dosname index 0e8703cb33..e323aa743a 100644 --- a/modules/dosname +++ b/modules/dosname @@ -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: -- 2.39.5