aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/string.cgo
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-01-25 18:52:55 -0800
committerRuss Cox <rsc@golang.org>2010-01-25 18:52:55 -0800
commit718be3215ffd6f8d4bfd8fa836cb2799d3366501 (patch)
tree5de75ffa5504b39acc53f938e513f3261b173454 /src/pkg/runtime/string.cgo
parentc90b05bf7dab3a03a018f018d56b456b7ce7c2c5 (diff)
downloadgo-718be3215ffd6f8d4bfd8fa836cb2799d3366501.tar.xz
in C and asm, replace pkg·name with ·name
(eliminate assumption of package global name space, make code easier to move between packages). R=r CC=golang-dev https://golang.org/cl/194072
Diffstat (limited to 'src/pkg/runtime/string.cgo')
-rw-r--r--src/pkg/runtime/string.cgo12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pkg/runtime/string.cgo b/src/pkg/runtime/string.cgo
index c615768f3c..4c85766c2f 100644
--- a/src/pkg/runtime/string.cgo
+++ b/src/pkg/runtime/string.cgo
@@ -98,11 +98,11 @@ prbounds(int8* s, int32 a, int32 b, int32 c)
{
prints(s);
prints(" ");
- runtime·printint(a);
+ ·printint(a);
prints("<");
- runtime·printint(b);
+ ·printint(b);
prints(">");
- runtime·printint(c);
+ ·printint(c);
prints("\n");
throw("string bounds");
}
@@ -158,7 +158,7 @@ func slicestring(si String, lindex int32, hindex int32) (so String) {
if(lindex < 0 || lindex > si.len ||
hindex < lindex || hindex > si.len) {
- runtime·printpc(&si);
+ ·printpc(&si);
prints(" ");
prbounds("slice", lindex, si.len, hindex);
}
@@ -176,7 +176,7 @@ func slicestring1(si String, lindex int32) (so String) {
int32 l;
if(lindex < 0 || lindex > si.len) {
- runtime·printpc(&si);
+ ·printpc(&si);
prints(" ");
prbounds("slice", lindex, si.len, si.len);
}
@@ -192,7 +192,7 @@ func slicestring1(si String, lindex int32) (so String) {
func indexstring(s String, i int32) (b byte) {
if(i < 0 || i >= s.len) {
- runtime·printpc(&s);
+ ·printpc(&s);
prints(" ");
prbounds("index", 0, i, s.len);
}