Ian Lance Taylor
87cbf8c341
[Go] #2245 Handle NULL pointers for string* conversions.
...
Rearrange generation of director methods and rename
receiver argument from p to swig_p.
Fixes #2245
2022-07-05 17:00:48 -07:00
Corey Minyard
3cc67d42f3
[Go] Add a test for godirectorin with const char **
...
This exercises a bug that was found with this fairly complex mapping, it
wasn't putting newlines in the proper place. A previous commit added
the newlines, this makes sure it doesn't happen again.
Signed-off-by: Corey Minyard <cminyard@mvista.com>
2022-04-18 19:55:34 -05:00
Ian Lance Taylor
27bdbc1f05
swig -go: treat non-const references as pointers
...
Also clean up the handling of int* and int& to convert between the C
type int and the Go type int, which are often different sizes.
Fixes #2210
2022-03-05 21:57:36 -08:00
Ian Lance Taylor
7aafe3d8b2
Fix all Go tests to build with "go build"
...
Tested against Go 1.6 through Go 1.13beta1, and gccgo.
Fixes #1607
2019-08-08 14:30:50 -07:00
Ian Lance Taylor
8a1c09e280
Fix Go tests to run in module mode
...
Stop using relative imports and add a go.mod file.
Tested against Go 1.6 through Go pre-1.13, and gccgo.
2019-04-24 21:43:38 -07:00
Ian Lance Taylor
1addbb46a8
[Go] Add imtype, goin, goout, godirectorin, and godirectorout
...
typemaps, to support writing Go code to convert between types.
2014-09-05 17:54:19 -07:00