From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Nielsen To: 9fans@cse.psu.edu Subject: Re: [9fans] struct problems Message-ID: <20030507054149.GA36080@cassie.foobarbaz.net> References: <20030507053411.GZ36080@cassie.foobarbaz.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.3i Date: Tue, 6 May 2003 22:41:49 -0700 Topicbox-Message-UUID: a102900c-eacb-11e9-9e20-41e7f4b1d025 Doh! I should know that bit fields aren't portable. No, I'm not sure; in fact, I'm pretty sure they won't work across platforms. I didn't think about that. I'll come up with a different method that _is_ portable. Thanks. On Wed, May 07, 2003 at 06:36:51AM +0100, Nigel Roles wrote: > structs and unions are aligned on 4 byte boundaries. > bit fields are never portable. are you sure they will > work on any Plan 9 platform (not just x86)? -- Christopher Nielsen "They who can give up essential liberty for temporary safety, deserve neither liberty nor safety." --Benjamin Franklin