cmd/dist: fix superfluous and confusing "binaries ... to be copied or moved" message
Also, to aid debugging cmd/dist, make make.bat support --dist-tool flag.
Fixes issue 3100.
Thank you for doing that. Alex http://codereview.appspot.com/6637061/diff/9/src/cmd/dist/windows.c File src/cmd/dist/windows.c (right): http://codereview.appspot.com/6637061/diff/9/src/cmd/dist/windows.c#newcode936 src/cmd/dist/windows.c:936: r = 0; ...
11 years, 6 months ago
(2012-10-11 01:21:48 UTC)
#2
PTAL. I missed defer very much... On 2012/10/11 01:21:48, brainman wrote: > http://codereview.appspot.com/6637061/diff/9/src/cmd/dist/windows.c#newcode936 > src/cmd/dist/windows.c:936: ...
11 years, 6 months ago
(2012-10-11 19:06:54 UTC)
#3
PTAL.
I missed defer very much...
On 2012/10/11 01:21:48, brainman wrote:
> http://codereview.appspot.com/6637061/diff/9/src/cmd/dist/windows.c#newcode936
> src/cmd/dist/windows.c:936: r = 0;
> Feel free to ignore, but I would not use this variable. Just put returns
> everywhere. Also, I think, less gotos is better.
Sure, removed all gotos, and used a new way to organize, should be clearer.
> http://codereview.appspot.com/6637061/diff/9/src/cmd/dist/windows.c#newcode943
> src/cmd/dist/windows.c:943: fd1 = CreateFile(f1, 0, 0, NULL, OPEN_EXISTING,
> FILE_FLAG_BACKUP_SEMANTICS, 0);
> s/CreateFile/CreateFileW/
All CreateFile changed to CreateFileW, with torune() added as necessary.
Issue 6637061: code review 6637061: cmd/dist: fix superfluous and confusing "binaries ... t...
(Closed)
Created 11 years, 6 months ago by minux1
Modified 11 years, 6 months ago
Reviewers:
Base URL:
Comments: 5