Descriptioncmd/cgo: bug fixes
* disallow embedding of C type (Fixes issue 2552)
* detect 0-length array (Fixes issue 2806)
* use typedefs when possible, to avoid attribute((unavailable)) (Fixes issue 2888)
* print Go types constructed from C types using original C types (Fixes issue 2612)
This fix changes _cgo_export.h to repeat the preamble from import "C".
Otherwise the fix to issue 2612 is impossible, since it cannot refer to
types that have not been defined. If people are using //export and
putting non-header information in the preamble, they will need to
refactor their code.
Patch Set 1 #Patch Set 2 : diff -r 2dc817ab3653 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 2dc817ab3653 https://go.googlecode.com/hg/ #Patch Set 4 : diff -r 2dc817ab3653 https://go.googlecode.com/hg/ #Patch Set 5 : diff -r ea45ac88790b https://code.google.com/p/go/ #
Total comments: 1
Patch Set 6 : diff -r 905d1abee14b https://code.google.com/p/go/ #
MessagesTotal messages: 7
|