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

Issue 52250043: code review 52250043: go.tools/ssa/interp: fix windows build. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 5 months ago by adonovan
Modified:
11 years, 5 months ago
Reviewers:
minux1, brainman, gri
CC:
gri, minux1, brainman, golang-codereviews
Visibility:
Public.

Description

go.tools/ssa/interp: fix windows build. - Add missing import. - platform-specific files syswrite() wrapper presents standard API to syscall.Write, even on Windows where first arg is a Handle. Fixes issue 7100

Patch Set 1 #

Patch Set 2 : diff -r 1f31ae4fe683 https://code.google.com/p/go.tools #

Patch Set 3 : diff -r 1f31ae4fe683 https://code.google.com/p/go.tools #

Total comments: 1

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

Total comments: 1

Patch Set 5 : diff -r 1f31ae4fe683 https://code.google.com/p/go.tools #

Total comments: 2

Patch Set 6 : diff -r 1f31ae4fe683 https://code.google.com/p/go.tools #

Patch Set 7 : diff -r 732451e4158d https://code.google.com/p/go.tools #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -2 lines) Patch
M ssa/interp/external_plan9.go View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M ssa/interp/external_unix.go View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M ssa/interp/external_windows.go View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M ssa/interp/ops.go View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 18
adonovan
Hello gri@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.tools
11 years, 5 months ago (2014-01-14 20:45:07 UTC) #1
minux1
https://codereview.appspot.com/52250043/diff/40001/ssa/interp/external_windows.go File ssa/interp/external_windows.go (right): https://codereview.appspot.com/52250043/diff/40001/ssa/interp/external_windows.go#newcode8 ssa/interp/external_windows.go:8: "syscall" this addition alone is not enough to fix ...
11 years, 5 months ago (2014-01-14 20:47:15 UTC) #2
adonovan
On 2014/01/14 20:47:15, minux wrote: > https://codereview.appspot.com/52250043/diff/40001/ssa/interp/external_windows.go > File ssa/interp/external_windows.go (right): > > https://codereview.appspot.com/52250043/diff/40001/ssa/interp/external_windows.go#newcode8 > ...
11 years, 5 months ago (2014-01-14 22:39:03 UTC) #3
gri
LGTM Assuming it works...
11 years, 5 months ago (2014-01-14 22:49:36 UTC) #4
minux1
https://codereview.appspot.com/52250043/diff/50001/ssa/interp/ops.go File ssa/interp/ops.go (left): https://codereview.appspot.com/52250043/diff/50001/ssa/interp/ops.go#oldcode918 ssa/interp/ops.go:918: return syscall.Write(fd, b) i think we can keep this ...
11 years, 5 months ago (2014-01-14 23:07:42 UTC) #5
adonovan
On 2014/01/14 23:07:42, minux wrote: > https://codereview.appspot.com/52250043/diff/50001/ssa/interp/ops.go > File ssa/interp/ops.go (left): > > https://codereview.appspot.com/52250043/diff/50001/ssa/interp/ops.go#oldcode918 > ...
11 years, 5 months ago (2014-01-14 23:29:24 UTC) #6
minux1
LGTM.
11 years, 5 months ago (2014-01-15 00:12:53 UTC) #7
brainman
https://codereview.appspot.com/52250043/diff/70001/ssa/interp/external_windows.go File ssa/interp/external_windows.go (right): https://codereview.appspot.com/52250043/diff/70001/ssa/interp/external_windows.go#newcode48 ssa/interp/external_windows.go:48: return syscall.Write(syscall.Handle(fd), b) You assume that passing fd=1 here ...
11 years, 5 months ago (2014-01-15 02:01:37 UTC) #8
brainman
Also a test would be nice, so we don't have to guess, if it is ...
11 years, 5 months ago (2014-01-15 02:03:13 UTC) #9
minux1
On 2014/01/15 02:01:37, brainman wrote: > https://codereview.appspot.com/52250043/diff/70001/ssa/interp/external_windows.go > File ssa/interp/external_windows.go (right): > > https://codereview.appspot.com/52250043/diff/70001/ssa/interp/external_windows.go#newcode48 > ...
11 years, 5 months ago (2014-01-15 02:05:57 UTC) #10
minux1
On 2014/01/15 02:03:13, brainman wrote: > Also a test would be nice, so we don't ...
11 years, 5 months ago (2014-01-15 02:06:56 UTC) #11
brainman
On 2014/01/15 02:06:56, minux wrote: > ssa/interp doesn't work on windows yet... > we need ...
11 years, 5 months ago (2014-01-15 02:09:49 UTC) #12
adonovan
https://codereview.appspot.com/52250043/diff/70001/ssa/interp/external_windows.go File ssa/interp/external_windows.go (right): https://codereview.appspot.com/52250043/diff/70001/ssa/interp/external_windows.go#newcode48 ssa/interp/external_windows.go:48: return syscall.Write(syscall.Handle(fd), b) On 2014/01/15 02:01:38, brainman wrote: > ...
11 years, 5 months ago (2014-01-15 02:17:56 UTC) #13
brainman
On 2014/01/15 02:17:56, adonovan wrote: > ... > > You must have a reason, but ...
11 years, 5 months ago (2014-01-15 02:31:49 UTC) #14
minux1
On Tue, Jan 14, 2014 at 9:31 PM, <alex.brainman@gmail.com> wrote: > > Oh, the package ...
11 years, 5 months ago (2014-01-15 02:35:35 UTC) #15
adonovan
On 14 January 2014 21:35, minux <minux.ma@gmail.com> wrote: > > On Tue, Jan 14, 2014 ...
11 years, 5 months ago (2014-01-15 02:42:05 UTC) #16
brainman
LGTM Sorry. I didn't know you wait for me. Alex
11 years, 5 months ago (2014-01-15 02:43:25 UTC) #17
adonovan
11 years, 5 months ago (2014-01-15 02:47:33 UTC) #18
*** Submitted as
https://code.google.com/p/go/source/detail?r=36d725dd35ff&repo=tools ***

go.tools/ssa/interp: fix windows build.

- Add missing import.
- platform-specific files syswrite() wrapper presents
  standard API to syscall.Write, even on Windows where
  first arg is a Handle.

Fixes issue 7100

R=gri, minux.ma, alex.brainman
CC=golang-codereviews
https://codereview.appspot.com/52250043
Sign in to reply to this message.

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