Define __CHAR_BIT__
commit67a7f893b14526002afc0b478a744cfb4acbfebe
authorEmilio G. Cota <cota@braap.org>
Wed, 8 Jan 2014 21:32:42 +0000 (8 16:32 -0500)
committerChristopher Li <sparse@chrisli.org>
Wed, 29 Jan 2014 23:47:44 +0000 (29 15:47 -0800)
treead8988aca5ae306dcd892043e3a0f37d1a97c948
parent66b24573e9cb5eaa0c41dc4164f81f3b83b9cb41
Define __CHAR_BIT__

gcc defines __CHAR_BIT__ as a pre-defined macro.

Define __CHAR_BIT__ in sparse so that code that needs it (e.g. code
using CHAR_BIT from limits.h) does not generate false warnings.

Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Christopher Li <sparse@chrisli.org>
lib.c
validation/builtin_char_bit.c [new file with mode: 0644]