]> git.saurik.com Git - bison.git/commit - src/Sbitset.h
portability: don't assume 8-bit bytes.
authorJoel E. Denny <jdenny@clemson.edu>
Fri, 16 Oct 2009 23:20:43 +0000 (19:20 -0400)
committerJoel E. Denny <jdenny@clemson.edu>
Fri, 16 Oct 2009 23:30:31 +0000 (19:30 -0400)
commit175620d3c65209ce72e451bd75756f6bb67e33a1
tree3576b9f6919b236e564ec87ac013cd4aa764f1f3
parent786578e394700615f6a841614e1280bf6284ec8c
portability: don't assume 8-bit bytes.

That is, use CHAR_BIT and UCHAR_MAX instead of 8 and 0xff.
* src/Sbitset.h (Sbitset__nbytes): Here.
(Sbitset__byteAddress): Here.
(Sbitset__bit_mask): Here.
(Sbitset__last_byte_mask): Here.
(Sbitset__ones): Here.
(SBITSET__FOR_EACH): Here.
ChangeLog
src/Sbitset.h