tinygo/cgo
Ayke van Laethem b41e58bcb4 cgo: rename reserved field names like type
This commit renames reserved field names like `type` to `_type`, and in
turn renames those fields as well (recursively). This avoids name
clashes when a C struct contains a field named `type`, which is a
reserved keyword in Go.

For some details, see:
https://golang.org/cmd/cgo/#hdr-Go_references_to_C
2019-11-06 15:54:18 +01:00
..
testdata cgo: rename reserved field names like type 2019-11-06 15:54:18 +01:00
cgo.go cgo: rename reserved field names like type 2019-11-06 15:54:18 +01:00
cgo_test.go cgo: add tests for most C types 2019-11-03 19:15:38 +01:00
const.go cgo: implement the constant parser as a real parser 2019-11-05 14:18:38 +01:00
const_test.go cgo: implement the constant parser as a real parser 2019-11-05 14:18:38 +01:00
libclang.go cgo: rename reserved field names like type 2019-11-06 15:54:18 +01:00
libclang_config.go macos: use llvm@8 instead of just llvm in paths 2019-11-03 21:02:39 +01:00
libclang_stubs.c cgo: add support for bitfields using generated getters and setters 2019-06-03 16:13:19 +02:00
sync.go cgo: refactor; support multiple cgo files in a single package 2019-05-12 10:49:15 +02:00