]> Cypherpunks repositories - gostls13.git/commit
runtime: include os_*.h in the generated Go structs
authorRuss Cox <rsc@golang.org>
Mon, 1 Sep 2014 21:25:10 +0000 (17:25 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 1 Sep 2014 21:25:10 +0000 (17:25 -0400)
commitf611ae1c75b7696da141e55bf91a0acdcc853bf8
tree2a5df4b9ae9e4096daccecc8c4de4278783ceab9
parent3de7ba1873b3efb0004d61147cc049dd42d8725d
runtime: include os_*.h in the generated Go structs

Adding the #include to defs.c makes it get processed
by cmd/dist, which writes out Go equivalent for all the
C data structures defined in defs.c.

This in turn makes it necessary to define the Plink type,
used in os_plan9.h, in os_plan9.go. Rename it to _Plink
to avoid being exported.

LGTM=0intro, iant
R=golang-codereviews, iant, 0intro
CC=golang-codereviews, r
https://golang.org/cl/132490043
src/pkg/runtime/defs.c
src/pkg/runtime/os_plan9.go
src/pkg/runtime/os_plan9.h