Closed GoogleCodeExporter closed 9 years ago
Sorry for the grammar error in the title ... :/
Original comment by mrc....@gmail.com
on 18 Dec 2008 at 11:01
Thank you for your valuable input.
Now I understand GNU __alignof__ returns *recommended* alignment of a type. :o
I have fixed it and trunk directory is updated to revision r326.
New version uses ANSI C offsetof macro as you suggested. :)
Please try. Thank you!
-- fujita
$ uname -a
Linux ubuntu-core2 2.6.24-22-generic #1 SMP Mon Nov 24 18:32:42 UTC 2008 i686
GNU/Linux
$ ypsilon
Ypsilon 0.9.6-trunk/r326 Copyright (c) 2008 Y.Fujita, LittleWing Company
Limited.
> (import (ffi))
> alignof:short
2
> alignof:int
4
> alignof:long
4
> alignof:void*
4
> alignof:float
4
> alignof:double
4
> alignof:int8_t
1
> alignof:int16_t
2
> alignof:int32_t
4
> alignof:int64_t
4
Original comment by y.fujita...@gmail.com
on 19 Dec 2008 at 11:24
New version 0.9.6-update3 has released and I close this issue. Thank you again!
-- fujita
Original comment by y.fujita...@gmail.com
on 23 Dec 2008 at 10:24
Original issue reported on code.google.com by
mrc....@gmail.com
on 18 Dec 2008 at 10:58