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 /doc/posix-functions/basename.texi | |
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 'doc/posix-functions/basename.texi')
-rw-r--r-- | doc/posix-functions/basename.texi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/posix-functions/basename.texi b/doc/posix-functions/basename.texi index e75b510200..ebc616e939 100644 --- a/doc/posix-functions/basename.texi +++ b/doc/posix-functions/basename.texi @@ -23,5 +23,5 @@ version and the GNU version. names in Windows syntax. @end itemize -The Gnulib module @code{dirname} provides similar API, with function -@code{base_name}, that also works with Windows file names. +The Gnulib module @code{basename-lgpl} provides similar API, with a function +@code{last_component}, that also works with Windows file names. |