1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-06-15 23:35:50 +00:00

20 Commits

Author SHA1 Message Date
Collin Funk a8482ceecf maint: run 'make update-copyright' 2026-01-01 10:37:05 -08:00
Paul Eggert 8dbdff4e20 attribute: new C macro UNNAMED
* lib/attribute.h (UNNAMED): New macro, like _GL_UNNAMED.
When applicable, prefer this new macro to MAYBE_UNUSED.
2025-12-24 00:12:18 -08:00
Bruno Haible 837a413b2e lib: Replace some 'continue;' statements with if/else.
* lib/base32.c (base32_decode_ctx): Use if/else instead of 'continue;'.
* lib/base64.c (base64_decode_ctx): Likewise.
* lib/bitset/array.c (abitset_list): Likewise.
* lib/bitset/list.c (lbitset_disjoint_p): Likewise.
* lib/bitset/table.c (tbitset_equal_p, tbitset_list, tbitset_subset_p,
tbitset_disjoint_p, tbitset_op3_cmp): Likewise.
* lib/bitset/vector.c (vbitset_list): Likewise.
* lib/diffseq.h (diag): Likewise.
* lib/file-has-acl.c (fdfile_has_aclinfo): Likewise.
* lib/fwriteerror.c (main): Likewise.
* lib/getugroups.c (getugroups): Likewise.
* lib/hash.c (transfer_entries): Likewise.
* lib/inet_pton.c (inet_pton6): Likewise.
* lib/mountlist.c (read_file_system_list): Likewise.
* lib/poll.c (poll): Likewise.
* lib/select.c (rpl_select): Likewise.
* lib/set-permissions.c (set_acls_from_mode): Likewise.
* lib/timevar.c (timevar_print): Likewise.
* lib/wcscasecmp-impl.h (wcscasecmp): Likewise.
* lib/wcscmp-impl.h (wcscmp): Likewise.
* lib/wcsncasecmp-impl.h (wcsncasecmp): Likewise.
* lib/wcsncmp-impl.h (wcsncmp): Likewise.
* lib/wmemcmp-impl.h (wmemcmp): Likewise.
2025-11-18 23:59:58 +01:00
Bruno Haible cfcc6fb935 bitset: Fix -Wmissing-variable-declarations warnings.
* lib/bitset/table.c (tbitset_vtable): Make static.
* lib/bitset/array.c (abitset_small_vtable, abitset_vtable): Likewise.
* lib/bitset/vector.c (vbitset_vtable): Likewise.
* lib/bitset/list.c (lbitset_vtable): Likewise.
* lib/bitset/stats.c (bitset_stats_info_data, bitset_stats_info,
bitset_stats_vtable): Likewise.
2025-04-26 11:34:01 +02:00
Pádraig Brady 7b08932179 maint: run 'make update-copyright' 2025-01-01 09:25:10 +00:00
Simon Josefsson 5b92dd0a45 maint: run 'make update-copyright' 2024-01-01 10:31:48 +01:00
Simon Josefsson 32a72f4537 maint: run 'make update-copyright' 2023-01-01 01:14:21 +01:00
Paul Eggert eec12c00cf maint: run 'make update-copyright' 2022-01-01 09:44:11 -08:00
Paul Eggert 786bb6fb17 gnulib-common: update for C2x 2020-12-11 draft
Use blessed-by-draft-standard way to test for [[__deprecated__]]
etc.; this is supported by GCC 11 and the fallback code should
work fine with GCC 10 and earlier, clang, etc.
* NEWS, doc/attribute.texi:
Mention that DEPRECATED etc. must now come first.
* lib/fflush.c, lib/unistr.in.h:
Do not include unused-parameter.h.  All uses of _GL_UNUSED_PARAMETER
(after parameters) replaced by _GL_ATTRIBUTE_MAYBE_UNUSED (before
parameters).  Although perhaps we need a shorter name for
_GL_ATTRIBUTE_MAYBE_UNUSED, that should probably be in
gnulib-common.m4, due to the ubiquity of this issue.
And perhaps the snippet/unused-parameter module should be marked
obsolete since it's no longer compatible with its old use.
* m4/gnulib-common.m4 (gl_COMMON_BODY): Define the macro
_GL_HAS_C_ATTRIBUTE, and use it instead of __STDC_VERSION__ in
deciding whether to use C2x attributes like [[__deprecated__]].
(_GL_ATTRIBUTE_MAYBE_UNUSED): Fall back on _GL_ATTRIBUTE_UNUSED.
(_GL_ATTRIBUTE_UNUSED): New macro, for labels where C2x
[[maybe_unused]] do not work.
(_GL_UNUSED, _GL_UNUSED_LABEL): Use it.
* modules/fflush, modules/unistr/base (Depends-on):
Remove snippet/unused-parameter.
* modules/fflush (selinux/selinux.h, selinux/context.h)
(selinux/label.h): Do not use $(UNUSED_PARAMETER).
Remove useless chmod a-x.
2021-07-31 12:00:34 -07:00
Paul Eggert 4b94832196 maint: run 'make update-copyright' 2020-12-31 23:30:01 -08:00
Akim Demaille 911aba3a6d bitset: use integer_length in array implementation
* modules/bitset (Depends-on): Add integer_length_l.
* lib/bitset/base.h (bitset_fls_, BITSET_FOR_EACH_BIT_REVERSE): New.
* lib/bitset/array.c (abitset_list_reverse): Use it.
2020-11-30 06:53:53 +01:00
Akim Demaille 8e64e338f9 bitset: be sure to always return a value
* lib/bitset/array.c (abitset_small_list): Always update *next and
return a value.
2020-11-19 07:01:21 +01:00
Akim Demaille abc5606bb1 bitset: use ffs where possible in array implementation
* lib/bitset/array.c (abitset_small_list): Use BITSET_FOR_EACH_BIT.
2020-11-18 06:50:28 +01:00
Akim Demaille da9e9d02b8 bitset: use ffsl to accelerate iterations over set bits
Currently we iterate over words bit by bit.  Instead, we should jump
from set bit to set bit.
Suggested by Bruno Haible.

* modules/bitset: Depend upon ffsl.
* lib/bitset/base.h (bitset_ffs, BITSET_FOR_EACH_BIT): New.
* lib/bitset/array.c (abitset_list): Use BITSET_FOR_EACH_BIT.
2020-11-15 18:00:21 +01:00
Akim Demaille af5ea0f599 bitset: comment changes
* lib/bitset.c: Move some documenting comments to...
* lib/bitset.h: here.
* lib/bitset/array.c: Fix some comments.
2020-11-15 13:53:25 +01:00
Akim Demaille 670f259f1e bitset: use the attribute module
* modules/bitset: Depend on 'attribute'.
* lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
* lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
* lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
2020-05-09 15:12:57 +02:00
Paul Eggert 2cdc1bafb2 maint: Run 'make update-copyright' 2019-12-31 16:02:16 -08:00
Paul Eggert 9e78024bad Update some URLs
This is a clerical change that mostly changes http: to https: in URLs
where either will work.  It also updates some URLs that have moved,
removes some URLs that no longer work, and fixes related text.
2019-09-22 23:25:29 -07:00
Paul Eggert e6633650a2 maint: Run 'make update-copyright' 2019-01-01 00:30:05 +01:00
Akim Demaille de7956e9d9 bitset: new module
* lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
* lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
* lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
* lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
* lib/bitset/vector.h, modules/bitset:
New.
2018-11-25 19:43:56 +01:00