🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5764

Re: Initialized bitfileds - help me read

#5764
From: Karl Heuer
Date: Fri, 17 Mar 1989 00:45
14 lines
1248 bytes
In <1989Mar15.165019.21562@utzoo.uucp> utzoo!henry (Henry Spencer) writes:
>In <13363@steinmetz.ge.com> crdos1!davidsen (bill davidsen) writes:
>>Are there any *standard* caveats about bitfield initialization? ...
>
>One:  many old compilers won't do it, or don't do it correctly.

Since Bill posted to comp.std.c and referenced the (d)pANS, I presume that old
(in the sense of pre-ANSI) compilers are not the issue.  On the other hand,
since he didn't post some sample code and output, I'm also not sure what the
problem is.  The only such bitfield confusion I know of offhand concerns the
rules for structs that have unnamed bitfields.  Is that what we're talking
about?

Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint
Technical Details
Message-ID: <12084@haddock.ima.isc.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!decvax!ima!haddock!karl
References: <13363@steinmetz.ge.com> <1989Mar15.165019.21562@utzoo.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!decvax!ima!haddock!karl
From: karl@haddock.ima.isc.com (Karl Heuer)
Newsgroups: comp.std.c
Subject: Re: Initialized bitfileds - help me read
Message-ID: <12084@haddock.ima.isc.com>
Date: 17 Mar 89 00:45:25 GMT
References: <13363@steinmetz.ge.com> <1989Mar15.165019.21562@utzoo.uucp>
Reply-To: karl@haddock.ima.isc.com (Karl Heuer)
Organization: Interactive Systems, Boston
Lines: 14