mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
43d4f93c91
commit
d21638b5ec
34 changed files with 247 additions and 340 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue