[Issue 5570] 64 bit C ABI not followed for passing structs and complex numbers as function parameters

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 21 19:48:30 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=5570


thelastmammoth at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thelastmammoth at gmail.com


--- Comment #39 from thelastmammoth at gmail.com 2013-09-21 19:48:09 PDT ---
(In reply to comment #38)
> I don't think the three byte struct issue (see linked bug) has been fixed yet,
> but I haven't checked in a while.

has not been fixed. was going to submit a bug report until I saw this thread.

problem with:

struct VideoMode{
    uint width;
    uint height;
    uint bitsPerPixel;
}
sfWindow* sfWindow_create(sfVideoMode mode, const(char)* title, uint style,
const(ContextSettings)* settings);

This is used in SFML-D https://github.com/krzat/SFML-D, making it unsable on
osx 64bit: the sample program crashes with auto screen = new
RenderWindow(VideoMode(800, 600), "Game", WindowStyle.Default, null); which I
believe is caused by this. 

This leads to a lot of duplication, for example the authors had to duplicate c
bindings just to address this:
https://github.com/Jebbs/DSFML-C where they point to this bug.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list