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

Issue 132490043: code review 132490043: runtime: include os_*.h in the generated Go structs (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 6 months ago by rsc
Modified:
10 years, 6 months ago
Reviewers:
gobot, 0intro, iant
CC:
golang-codereviews, iant, 0intro, r
Visibility:
Public.

Description

runtime: include os_*.h in the generated Go structs Adding the #include to defs.c makes it get processed by cmd/dist, which writes out Go equivalent for all the C data structures defined in defs.c. This in turn makes it necessary to define the Plink type, used in os_plan9.h, in os_plan9.go. Rename it to _Plink to avoid being exported.

Patch Set 1 #

Patch Set 2 : diff -r 7786bd1553ab00632e8ea85a78d640eb19c9d490 https://code.google.com/p/go/ #

Patch Set 3 : diff -r 7786bd1553ab00632e8ea85a78d640eb19c9d490 https://code.google.com/p/go/ #

Total comments: 2

Patch Set 4 : diff -r c54b847a8ea324821db3a0ba5a86e7e70896a305 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -5 lines) Patch
M src/pkg/runtime/defs.c View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/runtime/os_plan9.h View 1 1 chunk +5 lines, -5 lines 0 comments Download
M src/pkg/runtime/os_plan9.go View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 7
rsc
Hello golang-codereviews@googlegroups.com (cc: iant, r), I'd like you to review this change to https://code.google.com/p/go/
10 years, 6 months ago (2014-08-30 17:59:59 UTC) #1
iant
https://codereview.appspot.com/132490043/diff/40001/src/pkg/runtime/os_plan9.go File src/pkg/runtime/os_plan9.go (right): https://codereview.appspot.com/132490043/diff/40001/src/pkg/runtime/os_plan9.go#newcode30 src/pkg/runtime/os_plan9.go:30: type _Plink uintptr If _Plink is added to os_plan9.h, ...
10 years, 6 months ago (2014-08-30 21:02:39 UTC) #2
rsc
https://codereview.appspot.com/132490043/diff/40001/src/pkg/runtime/os_plan9.go File src/pkg/runtime/os_plan9.go (right): https://codereview.appspot.com/132490043/diff/40001/src/pkg/runtime/os_plan9.go#newcode30 src/pkg/runtime/os_plan9.go:30: type _Plink uintptr On 2014/08/30 21:02:39, iant wrote: > ...
10 years, 6 months ago (2014-09-01 00:25:22 UTC) #3
0intro
LGTM
10 years, 6 months ago (2014-09-01 06:57:49 UTC) #4
iant
LGTM
10 years, 6 months ago (2014-09-01 18:42:48 UTC) #5
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=9ab3b26a6180 *** runtime: include os_*.h in the generated Go structs Adding the ...
10 years, 6 months ago (2014-09-01 21:25:12 UTC) #6
gobot
10 years, 6 months ago (2014-09-01 21:28:22 UTC) #7
Message was sent while issue was closed.
This CL appears to have broken the windows-amd64-perf builder.
See http://build.golang.org/log/1bf3e70879f219d58dbaea9d1e28b43196a84dec
Sign in to reply to this message.

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