codegen: Fix nullable array in function params#1551
codegen: Fix nullable array in function params#1551bilelmoussaoui wants to merge 1 commit intomainfrom
Conversation
Co-authored-by: Andy Russell <arussell123@gmail.com> Fixes #1133
|
Ok seems like gir doesn't give us a way to know if the array is zero-terminated or not...that makes it more difficult |
Why? That seems like the correct thing to do, even if it's inconvenient.
It's an attribute in the XML though. |
I know, but it is not parsed nor passed around... |
Uh... what?! 🤣 We assume always that it's zero-terminated unless there is an array length? |
|
Any chance of getting forward on this? This prevents certain features from being used at all. (For example: user scripts & stylesheets in the webkit6 crate. I needed to make local changes to the generated code in order to use those.) |
Co-authored-by: Andy Russell arussell123@gmail.com
Fixes #1133
Take over of #1136 except it only generates Option if it is not a return type. To avoid generating
Option<Vec<T>>