cgo: add support for anonymous structs

This commit is contained in:
Ayke van Laethem
2019-06-02 16:22:27 +02:00
committed by Ron Evans
parent 1047c9bd05
commit 0ce4d90779
4 changed files with 125 additions and 83 deletions
+12 -1
View File
@@ -27,11 +27,22 @@ typedef struct collection {
unsigned char c;
} collection_t;
struct point {
struct point2d {
int x;
int y;
};
typedef struct {
int x;
int y;
} point2d_t;
typedef struct {
int x;
int y;
int z;
} point3d_t;
// linked list
typedef struct list_t {
int n;