]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: annotate named return struct members in comments
authorAndy Maloney <asmaloney@gmail.com>
Mon, 3 Aug 2015 13:25:33 +0000 (09:25 -0400)
committerIan Lance Taylor <iant@golang.org>
Wed, 26 Aug 2015 00:24:34 +0000 (00:24 +0000)
commitdc110f245d9469874b17709351ba637a5287f3eb
tree8542b2c304a11f1d02f367e234dab84788fe607e
parent38519e69d05e21909e12f6149beb3fbd3808b3f3
cmd/cgo: annotate named return struct members in comments

If an exported function has named return variables, then show the names
as comments in the return struct we create in the header file.

Example here:

 https://groups.google.com/forum/#!topic/golang-nuts/r393ne4zIfY

Change-Id: I21fb4ca2673f6977bec35ccab0cef7d42b311f96
Reviewed-on: https://go-review.googlesource.com/13061
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/cgo/out.go