From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Fri, 22 Oct 2004 12:51:34 -0400 From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] am I nuts? does 8c support packed structs? In-Reply-To: <5ae212d006c8c514c89c49f0258ebd36@vitanuova.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <5ae212d006c8c514c89c49f0258ebd36@vitanuova.com> Topicbox-Message-UUID: f4014954-eacd-11e9-9e20-41e7f4b1d025 I put padded structs into all the compilers. The pragma is #pragma pack on (or pack yes) to enable it, and pack off (or anything but on and yes) to disable it. #pragma hjdicks will now be ignored like any other unknown pragma. The name hjdicks was a reflection of Ken's frustration at having to put the feature into the compiler at all. It's use (and the use of #pragma pack) is greatly deprecated. Russ