diff options
| author | Russ Cox <rsc@golang.org> | 2010-01-25 18:52:55 -0800 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2010-01-25 18:52:55 -0800 |
| commit | ab9fc72814710229b0118e302bbceae3e9260926 (patch) | |
| tree | e8137325f4384b3cd062ab7f2700db20c32efb4c /src/pkg/runtime/string.cgo | |
| parent | 3ed83878d067bfb4eaa5ba5390bcde974382000f (diff) | |
| download | golang-ab9fc72814710229b0118e302bbceae3e9260926.tar.gz | |
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
http://codereview.appspot.com/194072
Diffstat (limited to 'src/pkg/runtime/string.cgo')
| -rw-r--r-- | src/pkg/runtime/string.cgo | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pkg/runtime/string.cgo b/src/pkg/runtime/string.cgo index c615768f3..4c85766c2 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); } |
