]> Savannah Git Hosting - gnulib.git/commit
basename-lgpl: New module.
authorBruno Haible <bruno@clisp.org>
Sun, 5 Jul 2020 16:06:13 +0000 (18:06 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 5 Jul 2020 18:01:02 +0000 (20:01 +0200)
commitb32e203eee9c9259996310b6bcf55a13b102348a
treee11bd40c81768363c638e3237713ee57629e304d
parentdc4b3181b30ece859f68902610f2ce0c613e85d1
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'.
ChangeLog
doc/posix-functions/basename.texi
lib/basename-lgpl.c
lib/basename-lgpl.h [new file with mode: 0644]
lib/dirname.h
modules/basename-lgpl [new file with mode: 0644]
modules/dirname-lgpl