]> Cypherpunks repositories - gostls13.git/commit
cgo: use C type void for opaque types if dwarf.Common().Type returns nothing
authorEden Li <eden.li@gmail.com>
Mon, 30 Nov 2009 02:14:39 +0000 (18:14 -0800)
committerRuss Cox <rsc@golang.org>
Mon, 30 Nov 2009 02:14:39 +0000 (18:14 -0800)
commit354b100567e9e75488b13f5a6555bd95f299cd3b
tree467d9310736cbad79be3f509aadfe07926d388d0
parentf9f0184e13f7639824cce12bcc7bc80bc359549c
cgo: use C type void for opaque types if dwarf.Common().Type returns nothing

Ideally, the C name would come from the typedef or pointer that
references the Size<0 type, but we can't easily generate this without
performing a look-ahead to see if any referencing type will become opaque.

Fixes #334.
Fixes #281.

R=rsc
https://golang.org/cl/161056
src/cmd/cgo/gcc.go