cgo: improve typedef/struct/enum support

Typedefs are now Go type aliases. And C.struct_ and C.union_ prefixed
records work correctly now, even when they're not in a typedef.
This commit is contained in:
Ayke van Laethem
2019-04-27 23:06:45 +02:00
committed by Ron Evans
parent 4bd1b9e53d
commit 35af33ead7
5 changed files with 88 additions and 64 deletions
+2 -1
View File
@@ -24,9 +24,10 @@ union s: 22
union f: +3.140000e+000
union global data: 5 8 1
union local data: 5 8 1
union s method: -33 false
union s: true
union f: +6.280000e+000
union field: +6.280000e+000
struct: 3 5
n in chain: 3
n in chain: 6
n in chain: 7