]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: remove unnecessary space in cgo export header
authorQuim Muntal <quimmuntal@gmail.com>
Thu, 14 Jan 2021 20:29:49 +0000 (21:29 +0100)
committerIan Lance Taylor <iant@golang.org>
Thu, 14 Jan 2021 21:49:46 +0000 (21:49 +0000)
commit84e8a06f62e47bf3f126e6c7e5f39dd7ca82f421
treecaae2528cfea127646f033f73839d2ce8aa57302
parent0c86b999c35ed199bc7aa001affb1d5d186c9e73
cmd/cgo: remove unnecessary space in cgo export header

The cgo header has an unnecessary space in the exported function
definition on non-windows goos.

This was introduced in go1.16 so it would be good to fix it before
release.

Example:

// Current behavior, notice there is an unecessary space
// between extern and void
extern  void Foo();

// With this CL
extern void Foo();

Change-Id: Ic2c21f8d806fe35a7be7183dbfe35ac605b6e4f6
Reviewed-on: https://go-review.googlesource.com/c/go/+/283892
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Katie Hockman <katie@golang.org>
src/cmd/cgo/out.go