]> diplodocus.org Git - nmh/commit
sbr/vector.c: Only allocate bvector storage for set bits.
authorRalph Corderoy <ralph@inputplus.co.uk>
Fri, 28 Apr 2017 11:45:26 +0000 (12:45 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Fri, 28 Apr 2017 11:45:26 +0000 (12:45 +0100)
commit4d3c5111a2a7716e957547cb80a1efe7accabf6f
tree67ee80f1aad792f24d8eff2a5d033a5239b143ce
parentd7b80252561bfbdaacf37e6026e74690a08c2c9c
sbr/vector.c: Only allocate bvector storage for set bits.

Now that a pointer to all the bit storage doesn't escape vector.c,
there's no need to allocate storage, that's initialised to 0, just to
then clear a bit in it.  Only extend the bits's storage for set bits.
Remove the unused initial size parameter from bvector_create() as it
simplifies the implementation.
h/mh.h
sbr/folder_read.c
sbr/folder_realloc.c
sbr/vector.c
uip/sortm.c