Aditya Siram

Results 138 comments of Aditya Siram

I've just uploaded [c2hs 0.28.3](http://hackage.haskell.org/package/c2hs-0.28.3). It uses [language-c-0.7.1](http://hackage.haskell.org/package/language-c) which has a fix for [the _Float128 bug](https://github.com/visq/language-c/blob/master/ChangeLog#L5). There's a test case in place but if someone could try it and let...

I am able to reproduce but I haven't had time to investigate why it's happening. `_Float128` parses in this context: ``` extern int __fpclassifyf128 (_Float128 __value) __attribute__ ((__nothrow__ , __leaf__))...

I've looked into this a fair bit and adding the feature itself shouldn't be hard, I'm thinking about a syntax like: ``` {#pointer *archive as ArchivePtr foreign cfinalizer archive_free #}...

This is happening because currently `c2hs` ignores all `aligned` (and `packed`) GNU specific attributes. In this particular case `1` is accidentally correct because 384 is a multiple of 64 and...

Yes absolutely, the addition would start where we calculate [struct and struct field alignments and sizes](https://github.com/deech/c2hs/blob/6c54658cfc860a5ca53513efda794f11c18a21e7/src/C2HS/Gen/Bind.hs#L2571-L2582) and affect calculations downstream of that. The GNU specific `packed` and `aligned` attributes are...

Yet another option is to generate a C file that includes the header and print the values we need using the builtin `sizeof`, `alignof` and `offsetof`. We do this currently...

@Kleidukos Are you still interested in working on this issue? I'm happy to help you with it.

Cool! Send an email to the last maintainer address listed on the [Hackage page](https://hackage.haskell.org/package/c2hs) and we can set up a time to jump on a call and we can talk...

I started a small [repo](https://github.com/deech/alignmentattributes) to capture and run alignment and sizeof test cases, feel free to fork it and add more. Once the feature is complete we can port...