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 issue 36.
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 issue 36.

R=rsc
http://codereview.appspot.com/157061

Committer: Russ Cox <5ad239cb8a44f659eaaee0aa1ea5b94947abe557@golang.org>

mhennings/marcohennings-go,rdp/rogerpack2005-golang,glycerine/jeaten-go-arrayof-structof,webfd/go-zh,rflanagan/reginaldflanagan-project1,glycerine/jeaten-go-arrayof-structof,webfd/go-zh,sanjosh/sanjos100-tipc,bryanxu/go-zh,bryanxu/go-zh,mhennings/marcohennings-go,mhennings/marcohennings-go,rdp/rogerpack2005-golang,rflanagan/reginaldflanagan-project1,webfd/go-zh,Triskite/willstone-goclone,mhennings/marcohennings-go,d0f/go-zh,npe9/noahevans-go9,rdp/rogerpack2005-golang,webfd/go-zh,sanjosh/sanjos100-tipc,bryanxu/go-zh,webfd/go-zh,mhennings/marcohennings-go,rdp/rogerpack2005-golang,rflanagan/reginaldflanagan-project1,Triskite/willstone-goclone,rflanagan/reginaldflanagan-project1,rflanagan/reginaldflanagan-project1,rdp/rogerpack2005-golang,npe9/noahevans-go9,rdp/rogerpack2005-golang,Triskite/willstone-goclone,d0f/go-zh,npe9/noahevans-go9,sanjosh/sanjos100-tipc,npe9/noahevans-go9,npe9/noahevans-go9,bryanxu/go-zh,Triskite/willstone-goclone,glycerine/jeaten-go-arrayof-structof,glycerine/jeaten-go-arrayof-structof,scirelli/scirelli-go,bryanxu/go-zh,glycerine/jeaten-go-arrayof-structof,scirelli/scirelli-go,npe9/noahevans-go9,sanjosh/sanjos100-tipc,Triskite/willstone-goclone,glycerine/jeaten-go-arrayof-structof,Triskite/willstone-goclone,d0f/go-zh,sanjosh/sanjos100-tipc,npe9/noahevans-go9,webfd/go-zh,sanjosh/sanjos100-tipc,d0f/go-zh,rflanagan/reginaldflanagan-project1,rflanagan/reginaldflanagan-project1,Triskite/willstone-goclone,mhennings/marcohennings-go,scirelli/scirelli-go,sanjosh/sanjos100-tipc,d0f/go-zh,scirelli/scirelli-go,npe9/noahevans-go9,webfd/go-zh,webfd/go-zh,bryanxu/go-zh,mhennings/marcohennings-go,glycerine/jeaten-go-arrayof-structof,rdp/rogerpack2005-golang,Triskite/willstone-goclone,d0f/go-zh,scirelli/scirelli-go,scirelli/scirelli-go,bryanxu/go-zh,d0f/go-zh,rflanagan/reginaldflanagan-project1,bryanxu/go-zh,glycerine/jeaten-go-arrayof-structof,d0f/go-zh,scirelli/scirelli-go,scirelli/scirelli-go,rdp/rogerpack2005-golang,sanjosh/sanjos100-tipc,mhennings/marcohennings-go