*** c:\dmd\src\phobos\std\cover.d Wed Sep 05 11:44:00 2007 --- C:\Documents and Settings\Benjamin\My Documents\Precision\Code\schedule\cover.d Thu Oct 04 13:13:22 2007 *************** *** 84,89 **** --- 84,96 ---- merge = flag; } + void Wipe() + { + foreach(d;gdata) + foreach(inout v;d.data) + v=0; + } + extern (C) void _d_cover_register(char[] filename, BitArray valid, uint[] data) { //printf("_d_cover_register()\n"); *************** *** 99,104 **** --- 106,116 ---- static ~this() { + Drop(""); + } + + void Drop(char[] name) + { //printf("cover.~this()\n"); foreach (Cover c; gdata) *************** *** 112,118 **** char[][] lines = std.string.splitlines(buf); // Generate listing file name ! char[] lstfilename = std.path.addExt(std.path.getBaseName(c.filename), "lst"); if (merge && exists(lstfilename) && isfile(lstfilename)) { --- 124,130 ---- char[][] lines = std.string.splitlines(buf); // Generate listing file name ! char[] lstfilename = std.path.addExt(name~std.path.getBaseName(c.filename), "lst"); if (merge && exists(lstfilename) && isfile(lstfilename)) { *************** *** 169,175 **** } else { nyes++; ! fwritefln(flst, "%7s|%s", n, line); } } } --- 181,187 ---- } else { nyes++; ! fwritefln(flst, "%7s|>%s", n, line); } } }