abe08b7d90
Update the compiler to use the new names. Add calls to printlock and printunlock around print statements. Move expression evaluation before the call to printlock. Update g's writebuf field to a slice, and adjust C code accordingly. Reviewed-on: https://go-review.googlesource.com/30717 From-SVN: r240958
14 lines
290 B
Go
14 lines
290 B
Go
// Copyright 2009 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// +build !android
|
|
|
|
package runtime
|
|
|
|
import "unsafe"
|
|
|
|
func writeErr(b []byte) {
|
|
write(2, unsafe.Pointer(&b[0]), int32(len(b)))
|
|
}
|