cgo: implement C.struct_ types

These types (called elaborated types in C) are used as part of linked
lists, among others.

This is part an extra feature (to be compatible with CGo C.struct_
types) and part a bugfix: linked lists would result in endless recursion
leading to a stack overflow.
This commit is contained in:
Ayke van Laethem
2019-04-20 02:39:31 +02:00
committed by Ron Evans
parent b716cf1afd
commit 21a4c14e86
5 changed files with 89 additions and 13 deletions
+3
View File
@@ -24,3 +24,6 @@ union local data: 5 8 1
union s method: -33 false
union f: +6.280000e+000
union field: +6.280000e+000
n in chain: 3
n in chain: 6
n in chain: 7