Postprocessing changes #201
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
java
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
java-gi/java-gi!201
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "postprocessing-changes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR merges a lot of the code that handles return values and out-parameters (take ownership, free native memory, check for null, etc). This code is now done in post-processing statements for both return values and out-parameters. As a result, all return values are now stored in a
_returnValuevariable before being returned. The post-processing statements (if any) are generated between those lines.This not only improves the code generator internally (the MethodGenerator is now a lot simpler) but it also fixes bugs because out-parameters didn't always free native memory when they should.
soup_form_decode_multipartis an example of this, that should now be fixed.