aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/string.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2008-08-05 14:18:47 -0700
committerRuss Cox <rsc@golang.org>2008-08-05 14:18:47 -0700
commit96824000ed89d13665f6f24ddc10b3bf812e7f47 (patch)
treed7949fdd33ae9f9b3c789cecabb6e4b5322c97e1 /src/runtime/string.c
parent5adbacb8e7856cd56617e788c112e012303bcb82 (diff)
downloadgo-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.c5
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);