Skip to content

Commit

Permalink
doc/go1.12.html: document rejection of mangled C names
Browse files Browse the repository at this point in the history
Change-Id: I27ef49815f55a36379b730b77f7e9a4dd5341507
Reviewed-on: https://go-review.googlesource.com/c/158777
Run-TryBot: Elias Naur <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
  • Loading branch information
Elias Naur committed Jan 21, 2019
1 parent 8e50e48 commit cad6d1f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/go1.12.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@ <h3 id="cgo">Cgo</h3>
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 -->
Expand Down

0 comments on commit cad6d1f

Please sign in to comment.