Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2870)

Issue 5672080: code review 5672080: cmd/cgo: bug fixes (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 2 months ago by rsc
Modified:
13 years, 2 months ago
Reviewers:
mattn, albert.strasheim
CC:
golang-dev, r2, r
Visibility:
Public.

Description

cmd/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/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -35 lines) Patch
M doc/go1.html View 1 2 3 4 5 1 chunk +18 lines, -1 line 0 comments Download
M doc/go1.tmpl View 1 2 3 4 5 1 chunk +18 lines, -1 line 0 comments Download
M src/cmd/cgo/ast.go View 1 2 4 chunks +11 lines, -4 lines 0 comments Download
M src/cmd/cgo/doc.go View 1 2 3 4 3 chunks +6 lines, -3 lines 0 comments Download
M src/cmd/cgo/gcc.go View 1 2 7 chunks +26 lines, -9 lines 0 comments Download
M src/cmd/cgo/godefs.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/cgo/main.go View 1 2 3 3 chunks +6 lines, -1 line 0 comments Download
M src/cmd/cgo/out.go View 1 2 5 chunks +10 lines, -7 lines 0 comments Download
M src/cmd/cgo/util.go View 1 1 chunk +5 lines, -1 line 0 comments Download
M src/pkg/debug/dwarf/testdata/typedef.c View 1 2 2 chunks +7 lines, -1 line 0 comments Download
M src/pkg/debug/dwarf/testdata/typedef.elf View 1 2 Binary file 0 comments Download
M src/pkg/debug/dwarf/testdata/typedef.macho View 1 2 5 Binary file 0 comments Download
M src/pkg/debug/dwarf/type.go View 1 2 3 3 chunks +35 lines, -1 line 0 comments Download
M src/pkg/debug/dwarf/type_test.go View 1 2 3 3 chunks +14 lines, -5 lines 0 comments Download

Messages

Total messages: 7
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 2 months ago (2012-02-17 19:14:47 UTC) #1
r2
does go1.tmpl need words about cgo? -rob
13 years, 2 months ago (2012-02-17 20:30:44 UTC) #2
rsc
Hello golang-dev@googlegroups.com, r@google.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 2 months ago (2012-02-18 19:53:39 UTC) #3
r
LGTM http://codereview.appspot.com/5672080/diff/1016/doc/go1.tmpl File doc/go1.tmpl (right): http://codereview.appspot.com/5672080/diff/1016/doc/go1.tmpl#newcode1710 doc/go1.tmpl:1710: The <a href="/cmd/cgo">cgo command</a> In Go 1, the ...
13 years, 2 months ago (2012-02-19 06:01:19 UTC) #4
rsc
*** Submitted as 00a19a04b13e *** cmd/cgo: bug fixes * disallow embedding of C type (Fixes ...
13 years, 2 months ago (2012-02-19 18:32:57 UTC) #5
albert.strasheim
Hello On 2012/02/19 18:32:57, rsc wrote: > *** Submitted as 00a19a04b13e *** > cmd/cgo: bug ...
13 years, 2 months ago (2012-02-20 05:23:21 UTC) #6
mattn
13 years, 2 months ago (2012-02-21 01:11:49 UTC) #7
I also failed to compile go-gtk.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b