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

Issue 6131060: code review 6131060: cgo: rename C names for Go types to avoid conflicting w... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 10 months ago by iant
Modified:
12 years, 10 months ago
Reviewers:
CC:
rsc, bsiegert, r2, mtj1, iant2, golang-dev
Visibility:
Public.

Description

cgo: rename C names for Go types to avoid conflicting with package Fixes issue 3371.

Patch Set 1 #

Total comments: 2

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -27 lines) Patch
M src/cmd/cgo/out.go View 1 2 3 chunks +33 lines, -27 lines 0 comments Download

Messages

Total messages: 14
iant
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 10 months ago (2012-05-01 00:06:46 UTC) #1
bsiegert
These typedefs Look Gross To Me. --Benny.
12 years, 10 months ago (2012-05-01 09:43:58 UTC) #2
r2
Is it feasible to write C that looks like C any more? I guess that ...
12 years, 10 months ago (2012-05-01 10:05:07 UTC) #3
mtj1
...and Steve Bourne was its captain. On Tue, May 1, 2012 at 6:05 AM, Rob ...
12 years, 10 months ago (2012-05-01 11:42:58 UTC) #4
r2
On Tue, May 1, 2012 at 9:42 PM, Michael Jones <mtj@google.com> wrote: > ...and Steve ...
12 years, 10 months ago (2012-05-01 11:54:58 UTC) #5
mtj1
I did not say that he besmirched C, or that his code is bad, only ...
12 years, 10 months ago (2012-05-01 12:06:15 UTC) #6
mtj1
...oh, and to be clear, the lore is fascinating! Thanks! On Tue, May 1, 2012 ...
12 years, 10 months ago (2012-05-01 12:07:30 UTC) #7
iant2
Rob 'Commander' Pike <r@google.com> writes: > Is it feasible to write C that looks like ...
12 years, 10 months ago (2012-05-01 13:19:49 UTC) #8
rsc
http://codereview.appspot.com/6131060/diff/1/src/cmd/cgo/out.go File src/cmd/cgo/out.go (right): http://codereview.appspot.com/6131060/diff/1/src/cmd/cgo/out.go#newcode453 src/cmd/cgo/out.go:453: switch unsafe.Sizeof(0) { This assumes that the cgo binary ...
12 years, 10 months ago (2012-05-01 13:56:04 UTC) #9
iant
Before I read the last comment I realized that the attribute stuff is irrelevant for ...
12 years, 10 months ago (2012-05-01 14:05:22 UTC) #10
rsc
LGTM On Tue, May 1, 2012 at 10:05, <iant@golang.org> wrote: > Just using "int", etc., ...
12 years, 10 months ago (2012-05-01 14:12:03 UTC) #11
iant2
Russ Cox <rsc@golang.org> writes: > LGTM > > On Tue, May 1, 2012 at 10:05, ...
12 years, 10 months ago (2012-05-01 16:00:05 UTC) #12
iant
*** Submitted as http://code.google.com/p/go/source/detail?r=d063a7844d48 *** cgo: rename C names for Go types to avoid conflicting ...
12 years, 10 months ago (2012-05-01 16:04:25 UTC) #13
rsc
12 years, 10 months ago (2012-05-01 16:24:15 UTC) #14
On Tue, May 1, 2012 at 12:00, Ian Lance Taylor <iant@google.com> wrote:
> No, it fails.  In misc/cgo/test I get
>
> exports.go:10:23: unrecognized Go type int
> exports.go:10:23: unrecognized Go type int
> issue1560.go:30:24: unrecognized Go type int
> issue1560.go:30:24: unrecognized Go type int
> issue2462.go:30:18: unrecognized Go type int
> issue2462.go:30:18: unrecognized Go type int
> issue2462.go:35:19: unrecognized Go type uint
> issue2462.go:35:19: unrecognized Go type uint

Thanks.  I created issue 3585 so I remember to come back and understand this.

Russ
Sign in to reply to this message.

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