aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2020-03-28 13:58:44 -0700
committerPaul Eggert2020-03-28 14:08:11 -0700
commit4f41188a6e1eb0ce832bd74907642f30ada344d9 (patch)
treee7416c28af32c57cd06614ea995e10c334ea0aa1
parenta775dca449ca8da2e2619ea608a3849f70fa951e (diff)
downloademacs-4f41188a6e1eb0ce832bd74907642f30ada344d9.tar.gz
emacs-4f41188a6e1eb0ce832bd74907642f30ada344d9.zip
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.
-rwxr-xr-xadmin/merge-gnulib4
-rw-r--r--lib-src/emacsclient.c2
-rw-r--r--lib/dosname.h18
-rw-r--r--lib/gnulib.mk.in11
-rw-r--r--m4/gnulib-comp.m42
-rw-r--r--src/fileio.c2
6 files changed, 5 insertions, 34 deletions
diff --git a/admin/merge-gnulib b/admin/merge-gnulib
index 768e5051f0b..99469e47aa7 100755
--- a/admin/merge-gnulib
+++ b/admin/merge-gnulib
@@ -31,10 +31,10 @@ GNULIB_MODULES='
31 careadlinkat close-stream copy-file-range 31 careadlinkat close-stream copy-file-range
32 count-leading-zeros count-one-bits count-trailing-zeros 32 count-leading-zeros count-one-bits count-trailing-zeros
33 crypto/md5-buffer crypto/sha1-buffer crypto/sha256-buffer crypto/sha512-buffer 33 crypto/md5-buffer crypto/sha1-buffer crypto/sha256-buffer crypto/sha512-buffer
34 d-type diffseq dosname double-slash-root dtoastr dtotimespec dup2 34 d-type diffseq double-slash-root dtoastr dtotimespec dup2
35 environ execinfo explicit_bzero faccessat 35 environ execinfo explicit_bzero faccessat
36 fchmodat fcntl fcntl-h fdopendir 36 fchmodat fcntl fcntl-h fdopendir
37 filemode filevercmp flexmember fpieee fstatat fsusage fsync futimens 37 filemode filename filevercmp flexmember fpieee fstatat fsusage fsync futimens
38 getloadavg getopt-gnu gettime gettimeofday gitlog-to-changelog 38 getloadavg getopt-gnu gettime gettimeofday gitlog-to-changelog
39 ieee754-h ignore-value intprops largefile lstat 39 ieee754-h ignore-value intprops largefile lstat
40 manywarnings memmem-simple mempcpy memrchr minmax mkostemp mktime nstrftime 40 manywarnings memmem-simple mempcpy memrchr minmax mkostemp mktime nstrftime
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index 204064f1871..380be95222b 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -80,7 +80,7 @@ char *w32_getenv (const char *);
80#include <sys/stat.h> 80#include <sys/stat.h>
81#include <unistd.h> 81#include <unistd.h>
82 82
83#include <dosname.h> 83#include <filename.h>
84#include <intprops.h> 84#include <intprops.h>
85#include <min-max.h> 85#include <min-max.h>
86#include <pathmax.h> 86#include <pathmax.h>
diff --git a/lib/dosname.h b/lib/dosname.h
deleted file mode 100644
index 490e0c5a7dd..00000000000
--- a/lib/dosname.h
+++ /dev/null
@@ -1,18 +0,0 @@
1/* File names on MS-DOS/Windows systems.
2
3 Copyright (C) 2000-2001, 2004-2006, 2009-2020 Free Software Foundation, Inc.
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <https://www.gnu.org/licenses/>. */
17
18#include "filename.h"
diff --git a/lib/gnulib.mk.in b/lib/gnulib.mk.in
index 256bda7752e..0c7c2fb2b66 100644
--- a/lib/gnulib.mk.in
+++ b/lib/gnulib.mk.in
@@ -86,7 +86,6 @@
86# crypto/sha512-buffer \ 86# crypto/sha512-buffer \
87# d-type \ 87# d-type \
88# diffseq \ 88# diffseq \
89# dosname \
90# double-slash-root \ 89# double-slash-root \
91# dtoastr \ 90# dtoastr \
92# dtotimespec \ 91# dtotimespec \
@@ -100,6 +99,7 @@
100# fcntl-h \ 99# fcntl-h \
101# fdopendir \ 100# fdopendir \
102# filemode \ 101# filemode \
102# filename \
103# filevercmp \ 103# filevercmp \
104# flexmember \ 104# flexmember \
105# fpieee \ 105# fpieee \
@@ -1452,15 +1452,6 @@ EXTRA_libgnu_a_SOURCES += dirfd.c
1452endif 1452endif
1453## end gnulib module dirfd 1453## end gnulib module dirfd
1454 1454
1455## begin gnulib module dosname
1456ifeq (,$(OMIT_GNULIB_MODULE_dosname))
1457
1458
1459EXTRA_DIST += dosname.h
1460
1461endif
1462## end gnulib module dosname
1463
1464## begin gnulib module dtoastr 1455## begin gnulib module dtoastr
1465ifeq (,$(OMIT_GNULIB_MODULE_dtoastr)) 1456ifeq (,$(OMIT_GNULIB_MODULE_dtoastr))
1466 1457
diff --git a/m4/gnulib-comp.m4 b/m4/gnulib-comp.m4
index f92222dd771..d5faa9a1950 100644
--- a/m4/gnulib-comp.m4
+++ b/m4/gnulib-comp.m4
@@ -69,7 +69,6 @@ AC_DEFUN([gl_EARLY],
69 # Code from module diffseq: 69 # Code from module diffseq:
70 # Code from module dirent: 70 # Code from module dirent:
71 # Code from module dirfd: 71 # Code from module dirfd:
72 # Code from module dosname:
73 # Code from module double-slash-root: 72 # Code from module double-slash-root:
74 # Code from module dtoastr: 73 # Code from module dtoastr:
75 # Code from module dtotimespec: 74 # Code from module dtotimespec:
@@ -962,7 +961,6 @@ AC_DEFUN([gl_FILE_LIST], [
962 lib/diffseq.h 961 lib/diffseq.h
963 lib/dirent.in.h 962 lib/dirent.in.h
964 lib/dirfd.c 963 lib/dirfd.c
965 lib/dosname.h
966 lib/dtoastr.c 964 lib/dtoastr.c
967 lib/dtotimespec.c 965 lib/dtotimespec.c
968 lib/dup2.c 966 lib/dup2.c
diff --git a/src/fileio.c b/src/fileio.c
index ffe79559a3f..978a373d39b 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/>. */
96#include <acl.h> 96#include <acl.h>
97#include <allocator.h> 97#include <allocator.h>
98#include <careadlinkat.h> 98#include <careadlinkat.h>
99#include <dosname.h> 99#include <filename.h>
100#include <fsusage.h> 100#include <fsusage.h>
101#include <stat-time.h> 101#include <stat-time.h>
102#include <tempname.h> 102#include <tempname.h>