-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
struct testing... #1
Comments
I just pushed 3 patches to your branch. Have noticed the following issues:
Since they refer to the @ctypedef macro, it will be good to have the macro definitions available in a separate file that I can include directly, instead of generating the same in lC_common.h
|
Output on my machine:
|
This is great, Thank you! I won't be able to work on this until tonight, but the first two are definitely addressable. The third one is a little tricky because for now I would rather avoid pulling in every single typedef in all of the unrelated headers, but eventually I think I make the generator figure out which ones used. |
In case you are interested in trying to push this further with structs, I pushed a branch with generated Julia types for all the cURL structs (I didn't merge this stuff into the generator yet, needs a few tweaks still for more complicated structs):
https://github.com/ihnorton/libCURL.jl/tree/struct_test
There are (at least) three structs with unsupported field types (you can tell by searching for ::Void):
CURLMsg
curl_fileinfo
curl_sockaddr
If you need these, it will be necessary to use StrPack as discussed by @pao (https://groups.google.com/d/msg/julia-dev/p6DUUSdtY2A/CR3zeC3QyeIJ)
Also, for the other ones you may need to change "type" to "immutable" in the declarations in order to make sure isbits(type) == true (see: https://groups.google.com/d/msg/julia-dev/jiJpHlgLZkA/ftClOEROlLYJ )
If you have a chance to try it I will be very interested to see the results! (also any issues)
The text was updated successfully, but these errors were encountered: