On Mon, 22 Feb 2016, Wink Saville wrote:

> What about printing of "long" bit fields? I wonder if there should be an
> option which indicates that bit field types should not include their length.

"long" bit-fields aren't even guaranteed by ISO C to be supported at all; 
portable code must avoid them.  The portable way to print values of 
arbitrary integer types is to cast to intmax_t / uintmax_t and then use 
corresponding formats; that works fine with such bit-fields as well as 
normal types.

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to