From 7be3be74fc2072d37d54c1e11d3b8c7db87a8d10 Mon Sep 17 00:00:00 2001 From: Walter Bright Date: Wed, 3 Oct 2007 06:00:32 +0000 Subject: [PATCH] fix stupid mistakes --- std/c/stdlib.d | 4 ++-- std/format.d | 3 +-- unittest.d | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/std/c/stdlib.d b/std/c/stdlib.d index d6a00d583..0122bc007 100644 --- a/std/c/stdlib.d +++ b/std/c/stdlib.d @@ -55,8 +55,8 @@ struct lldiv_t { long quot,rem; } int (*compare)(in void *elem1, in void *elem2)); /// ditto char* getenv(const char*); /// - int setenv(char*, char*, int); /// extension to ISO C standard, not available on all platforms - void unsetenv(char*); /// extension to ISO C standard, not available on all platforms + int setenv(const char*, const char*, int); /// extension to ISO C standard, not available on all platforms + void unsetenv(const char*); /// extension to ISO C standard, not available on all platforms int rand(); /// void srand(uint); /// ditto diff --git a/std/format.d b/std/format.d index 16056d08f..9215e32ac 100644 --- a/std/format.d +++ b/std/format.d @@ -87,8 +87,7 @@ class FormatError : Error enum Mangle : char { Tvoid = 'v', - //Tbit = 'b', // no longer used - Tbool = 'x', + Tbool = 'b', Tbyte = 'g', Tubyte = 'h', Tshort = 's', diff --git a/unittest.d b/unittest.d index 790aa82d1..fcd96483b 100644 --- a/unittest.d +++ b/unittest.d @@ -123,6 +123,6 @@ printf("test2\n"); writefln(std.cpuid.toString()); - printf("Success\n!"); + printf("Success!\n"); return 0; }