porting C code
peter at engcorp.com
Fri Jan 14 02:16:04 CET 2005
Lucas Raab wrote:
> I have the
> statement: "typedef unsigned long int word32" and later on: "word32
> b" referencing the third bit of the integer.
If that's really exactly what you have, then you actually have
something defining an array of three unsigned long integers
named "b". And even if you didn't have precisely "word32 b",
but merely a "b" reference somewhere, it would be referencing
the third element of an array called "b", which is possibly a byte,
maybe a long, but definitely not a bit.
Maybe showing it as code rather than inline in your text
would avoid the possibility of confusion.
More information about the Python-list