Re: Problem parsing file in 64 bit build.
Re: Problem parsing file in 64 bit build.
- Subject: Re: Problem parsing file in 64 bit build.
- From: Charles Srstka <email@hidden>
- Date: Mon, 07 May 2012 08:06:40 -0500
On May 7, 2012, at 2:28 AM, Quincey Morris wrote:
> On May 7, 2012, at 00:22 , Graham Cox wrote:
>
>> Is using the syntax you suggested considered better form than #pragma,?
>
> I have a vague recollection that #pragma pack was already deprecated in GCC, so __attribute__ ((packed)) might be the more compatible choice, but finding trustworthy, non-out-of-date documentation for compiler options can be a bit of a challenge.
Myself, I like to just spin off a method or function that takes a chunk of data and populates the fields of the struct one by one, instead of writing the data straight onto the struct. A little more code, but you know it’s going to work right without any surprises.
Charles
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden