As noted in #186 the use of C.Cstring in conjunction with pybindgen leads to storage leaks. This CL attempts at fixing those by patching the output of pybindgen to call free on the leaked strings.
NOTE, that I plan to look at pybindgen to add an option to it so that it can generate the correct code. In the meantime, I think this change is useful to have since it makes the generated code much more usable.
Fixes#186.
Adds support for pointers to slices as output parameters:
type StrVector []string
func Fill (out *StrVector) {
*out = []string{A, B}
}
Co-authored-by: Ondřej Herman <xherman1@fi.muni.cz>
Co-authored-by: Pavel Rychlý <pary@fi.muni.cz>
Adds support for changing the names of methods and
functions in the generated Python library. For example,
the following function will be available as under the name
`hello`:
//gopy:name hello
func Hello() string { return Hello }
Co-authored-by: Ondřej Herman <xherman1@fi.muni.cz>
Co-authored-by: Pavel Rychlý <pary@fi.muni.cz>
- Provision to auto-generate / verify support matrix from tests.
- Wrap around long lines > 80 characters in README.md.
Change-Id: Ice93fef8233e8cbc1566e17ae06b51bf79fd43eb
- Provision to auto-generate / verify support matrix from tests.
- Wrap around long lines > 80 characters in README.md.
- Also adding a .gitignore files excluding some temporary files of vim
editor.
Change-Id: Ice93fef8233e8cbc1566e17ae06b51bf79fd43eb