On Wed, Jan 23, 2013 at 2:45 PM, Igor Stasenko <siguctua@gmail.com> wrote:
On 21 January 2013 19:55, Ciprian Teodorov <ciprian.teodorov@gmail.com> wrote:
Hi Igor,
as usual after squeaksource restart, i lost my commit rights on the NativeBoost repository...
added again.
Thanks
This time I have a small refactoring in the NBExternalStruct/NBExternalStructFields to enable union support.
Besides that, c unions, I have implemented a first prototype, and now my question for you is: Should I add it in nativeboost (its rightful place
in
my opinion), or should I keep it only as support code for my TalkFFI project(in TalkFFI-runtime)? What do you think?
I think unions will be good addition to NBExternalStruct :)
I have commited an initial version... However I am not sure about the way I compute the type size (wrt alignment). I'm doing this: sizeAlignedTo: anAlign with: aType totalSize := (totalSize alignedTo: anAlign ) max: (aType typeSize alignedTo: anAlign) but I'm not sure if the union size should be aligned, or if that alignement will be done latter one by NB... For the tests I've done it seems to work...
Cheers, Ciprian -- Dr. Ciprian TEODOROV Ingénieur Développement CAO
tél : 06 08 54 73 48 mail : ciprian.teodorov@gmail.com www.teodorov.ro
-- Best regards, Igor Stasenko.
-- Dr. Ciprian TEODOROV Ingénieur Développement CAO tél : 06 08 54 73 48 mail : ciprian.teodorov@gmail.com www.teodorov.ro