Introduce some new helpers to declare and allocate a dynamic bitset, whose
size is not a constant.
Sponsored by: Citrix Systems R&D
Differential D6226
bitset: introduce helpers to allocate a bitset at runtime royger on May 5 2016, 3:36 PM. Authored by Tags None Referenced Files
Subscribers
Details
Introduce some new helpers to declare and allocate a dynamic bitset, whose Sponsored by: Citrix Systems R&D
Diff Detail
Event TimelineComment Actions I would only put BITSET_DEFINE_VAR in _bitset.h (unfortunate to have to split it, but the idea is that _foo.h is the minimum to let you define types so it can be used as a nested include). I think you don't need BITSET_FREE(). It's not unusual for APIs to return data that the caller knows has to be freed with free() (e.g. strdup() in userland).
|