[cffi-devel] Re: AW: Bitfields and defcenum

Luís Oliveira luismbo at gmail.com
Wed Feb 1 17:44:20 UTC 2006


"Hoehle, Joerg-Cyril" <Joerg-Cyril.Hoehle at t-systems.com> writes:
>>(defbitfield name (0 sym1 sym2 ...)
> Never thought about it.  But who says bitfields will soon say
> "arbitrary width".  Not everything is a single bit.

Yeah, I thought about that so I don't plan to place any restrictions on
the mask (so the user can use numbers other than 2^n). Only restriction
that might make sense is to check if it's smaller that the canonical
type's size.

-- 
Luís Oliveira
luismbo (@) gmail (.) com
Equipa Portuguesa do Translation Project
http://www.iro.umontreal.ca/translation/registry.cgi?team=pt




More information about the cffi-devel mailing list