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

Issue 1734047: code review 1734047: cgo: various bug fixes (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 10 months ago by rsc
Modified:
13 years, 10 months ago
Reviewers:
CC:
r, dho, golang-dev, iant
Visibility:
Public.

Description

cgo: various bug fixes * remember #defined names, so that C.stdout can refer to the real name (on OS X) __stdoutp. * better handling of #defined constant expressions * allow n, err = C.strtol("asdf", 0, 123) to get errno as os.Error * write all output files to current directory * don't require gcc output if there was no input Fixes issue 533. Fixes issue 709. Fixes issue 756.

Patch Set 1 #

Patch Set 2 : code review 1734047: cgo: various bug fixes #

Patch Set 3 : code review 1734047: cgo: various bug fixes #

Patch Set 4 : code review 1734047: cgo: various bug fixes #

Patch Set 5 : code review 1734047: cgo: various bug fixes #

Total comments: 8

Patch Set 6 : code review 1734047: cgo: various bug fixes #

Patch Set 7 : code review 1734047: cgo: various bug fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1320 lines, -731 lines) Patch
M misc/cgo/stdio/Makefile View 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
A misc/cgo/stdio/align.go View 2 3 4 1 chunk +78 lines, -0 lines 0 comments Download
M misc/cgo/stdio/chain.go View 2 chunks +2 lines, -2 lines 0 comments Download
M misc/cgo/stdio/fib.go View 1 chunk +1 line, -1 line 0 comments Download
M misc/cgo/stdio/file.go View 1 2 3 4 1 chunk +11 lines, -13 lines 0 comments Download
M misc/cgo/stdio/hello.go View 1 2 3 4 1 chunk +20 lines, -3 lines 0 comments Download
A misc/cgo/stdio/test.go View 5 1 chunk +91 lines, -0 lines 0 comments Download
M src/cmd/cgo/ast.go View 1 2 3 4 5 4 chunks +326 lines, -291 lines 0 comments Download
M src/cmd/cgo/doc.go View 1 1 chunk +13 lines, -0 lines 0 comments Download
M src/cmd/cgo/gcc.go View 1 2 3 4 5 17 chunks +371 lines, -132 lines 0 comments Download
M src/cmd/cgo/main.go View 1 2 3 4 5 3 chunks +159 lines, -77 lines 0 comments Download
M src/cmd/cgo/out.go View 1 2 3 4 5 6 12 chunks +210 lines, -201 lines 0 comments Download
M src/cmd/cgo/util.go View 2 chunks +35 lines, -10 lines 0 comments Download

Messages

Total messages: 5
rsc
Hello r (cc: dho, golang-dev@googlegroups.com, iant), I'd like you to review this change.
13 years, 10 months ago (2010-07-13 21:37:11 UTC) #1
r
LGTM i've asked for more doc-style comments. this code is unusual enough to deserve them. ...
13 years, 10 months ago (2010-07-13 22:44:03 UTC) #2
rsc
added comments will test again and submit shortly
13 years, 10 months ago (2010-07-14 20:34:26 UTC) #3
r2
much better. thanks. LGTM
13 years, 10 months ago (2010-07-14 20:36:39 UTC) #4
rsc
13 years, 10 months ago (2010-07-15 00:17:56 UTC) #5
*** Submitted as http://code.google.com/p/go/source/detail?r=8983152ecd85 ***

cgo: various bug fixes

* remember #defined names, so that C.stdout can refer
  to the real name (on OS X) __stdoutp.
* better handling of #defined constant expressions
* allow n, err = C.strtol("asdf", 0, 123) to get errno as os.Error
* write all output files to current directory
* don't require gcc output if there was no input

Fixes issue 533.
Fixes issue 709.
Fixes issue 756.

R=r
CC=dho, golang-dev, iant
http://codereview.appspot.com/1734047
Sign in to reply to this message.

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