summaryrefslogtreecommitdiff
path: root/doc/posix-functions/basename.texi
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2020-07-05 18:06:13 +0200
committerBruno Haible <bruno@clisp.org>2020-07-05 20:01:02 +0200
commitb32e203eee9c9259996310b6bcf55a13b102348a (patch)
treee11bd40c81768363c638e3237713ee57629e304d /doc/posix-functions/basename.texi
parentdc4b3181b30ece859f68902610f2ce0c613e85d1 (diff)
downloadgnulib-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.texi4
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.