go/src/cmd/cgo
Ian Lance Taylor 7061dc3f6e cmd/cgo: ignore top-level qualifiers in function args/results
The top-level qualifiers are unimportant for our purposes. If a C
function is defined as `const int f(const int i)`, the `const`s are
meaningless to C, and we want to avoid using them in the struct we
create where the `const` has a completely different meaning.

This unwinds https://golang.org/cl/33097 with regard to top-level
qualifiers.

Change-Id: I3d66b0eb43b6d9a586d9cdedfae5a2306b46d96c
Reviewed-on: https://go-review.googlesource.com/33325
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2016-11-17 19:03:55 +00:00
..
ast.go cmd/cgo: delete unused variable in log statement 2016-11-09 15:31:55 +00:00
doc.go cmd/cgo: add -srcdir option 2016-10-30 19:14:08 +00:00
gcc.go cmd/cgo: ignore top-level qualifiers in function args/results 2016-11-17 19:03:55 +00:00
godefs.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
main.go cmd/cgo: add support for GOARCH=mips{,le} 2016-11-03 22:56:37 +00:00
out.go cmd/cgo: don't ignore qualifiers, don't cast to void* 2016-11-11 01:31:12 +00:00
util.go all: single space after period. 2016-03-02 00:13:47 +00:00