From: Alex Brainman Date: Sun, 8 May 2011 06:32:00 +0000 (+1000) Subject: syscall: fix bug in mksyscall_windows.pl X-Git-Tag: weekly.2011-05-22~129 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b191155ab42e02bf1d16c702102888d9091d800e;p=gostls13.git syscall: fix bug in mksyscall_windows.pl This change fixes generation of "shadow" variables for bool parameters. Before the change, it was naming all bool variables with the same name of _p0. Now it calls them _p0, _p1, ... So the code could compile. R=golang-dev, r CC=golang-dev https://golang.org/cl/4479047 --- diff --git a/src/pkg/syscall/mksyscall_windows.pl b/src/pkg/syscall/mksyscall_windows.pl index d92ac3d283..fb5a1272b2 100755 --- a/src/pkg/syscall/mksyscall_windows.pl +++ b/src/pkg/syscall/mksyscall_windows.pl @@ -156,6 +156,7 @@ while(<>) { $text .= "\tvar _p$n uint32\n"; $text .= "\tif $name {\n\t\t_p$n = 1\n\t} else {\n\t\t_p$n = 0\n\t}\n"; push @args, "uintptr(_p$n)"; + $n++; } else { push @args, "uintptr($name)"; }