Aucbvax.5152
fa.unix-wizards
utzoo!decvax!ucbvax!unix-wizards
Thu Nov 12 22:54:04 1981
unnamed bit fields
>From MBM@MIT-XX Thu Nov 12 22:16:30 1981
These dont seem to me to work (Bell v7 compiler).
My impression is that I should be able to say
struct { int x : 2; :2; :0; int y; }
where the :2 with no identifer pads 2 unused bits and
the :0 pads to the next word. However, the compiler is
not pleased. It accepts named bit fields fine though.
I cant find an example of their use; can someone
enlighten me?
--mike
-------
-----------------------------------------------------------------
gopher://quux.org/ conversion by John Goerzen <
[email protected]>
of
http://communication.ucsd.edu/A-News/
This Usenet Oldnews Archive
article may be copied and distributed freely, provided:
1. There is no money collected for the text(s) of the articles.
2. The following notice remains appended to each copy:
The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996
Bruce Jones, Henry Spencer, David Wiseman.