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 | 718be3215ffd6f8d4bfd8fa836cb2799d3366501 (patch) | |
| tree | 5de75ffa5504b39acc53f938e513f3261b173454 /src/pkg/runtime/runtime.c | |
| parent | c90b05bf7dab3a03a018f018d56b456b7ce7c2c5 (diff) | |
| download | go-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/runtime.c')
| -rw-r--r-- | src/pkg/runtime/runtime.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/pkg/runtime/runtime.c b/src/pkg/runtime/runtime.c index 8588894624..2d840aab37 100644 --- a/src/pkg/runtime/runtime.c +++ b/src/pkg/runtime/runtime.c @@ -20,7 +20,7 @@ gotraceback(void) } void -runtime·panicl(int32 lno) +·panicl(int32 lno) { uint8 *sp; @@ -34,7 +34,7 @@ runtime·panicl(int32 lno) printf("\npanic PC=%X\n", (uint64)(uintptr)&lno); sp = (uint8*)&lno; if(gotraceback()){ - traceback(runtime·getcallerpc(&lno), sp, g); + traceback(·getcallerpc(&lno), sp, g); tracebackothers(g); } breakpoint(); // so we can grab it in a debugger @@ -42,25 +42,25 @@ runtime·panicl(int32 lno) } void -runtime·throwindex(void) +·throwindex(void) { throw("index out of range"); } void -runtime·throwslice(void) +·throwslice(void) { throw("slice out of range"); } void -runtime·throwreturn(void) +·throwreturn(void) { throw("no return at end of a typed function"); } void -runtime·throwinit(void) +·throwinit(void) { throw("recursive call during initialization"); } @@ -70,7 +70,7 @@ throw(int8 *s) { fd = 2; printf("throw: %s\n", s); - runtime·panicl(-1); + ·panicl(-1); *(int32*)0 = 0; // not reached exit(1); // even more not reached } @@ -324,7 +324,7 @@ memprint(uint32 s, void *a) v = *(uint64*)a; break; } - runtime·printint(v); + ·printint(v); } static void @@ -362,7 +362,7 @@ static void strprint(uint32 s, String *a) { USED(s); - runtime·printstring(*a); + ·printstring(*a); } static uintptr @@ -376,7 +376,7 @@ static void interprint(uint32 s, Iface *a) { USED(s); - runtime·printiface(*a); + ·printiface(*a); } static uint32 @@ -397,7 +397,7 @@ static void nilinterprint(uint32 s, Eface *a) { USED(s); - runtime·printeface(*a); + ·printeface(*a); } static uint32 |
