diff options
| author | Russ Cox <rsc@golang.org> | 2009-10-15 23:10:49 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-10-15 23:10:49 -0700 |
| commit | 3b4064568e171fcfbd21b97062b7df6610b563e9 (patch) | |
| tree | 2b917b03646327a48fef08173fc6522500888d78 /src/pkg/runtime/string.cgo | |
| parent | 773efdf0be567f445b0f5eb312f09ac00d8fa5ae (diff) | |
| download | golang-3b4064568e171fcfbd21b97062b7df6610b563e9.tar.gz | |
rename sys functions to runtime,
because they are in package runtime.
another step to enforcing package boundaries.
R=r
DELTA=732 (114 added, 93 deleted, 525 changed)
OCL=35811
CL=35824
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 3134cbbfe..bafa6791b 100644 --- a/src/pkg/runtime/string.cgo +++ b/src/pkg/runtime/string.cgo @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -package sys +package runtime #include "runtime.h" String emptystring; @@ -68,11 +68,11 @@ prbounds(int8* s, int32 a, int32 b, int32 c) { prints(s); prints(" "); - sys·printint(a); + runtime·printint(a); prints("<"); - sys·printint(b); + runtime·printint(b); prints(">"); - sys·printint(c); + runtime·printint(c); prints("\n"); throw("string bounds"); } @@ -128,7 +128,7 @@ func slicestring(si String, lindex int32, hindex int32) (so String) { if(lindex < 0 || lindex > si.len || hindex < lindex || hindex > si.len) { - sys·printpc(&si); + runtime·printpc(&si); prints(" "); prbounds("slice", lindex, si.len, hindex); } @@ -144,7 +144,7 @@ func slicestring(si String, lindex int32, hindex int32) (so String) { func indexstring(s String, i int32) (b byte) { if(i < 0 || i >= s.len) { - sys·printpc(&s); + runtime·printpc(&s); prints(" "); prbounds("index", 0, i, s.len); } |
