From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] structure allocation. From: C H Forsyth Date: Tue, 7 Mar 2006 14:48:45 +0000 In-Reply-To: <3f38cde4f92c35abc95123c9d54f97e4@cat-v.org> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 0da594ac-ead1-11e9-9d60-3106f5b1d025 > If I recall correctly #pragma pack used to be #pragma hjdicks, > I liked better the old name. Damned political correctness. better still is just to forget about it and not use it. there is little point to it since it will trap on enough platforms to make it useless in portable code. the one minor thing it does that won't trap in some cases (changing the rounding size for structs, provided they are never put in an array) can be done other ways. use it only in similar ways to those originally intended: you've got a big lump of imported protocol code that's made unfortunate assumptions and you've got an architecture that won't trap unaligned accesses, and the ends justify the means.