cmd/cc, runtime: preserve C runtime type names in generated Go

uintptr or uint64 in the runtime C were turning into uint in the Go,
bool was turning into uint8, and so on. Fix that.

Also delete Go wrappers for C functions.
The C functions can be called directly now
(but still eventually need to be converted to Go).

LGTM=bradfitz, minux, iant
R=golang-codereviews, bradfitz, iant, minux
CC=golang-codereviews, khr, r
https://golang.org/cl/138740043
This commit is contained in:
Russ Cox 2014-08-27 21:59:49 -04:00
parent 43d4f93c91
commit d21638b5ec
34 changed files with 247 additions and 340 deletions

View file

@ -16,21 +16,21 @@ func signal_recv() (m uint32) {
if ok {
return
}
gonotetsleepg(&signote, -1)
gonoteclear(&signote)
notetsleepg(&signote, -1)
noteclear(&signote)
}
}
func signal_enable(s uint32) {
mp := acquirem()
mp.scalararg[0] = uint(s)
mp.scalararg[0] = uintptr(s)
onM(&signal_enable_m)
releasem(mp)
}
func signal_disable(s uint32) {
mp := acquirem()
mp.scalararg[0] = uint(s)
mp.scalararg[0] = uintptr(s)
onM(&signal_disable_m)
releasem(mp)
}