-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Not parsing/handling array specific GIR fields (length parameter position, zero-terminated) #376
Comments
I'm not sure how to get this information from src/parser.rs to analysis/codegenerator. Would I just parse them and store them in the library::Parameter type as additional fields of types Option / Option, and then pass those through the different layers? For the length parameter position it would then be needed in the code generator to handle two cases:
For the zero-terminated parameter, it only affects the code generator inside the function body and it needs to make sure to
|
IMHO normal to store |
Thanks for the pointers. The problem with all these is that they always require copying, which is not always required. But I guess that's for a later time then. Let's first make it work automatically at all ;) |
While implementing all that, should probably also add a mapping for C arrays of gchar/guchar/guint8 and similar. |
Yes, that would be great |
Still working on this btw, just busy with other things at the same time and this requires some minor code reorganization so that function_body_chunk can get all the information where it's needed :) |
Only pointer typed array elements are supported for now. gtk-rs#376
Only pointer typed array elements are supported for now. gtk-rs#376
See e.g. https://wiki.gnome.org/action/show/Projects/GObjectIntrospection/Annotations#Array_length for an example with parameter position (the GIR does not contain the parameter name but its position).
The text was updated successfully, but these errors were encountered: