Greg Horn

Results 67 comments of Greg Horn

(copied here, sorry for the noise:) I have a struct like: ``` C typedef struct { char listOfNames[8][255]; } MyCoolStruct; ``` I would expect that field to translate to type...

It seems to me that the major size is not available, only the total number of elements in the multi array. Is that right? So C2hsc.hs itself needs the patch?

In the meanwhile, my workaround is: ``` C typedef struct { char name[255]; } MyString; typedef struct { MyString stringArray[8]; } MyStruct; ```

Do you think you can find time to take a look at this in the next few weeks? I understand if you're wrapped up in other things. I would greatly...

At work we have a large C/C++ codebase. I have a script which extracts all the relevant typedef structs from this codebase and writes them into one header file. I...

Thank you! There may be a few problems. See my comments here https://github.com/jwiegley/c2hsc/commit/98930351c288b47aa2beb28bc35612cb351937fe

After the fix, the behavior is to turn ``` c typedef struct { char listOfNames[8][255]; } MyCoolStruct; ``` into: ``` haskell data C'MyCoolStruct = C'MyCoolStruct{ c'MyCoolStruct'listOfNames :: [CChar] } deriving...

I don't completely follow this. Are you saying that `bindings-dsl` is generating the `Storable` instance, and there is no interface which lets `c2hsc` do what I want? So there is...

BTW did you see the other two comments? The module name problem https://github.com/jwiegley/c2hsc/commit/98930351c288b47aa2beb28bc35612cb351937fe#commitcomment-13723380 and the top level array typedef problem https://github.com/jwiegley/c2hsc/commit/98930351c288b47aa2beb28bc35612cb351937fe#commitcomment-13723516 ?