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

Issue 562041: code review 562041: syscall: more changes to mingw version (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 4 months ago by brainman
Modified:
15 years, 4 months ago
Reviewers:
CC:
rsc, golang-dev
Visibility:
Public.

Description

syscall: more changes to mingw version - mkall now generates syscall stabs automatically - we can call unicode versions of winapi now - introduce GetErrstr function to fetch error text given errno - general cleanup

Patch Set 1 #

Patch Set 2 : code review 562041: syscall: more changes to mingw version #

Total comments: 10

Patch Set 3 : code review 562041: syscall: more changes to mingw version #

Patch Set 4 : code review 562041: syscall: more changes to mingw version #

Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -107 lines) Patch
M src/pkg/runtime/mingw/syscall.cgo View 1 2 3 2 chunks +19 lines, -8 lines 0 comments Download
M src/pkg/syscall/mkall.sh View 1 2 2 chunks +8 lines, -9 lines 0 comments Download
M src/pkg/syscall/mksyscall_mingw.sh View 1 2 3 8 chunks +59 lines, -23 lines 0 comments Download
M src/pkg/syscall/syscall_mingw.go View 1 2 3 3 chunks +55 lines, -27 lines 0 comments Download
M src/pkg/syscall/zerrors_mingw_386.go View 1 chunk +5 lines, -1 line 0 comments Download
M src/pkg/syscall/zsyscall_mingw_386.go View 1 2 3 1 chunk +53 lines, -25 lines 0 comments Download
M src/pkg/syscall/zsysnum_mingw_386.go View 1 chunk +0 lines, -11 lines 0 comments Download
M src/pkg/syscall/ztypes_mingw_386.go View 2 chunks +10 lines, -3 lines 0 comments Download

Messages

Total messages: 20
brainman
Hello golang-dev@googlegroups.com, I'd like you to review this change.
15 years, 4 months ago (2010-03-15 04:03:44 UTC) #1
rsc
http://codereview.appspot.com/562041/diff/2001/3001 File src/pkg/runtime/mingw/syscall.cgo (right): http://codereview.appspot.com/562041/diff/2001/3001#newcode10 src/pkg/runtime/mingw/syscall.cgo:10: stdcall_and_getlasterr(uintptr *lasterr, uintptr trap, uintptr a1, uintptr a2, uintptr ...
15 years, 4 months ago (2010-03-16 19:54:16 UTC) #2
brainman
Hello rsc (cc: golang-dev@googlegroups.com), Please take another look.
15 years, 4 months ago (2010-03-17 03:25:12 UTC) #3
brainman
http://codereview.appspot.com/562041/diff/2001/3001 File src/pkg/runtime/mingw/syscall.cgo (right): http://codereview.appspot.com/562041/diff/2001/3001#newcode10 src/pkg/runtime/mingw/syscall.cgo:10: stdcall_and_getlasterr(uintptr *lasterr, uintptr trap, uintptr a1, uintptr a2, uintptr ...
15 years, 4 months ago (2010-03-17 03:26:07 UTC) #4
rsc
> http://codereview.appspot.com/562041/diff/2001/3001#newcode10 > src/pkg/runtime/mingw/syscall.cgo:10: stdcall_and_getlasterr(uintptr > *lasterr, uintptr trap, uintptr a1, uintptr a2, uintptr a3, ...
15 years, 4 months ago (2010-03-17 04:08:30 UTC) #5
rsc
> You just write > > func stdcallerr(uintptr trap, uintptr a1, uintptr a2, etc) (uintptr ...
15 years, 4 months ago (2010-03-17 04:09:31 UTC) #6
brainman
On 2010/03/17 04:08:30, rsc wrote: > There's already Syscall (= Syscall3) and Syscall6. > Maybe ...
15 years, 4 months ago (2010-03-17 04:13:40 UTC) #7
brainman
On unrelated note, I was planning to replace syscall.Errstr() with what new syscall.GetErrstr() is. Do ...
15 years, 4 months ago (2010-03-17 04:19:46 UTC) #8
brainman
Hello rsc (cc: golang-dev@googlegroups.com), Please take another look.
15 years, 4 months ago (2010-03-17 04:30:09 UTC) #9
rsc
On Tue, Mar 16, 2010 at 21:19, <alex.brainman@gmail.com> wrote: > On unrelated note, I was ...
15 years, 4 months ago (2010-03-17 05:21:28 UTC) #10
brainman
On 2010/03/17 05:21:28, rsc wrote: > On Tue, Mar 16, 2010 at 21:19, <mailto:alex.brainman@gmail.com> wrote: ...
15 years, 4 months ago (2010-03-17 05:58:38 UTC) #11
rsc
> Current syscall.GetErrstr() implementation uses array of hardcoded > (zerrors_$GOOS_$GOARCH.go) error messages "errors", the array ...
15 years, 4 months ago (2010-03-17 06:01:29 UTC) #12
rsc
LGTM for a future CL you might consider emitting shorter calls (to Syscall or Syscall6) ...
15 years, 4 months ago (2010-03-17 06:03:41 UTC) #13
brainman
On 2010/03/17 06:01:29, rsc wrote: > Sounds like what you're calling GetErrstr is just Errstr. ...
15 years, 4 months ago (2010-03-17 06:09:16 UTC) #14
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=324a358df501 *** syscall: more changes to mingw version - mkall now generates ...
15 years, 4 months ago (2010-03-17 06:10:11 UTC) #15
brainman
> for a future CL you might consider emitting > shorter calls (to Syscall or ...
15 years, 4 months ago (2010-03-17 06:10:47 UTC) #16
rsc
> My question was, how. I do not want to move code for Errstr() from ...
15 years, 4 months ago (2010-03-17 06:11:24 UTC) #17
rsc
> I thought about that for a second, but couldn't work out what good would ...
15 years, 4 months ago (2010-03-17 06:11:54 UTC) #18
brainman
On 2010/03/17 06:11:24, rsc wrote: > I think there will probably end up being a ...
15 years, 4 months ago (2010-03-17 06:14:31 UTC) #19
brainman
15 years, 4 months ago (2010-03-17 06:15:48 UTC) #20
On 2010/03/17 06:11:54, rsc wrote:
> at the least it would avoid a bunch of mov instructions
> in the wrappers, making the program smaller.
> 

Another one for tomorrow.


Alex
Sign in to reply to this message.

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