diff options
author | Bruno Haible <bruno@clisp.org> | 2020-07-05 18:06:13 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2020-07-05 20:01:02 +0200 |
commit | b32e203eee9c9259996310b6bcf55a13b102348a (patch) | |
tree | e11bd40c81768363c638e3237713ee57629e304d /modules/dirname-lgpl | |
parent | dc4b3181b30ece859f68902610f2ce0c613e85d1 (diff) | |
download | gnulib-b32e203eee9c9259996310b6bcf55a13b102348a.tar.gz |
basename-lgpl: New module.
* lib/basename-lgpl.h: New file, based on lib/dirname.h and
lib/basename-lgpl.c.
* lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
<stdbool.h>, filename.h.
(last_component): Rename a local variable.
* lib/dirname.h: Include basename-lgpl.h.
(DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
(last_component, base_len): Remove declarations.
* modules/basename-lgpl: New file.
* modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
(Depends-on): Add basename-lgpl. Remove double-slash-root.
(Makefile.am): Don't compile basename-lgpl.c.
* doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
not 'dirname'.
Diffstat (limited to 'modules/dirname-lgpl')
-rw-r--r-- | modules/dirname-lgpl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/dirname-lgpl b/modules/dirname-lgpl index b919102e67..b7585359fe 100644 --- a/modules/dirname-lgpl +++ b/modules/dirname-lgpl @@ -4,11 +4,10 @@ Extract specific portions of filenames. Files: lib/dirname.h lib/dirname-lgpl.c -lib/basename-lgpl.c lib/stripslash.c Depends-on: -double-slash-root +basename-lgpl filename malloc-posix stdbool @@ -16,7 +15,7 @@ stdbool configure.ac: Makefile.am: -lib_SOURCES += dirname-lgpl.c basename-lgpl.c stripslash.c +lib_SOURCES += dirname-lgpl.c stripslash.c Include: "dirname.h" |