diff options
| author | Russ Cox <rsc@golang.org> | 2008-08-05 14:18:47 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2008-08-05 14:18:47 -0700 |
| commit | 96824000ed89d13665f6f24ddc10b3bf812e7f47 (patch) | |
| tree | d7949fdd33ae9f9b3c789cecabb6e4b5322c97e1 /src/runtime/string.c | |
| parent | 5adbacb8e7856cd56617e788c112e012303bcb82 (diff) | |
| download | go-96824000ed89d13665f6f24ddc10b3bf812e7f47.tar.xz | |
* comment, clean up scheduler
* rewrite lock implementation to be correct
(tip: never assume that an algorithm you found
in a linux man page is correct.)
* delete unneeded void* arg from clone fn
* replace Rendez with Note
* comment mal better
* use 6c -w, fix warnings
* mark all assembly functions 7
R=r
DELTA=828 (338 added, 221 deleted, 269 changed)
OCL=13884
CL=13886
Diffstat (limited to 'src/runtime/string.c')
| -rw-r--r-- | src/runtime/string.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/runtime/string.c b/src/runtime/string.c index d21273de0e..099d7aa1d1 100644 --- a/src/runtime/string.c +++ b/src/runtime/string.c @@ -45,8 +45,6 @@ out: static void prbounds(int8* s, int32 a, int32 b, int32 c) { - int32 i; - prints(s); prints(" "); sys·printint(a); @@ -115,7 +113,6 @@ strcmp(byte *s1, byte *s2) void sys·slicestring(string si, int32 lindex, int32 hindex, string so) { - string s, str; int32 l; if(si == nil) @@ -154,8 +151,6 @@ sys·indexstring(string s, int32 i, byte b) void sys·intstring(int64 v, string s) { - int32 l; - s = mal(sizeof(s->len)+8); s->len = runetochar(s->str, v); FLUSH(&s); |
