]> Savannah Git Hosting - gnulib.git/commit
*_startswith, *_endswith: Change return type to 'bool'.
authorBruno Haible <bruno@clisp.org>
Sat, 4 Jan 2025 09:17:39 +0000 (10:17 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 4 Jan 2025 09:17:39 +0000 (10:17 +0100)
commitcadd8eb70d1cfce6ef47ee052a67cd2ad04a0e1b
treef346effb9a634664d9b9f8d1ba0079d6534d011e
parent1ee79b154056869c29af72124bae0f3f16768487
*_startswith, *_endswith: Change return type to 'bool'.

Suggested by Paul Eggert.

* lib/string.in.h (str_startswith, str_endswith, mbs_startswith,
mbs_endswith): Change return type to 'bool'.
* lib/str_startswith.c (str_startswith): Likewise.
* lib/str_endswith.c (str_endswith): Likewise.
* lib/mbs_endswith.c (mbs_endswith): Likewise.
* modules/str_startswith (Depends-on): Add bool.
* modules/str_endswith (Depends-on): Likewise.
* modules/mbs_startswith (Depends-on): Likewise.
* modules/mbs_endswith (Depends-on): Likewise.
ChangeLog
lib/mbs_endswith.c
lib/str_endswith.c
lib/str_startswith.c
lib/string.in.h
modules/mbs_endswith
modules/mbs_startswith
modules/str_endswith
modules/str_startswith