1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-09-01 02:34:55 +00:00
Files
gnulib/modules/basename-lgpl
T
Bruno Haible b32e203eee 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'.
2020-07-05 20:01:02 +02:00

26 lines
287 B
Plaintext

Description:
Extract the last component (base name) of a file name.
Files:
lib/basename-lgpl.h
lib/basename-lgpl.c
Depends-on:
double-slash-root
filename
stdbool
configure.ac:
Makefile.am:
lib_SOURCES += basename-lgpl.c
Include:
"basename-lgpl.h"
License:
LGPLv2+
Maintainer:
all