]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.12.html: document rejection of mangled C names
authorElias Naur <elias.naur@gmail.com>
Mon, 21 Jan 2019 15:12:46 +0000 (16:12 +0100)
committerElias Naur <elias.naur@gmail.com>
Mon, 21 Jan 2019 23:31:09 +0000 (23:31 +0000)
Change-Id: I27ef49815f55a36379b730b77f7e9a4dd5341507
Reviewed-on: https://go-review.googlesource.com/c/158777
Run-TryBot: Elias Naur <elias.naur@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go1.12.html

index 0a998c06e01ae4846c883bf9fc07a93f972a8440..dddf44b520a52a7a578b66e969295e5b79fdeaa5 100644 (file)
@@ -139,6 +139,12 @@ go vet -vettool=$(which shadow)
        for more information.
 </p>
 
+<p><!-- CL 152657 -->
+  Mangled C names are no longer accepted in packages that use Cgo. Use the Cgo
+  names instead. For example, use the documented cgo name <code>C.char</code>
+  rather than the mangled name <code>_Ctype_char</code> that cgo generates.
+</p>
+
 <h3 id="modules">Modules</h3>
 
 <p><!-- CL 148517 -->