Bug#864358: ITP: bitfield -- bit array manipulation library
Hi!
On Wed, 2017-06-07 at 23:13:33 +0900, Vitalie Ciubotaru wrote:
> Package: wnpp
> Severity: wishlist
> Owner: Vitalie Ciubotaru <vitalie@ciubotaru.tk>
>
> * Package name : bitfield
> Version : 0.6.3
> Upstream Author : Vitalie Ciubotaru <vitalie@ciubotaru.tk>
> * URL : https://github.com/ciubotaru/bitfield
> * License : GPL
> Programming Lang: C
> Description : bit array manipulation library
>
> bitfield is a library of functions for creating, modifying and destroying bit
> fields (or bit arrays), i.e. series of zeroes and ones spread across an array of
> storage units (unsigned long integers).
>
> Bit array is a simple data structure used in a wide range of software (starting
> from Linux kernel), yet there is no library that would provide this
> functionality, so every package has to reinvent the wheel.
Well, obviously not entirely as complete but the BSDs (and libbsd
otherwise) do have something like <sys/bitstring.h>.
BTW, I noticed when I checked the implementation that you are using
HAVE_BITFIELD_H as the header macro protector, but that's actually a
bad idea, as with the typical autoconf based build-system that macro
will already be defined if the build-system does something like
AC_CHECK_HEADERS([bitfield.h]), which means the contents will be
secluded.
Thanks,
Guillem
Reply to: