emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 4f41188 2/2: Stop using newly-deprecated dosname Gnulib module


From: Paul Eggert
Subject: master 4f41188 2/2: Stop using newly-deprecated dosname Gnulib module
Date: Sat, 28 Mar 2020 17:08:18 -0400 (EDT)

branch: master
commit 4f41188a6e1eb0ce832bd74907642f30ada344d9
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    Stop using newly-deprecated dosname Gnulib module
    
    Code is supposed to use the filename module now.
    * admin/merge-gnulib (GNULIB_MODULES): Replace dosname with filename.
    * lib/dosname.h: Remove this forwarding stub.
    * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
    * lib-src/emacsclient.c, src/fileio.c:
    Include filename.h instead of dosname.h.
---
 admin/merge-gnulib    |  4 ++--
 lib-src/emacsclient.c |  2 +-
 lib/dosname.h         | 18 ------------------
 lib/gnulib.mk.in      | 11 +----------
 m4/gnulib-comp.m4     |  2 --
 src/fileio.c          |  2 +-
 6 files changed, 5 insertions(+), 34 deletions(-)

diff --git a/admin/merge-gnulib b/admin/merge-gnulib
index 768e505..99469e4 100755
--- a/admin/merge-gnulib
+++ b/admin/merge-gnulib
@@ -31,10 +31,10 @@ GNULIB_MODULES='
   careadlinkat close-stream copy-file-range
   count-leading-zeros count-one-bits count-trailing-zeros
   crypto/md5-buffer crypto/sha1-buffer crypto/sha256-buffer 
crypto/sha512-buffer
-  d-type diffseq dosname double-slash-root dtoastr dtotimespec dup2
+  d-type diffseq double-slash-root dtoastr dtotimespec dup2
   environ execinfo explicit_bzero faccessat
   fchmodat fcntl fcntl-h fdopendir
-  filemode filevercmp flexmember fpieee fstatat fsusage fsync futimens
+  filemode filename filevercmp flexmember fpieee fstatat fsusage fsync futimens
   getloadavg getopt-gnu gettime gettimeofday gitlog-to-changelog
   ieee754-h ignore-value intprops largefile lstat
   manywarnings memmem-simple mempcpy memrchr minmax mkostemp mktime nstrftime
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index 204064f..380be95 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -80,7 +80,7 @@ char *w32_getenv (const char *);
 #include <sys/stat.h>
 #include <unistd.h>
 
-#include <dosname.h>
+#include <filename.h>
 #include <intprops.h>
 #include <min-max.h>
 #include <pathmax.h>
diff --git a/lib/dosname.h b/lib/dosname.h
deleted file mode 100644
index 490e0c5..0000000
--- a/lib/dosname.h
+++ /dev/null
@@ -1,18 +0,0 @@
-/* File names on MS-DOS/Windows systems.
-
-   Copyright (C) 2000-2001, 2004-2006, 2009-2020 Free Software Foundation, Inc.
-
-   This program is free software: you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 3 of the License, or
-   (at your option) any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   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/>.  */
-
-#include "filename.h"
diff --git a/lib/gnulib.mk.in b/lib/gnulib.mk.in
index 256bda7..0c7c2fb 100644
--- a/lib/gnulib.mk.in
+++ b/lib/gnulib.mk.in
@@ -86,7 +86,6 @@
 #  crypto/sha512-buffer \
 #  d-type \
 #  diffseq \
-#  dosname \
 #  double-slash-root \
 #  dtoastr \
 #  dtotimespec \
@@ -100,6 +99,7 @@
 #  fcntl-h \
 #  fdopendir \
 #  filemode \
+#  filename \
 #  filevercmp \
 #  flexmember \
 #  fpieee \
@@ -1452,15 +1452,6 @@ EXTRA_libgnu_a_SOURCES += dirfd.c
 endif
 ## end   gnulib module dirfd
 
-## begin gnulib module dosname
-ifeq (,$(OMIT_GNULIB_MODULE_dosname))
-
-
-EXTRA_DIST += dosname.h
-
-endif
-## end   gnulib module dosname
-
 ## begin gnulib module dtoastr
 ifeq (,$(OMIT_GNULIB_MODULE_dtoastr))
 
diff --git a/m4/gnulib-comp.m4 b/m4/gnulib-comp.m4
index f92222d..d5faa9a 100644
--- a/m4/gnulib-comp.m4
+++ b/m4/gnulib-comp.m4
@@ -69,7 +69,6 @@ AC_DEFUN([gl_EARLY],
   # Code from module diffseq:
   # Code from module dirent:
   # Code from module dirfd:
-  # Code from module dosname:
   # Code from module double-slash-root:
   # Code from module dtoastr:
   # Code from module dtotimespec:
@@ -962,7 +961,6 @@ AC_DEFUN([gl_FILE_LIST], [
   lib/diffseq.h
   lib/dirent.in.h
   lib/dirfd.c
-  lib/dosname.h
   lib/dtoastr.c
   lib/dtotimespec.c
   lib/dup2.c
diff --git a/src/fileio.c b/src/fileio.c
index ffe7955..978a373 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -96,7 +96,7 @@ along with GNU Emacs.  If not, see 
<https://www.gnu.org/licenses/>.  */
 #include <acl.h>
 #include <allocator.h>
 #include <careadlinkat.h>
-#include <dosname.h>
+#include <filename.h>
 #include <fsusage.h>
 #include <stat-time.h>
 #include <tempname.h>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]