Commit c7f8556a authored by Per Cederqvist's avatar Per Cederqvist Committed by Per Cederqvist
Browse files

Write "Stdio.File" instead of "object(Stdio.File)".

parent 7b517c69
......@@ -102,7 +102,7 @@ void parse_log(string fn, mapping res)
if(task[0]=="post_build/verify") {
// We don't consider verify passed if there was a leak.
object(Stdio.File) f = Stdio.File();
Stdio.File f = Stdio.File();
if (f->open("verifylog.txt", "r")) {
foreach(f->line_iterator();; string line) {
if(has_value(line, "==LEAK==")) {
......@@ -121,10 +121,10 @@ int count_warnings(string fn) {
// Highlight warnings.
if(file_stat("compilelog.txt")) {
object(Stdio.File) f = Stdio.File();
Stdio.File f = Stdio.File();
if (!f->open("compilelog.txt", "r")) return 0;
object(Stdio.File) out = Stdio.File();
Stdio.File out = Stdio.File();
if (!out->open("makelog.html", "twc")) {
f->close();
return ::count_warnings(fn);
......
......@@ -113,7 +113,7 @@ void parse_build_id(string fn, mapping res) {
//! is "default".
void parse_machine_id(string fn, mapping res)
{
object(Stdio.File) f = Stdio.File();
Stdio.File f = Stdio.File();
if (!f->open(fn, "r")) return;
foreach(f->line_iterator(1);;string pair) {
......@@ -167,7 +167,7 @@ void parse_log(string fn, mapping res)
res->status = "FAIL";
res->tasks=({});
object(Stdio.File) f = Stdio.File();
Stdio.File f = Stdio.File();
if (!f->open(fn, "r")) return;
......@@ -284,7 +284,7 @@ void count_compilation_warnings(mapping result)
//! ignored_warnings.
int count_warnings(string fn)
{
object(Stdio.File) f = Stdio.File();
Stdio.File f = Stdio.File();
if (!f->open(fn, "r")) return 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment