Applied downs' latest Phobos patch

This commit is contained in:
Tomas Lindquist Olsen
2008-10-06 21:40:33 +02:00
parent 0bd282113b
commit 1fe1354a8a
18 changed files with 2479 additions and 2445 deletions

View File

@@ -268,7 +268,7 @@ class OutBuffer
if (count != -1)
break;
psize *= 2;
p = cast(char *) alloca(psize); // buffer too small, try again with larger size
p = cast(char *) /*alloca*/malloc(psize); // buffer too small, try again with larger size
}
else version(GNU) {
count = vsnprintf(p,psize,f,args_copy);
@@ -278,7 +278,7 @@ class OutBuffer
psize = count + 1;
else
break;
p = cast(char *) alloca(psize); // buffer too small, try again with larger size
p = cast(char *) /*alloca*/std.gc.malloc(psize); // buffer too small, try again with larger size
}
else version(linux)
{
@@ -294,7 +294,7 @@ class OutBuffer
c.stdlib.free(p);
p = (char *) c.stdlib.malloc(psize); // buffer too small, try again with larger size
+/
p = cast(char *) alloca(psize); // buffer too small, try again with larger size
p = cast(char *) /*alloca*/std.gc.malloc(psize); // buffer too small, try again with larger size
}
}
write(p[0 .. count]);