]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: make the char * pointer in GoString const
authorIan Lance Taylor <iant@golang.org>
Fri, 20 Nov 2015 01:03:01 +0000 (17:03 -0800)
committerIan Lance Taylor <iant@golang.org>
Sun, 29 Nov 2015 16:55:40 +0000 (16:55 +0000)
commit17360accab554328f61bf7c057e05e0aea585140
tree19ba8cf4f3a4d59903142b06d8df74dba0e38855
parent4d6a69f22790d0e9358b940da0bb86cef1e93777
cmd/cgo: make the char * pointer in GoString const

This makes it more convenient for C code to use GoString with string
constants.  Since Go string values are immutable, the const qualifier is
appropriate in C.

Change-Id: I5fb3cdce2ce5079f1f0467a1544bb3a1eb27b811
Reviewed-on: https://go-review.googlesource.com/17067
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
misc/cgo/test/callback.go
misc/cgo/test/callback_c.c
misc/cgo/test/cgo_test.go
src/cmd/cgo/out.go