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

Issue 5487058: code review 5487058: cgo: support export for built-in types

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 6 months ago by mpimenov
Modified:
14 years, 6 months ago
Reviewers:
iant
CC:
dvyukov, rsc, iant, golang-dev
Visibility:
Public.

Description

cgo: support export for built-in types This change doesn't pay attention to structs so they still cannot be exported, see Issue 2552. Fixes Issue 2462.

Patch Set 1 #

Patch Set 2 : diff -r ab293785bbcc https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r ab293785bbcc https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r ab293785bbcc https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r ab293785bbcc https://go.googlecode.com/hg/ #

Total comments: 4

Patch Set 6 : diff -r ab293785bbcc https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r ab293785bbcc https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r ab293785bbcc https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -4 lines) Patch
M misc/cgo/test/Makefile View 1 1 chunk +1 line, -0 lines 0 comments Download
M misc/cgo/test/basic.go View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
A misc/cgo/test/issue2462.go View 1 2 1 chunk +102 lines, -0 lines 0 comments Download
M src/cmd/cgo/out.go View 1 2 3 4 5 3 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 13
mpimenov
I'm not quite sure about aligning, sorting of goTypes's keys and whether we should treat ...
14 years, 6 months ago (2011-12-13 17:13:21 UTC) #1
dvyukov
http://codereview.appspot.com/5487058/diff/5002/src/cmd/cgo/out.go File src/cmd/cgo/out.go (right): http://codereview.appspot.com/5487058/diff/5002/src/cmd/cgo/out.go#newcode585 src/cmd/cgo/out.go:585: "rune": {Size: 4, Align: 4, C: c("int")}, Shouldn't it ...
14 years, 6 months ago (2011-12-13 17:16:45 UTC) #2
mpimenov
http://codereview.appspot.com/5487058/diff/5002/src/cmd/cgo/out.go File src/cmd/cgo/out.go (right): http://codereview.appspot.com/5487058/diff/5002/src/cmd/cgo/out.go#newcode585 src/cmd/cgo/out.go:585: "rune": {Size: 4, Align: 4, C: c("int")}, On 2011/12/13 ...
14 years, 6 months ago (2011-12-13 17:32:29 UTC) #3
rsc
http://codereview.appspot.com/5487058/diff/5002/src/cmd/cgo/out.go File src/cmd/cgo/out.go (right): http://codereview.appspot.com/5487058/diff/5002/src/cmd/cgo/out.go#newcode652 src/cmd/cgo/out.go:652: return &Type{Size: 3 * p.PtrSize, Align: p.PtrSize, C: c("GoInterface")} ...
14 years, 6 months ago (2011-12-13 22:03:19 UTC) #4
mpimenov
Hello dvyukov@google.com, rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years, 6 months ago (2011-12-14 08:15:22 UTC) #5
mpimenov
Looks like this part of contribution guidelines is wrong: You will probably revise your code ...
14 years, 6 months ago (2011-12-14 08:16:50 UTC) #6
rsc
On Wed, Dec 14, 2011 at 03:16, <mpimenov@google.com> wrote: > Looks like this part of ...
14 years, 6 months ago (2011-12-14 14:40:38 UTC) #7
mpimenov
No, I didn't. But iirc first time I mailed it from codereview site and second ...
14 years, 6 months ago (2011-12-14 15:29:47 UTC) #8
rsc
On Wed, Dec 14, 2011 at 10:29, Maxim Pimenov <mpimenov@google.com> wrote: > No, I didn't. ...
14 years, 6 months ago (2011-12-14 15:30:51 UTC) #9
mpimenov
Hello dvyukov@google.com, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 6 months ago (2011-12-16 15:31:54 UTC) #10
rsc
Looks fine to me. Ian wrote the export support originally, so leaving for him.
14 years, 6 months ago (2011-12-16 15:48:43 UTC) #11
iant
LGTM
14 years, 6 months ago (2011-12-20 17:28:30 UTC) #12
iant
14 years, 6 months ago (2011-12-20 17:28:48 UTC) #13
*** Submitted as http://code.google.com/p/go/source/detail?r=ce82818e2d45 ***

cgo: support export for built-in types
This change doesn't pay attention to structs
so they still cannot be exported, see Issue 2552.

Fixes Issue 2462.

R=dvyukov, rsc, iant
CC=golang-dev
http://codereview.appspot.com/5487058

Committer: Ian Lance Taylor <iant@golang.org>
Sign in to reply to this message.

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