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

Issue 104020044: code review 104020044: pkg/syscall: document that the Windows DLL call methods...

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 10 months ago by Pietro Gagliardi (andlabs)
Modified:
9 years, 4 months ago
Reviewers:
r
CC:
golang-codereviews, brainman, peterGo, r
Visibility:
Public.

Description

pkg/syscall: document that the Windows DLL call methods call SetLastError(0) A common question when diagnosing problems with the Windows API is whether the programmer is sure the error return came from that function or not, as not all Windows API functions are guaranteed to set the last error code in all cases. The runtime already calls SetLastError(0) (for instance, http://tip.golang.org/src/pkg/runtime/sys_windows_amd64.s#L8), but it would help if this behavior was documented explicitly.

Patch Set 1 #

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -0 lines) Patch
M src/pkg/syscall/dll_windows.go View 1 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 7
Pietro Gagliardi (andlabs)
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
9 years, 10 months ago (2014-06-10 19:13:13 UTC) #1
brainman
I think speaking of SetLastError here is confusing. SetLastError only have meaning when speaking of ...
9 years, 10 months ago (2014-06-11 05:42:23 UTC) #2
Pietro Gagliardi (andlabs)
On 2014/06/11 05:42:23, brainman wrote: > I think speaking of SetLastError here is confusing. > ...
9 years, 10 months ago (2014-06-11 21:55:11 UTC) #3
peterGo
Pietro, It's reasonable to assume that people have read the relevant Microsoft Windows API documentation. ...
9 years, 10 months ago (2014-06-11 23:40:27 UTC) #4
brainman
On 2014/06/11 21:55:11, Pietro Gagliardi (andlabs) wrote: > > Do you have any suggestion for ...
9 years, 10 months ago (2014-06-12 07:21:32 UTC) #5
r
NOT LGTM No changes to this package please. Wait until go.sys is opened for edits.
9 years, 8 months ago (2014-08-11 18:44:34 UTC) #6
gobot
9 years, 4 months ago (2014-12-19 05:08:40 UTC) #7
R=close

To the author of this CL:

The Go project has moved to Gerrit Code Review.

If this CL should be continued, please see the latest version of
https://golang.org/doc/contribute.html for instructions on
how to set up Git and the Go project's Gerrit codereview plugin,
and then create a new change with your current code.

If there has been discussion on this CL, please give a link to it
(golang.org/cl/104020044 is best) in the description in your
new CL.

Thanks very much.
Sign in to reply to this message.

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