Re: Encapsulate C struct/toll-free bridging?
Re: Encapsulate C struct/toll-free bridging?
- Subject: Re: Encapsulate C struct/toll-free bridging?
- From: Clark Cox <email@hidden>
- Date: Tue, 9 Mar 2004 18:12:56 -0500
On 2004/03/09, at 12:43, David Bainbridge wrote:
>
This looks very interesting.. I may not be able to take full
>
advantage of this because the data structure is coming from a
>
codewarrior project that is mac68k aligned... and as a pascal record
>
(gasp!).. I currently have a C struct that is identical to the pascal
>
record which are both mac68k aligned. I could however change the
>
record so that it will have room for the isa pointer, but what
>
alignment should the record/struct be so that it matches exactly what
>
the obj-c runtime expects?
Alignment is irrelevant with respect to the isa pointer, as C (and
therefore Objective-C) guarantees that there is no padding before the
first structure member.
--
Clark S. Cox III
email@hidden
http://homepage.mac.com/clarkcox3/
http://homepage.mac.com/clarkcox3/blog/B1196589870/index.html
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.