]> Cypherpunks repositories - gostls13.git/commit
Mangle C struct fields that happen to be named after Go keywords by prefixing them...
authorEden Li <eden.li@gmail.com>
Wed, 18 Nov 2009 17:59:10 +0000 (09:59 -0800)
committerRuss Cox <rsc@golang.org>
Wed, 18 Nov 2009 17:59:10 +0000 (09:59 -0800)
commit652bb7c2bed501110d7371ea0187d56dd58acef3
tree5fbfbeeff920722912443fee0d2bfd1c474b8094
parenta274099340c5f502f31f1942473a415538c4f667
Mangle C struct fields that happen to be named after Go keywords by prefixing them with _.  Collisions with existing fields are resolved by prefixing the new Go identifier with _ until it matches nothing else in the struct.
Fixes #36.

R=rsc
https://golang.org/cl/157061
src/cmd/cgo/gcc.go