summaryrefslogtreecommitdiff
path: root/lib/bitset.c
Commit message (Collapse)AuthorAgeFilesLines
* gnulib-common: update for C2x 2020-12-11 draftPaul Eggert2021-07-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* maint: run 'make update-copyright'Paul Eggert2020-12-311-1/+1
|
* bitset: making debug traces more usefulAkim Demaille2020-11-151-2/+3
| | | | * lib/bitset.c (bitset_print): Print the bitset type in verbose mode.
* bitset: comment changesAkim Demaille2020-11-151-4/+0
| | | | | | * lib/bitset.c: Move some documenting comments to... * lib/bitset.h: here. * lib/bitset/array.c: Fix some comments.
* bitset: use the attribute moduleAkim Demaille2020-05-091-1/+1
| | | | | | | | * 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.
* maint: Run 'make update-copyright'Paul Eggert2019-12-311-1/+1
|
* bitset: let freeing functions accept NULLAkim Demaille2019-10-211-3/+7
| | | | | | | * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if given NULL. * lib/bitset.h: Document that. * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
* Update some URLsPaul Eggert2019-09-221-1/+1
| | | | | | 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.
* bitset: style changesAkim Demaille2019-09-081-1/+1
| | | | | | | * lib/bitset/vector.c (vbitset_resize): Factor computation. * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer xzalloc to xcalloc. Suggested by Paul Eggert.
* maint: Run 'make update-copyright'Paul Eggert2019-01-011-2/+1
|
* bitset: rename ebitset/expandable.* as tbitset/table.*Akim Demaille2018-11-291-4/+4
| | | | | | | | | | See https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html. * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as... * lib/bitset/table.h, lib/bitset/table.c: these. Rename all the ebitset* symbols as tbitset*. Adjust dependencies.
* bitset: rename BITSET_VARRAY as BITSET_VECTORAkim Demaille2018-11-291-4/+4
| | | | | | | | | For consistency with the name of the file. * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h, * lib/bitset/stats.c, lib/bitset/vector.c (BITSET_VARRAY): Rename as... (BITSET_VECTOR): this.
* bitset: new moduleAkim Demaille2018-11-251-0/+480
* 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.