From 9f0bc429b4599b15da95ddac7fcef47c87a7b564 Mon Sep 17 00:00:00 2001 From: Justin Viiret Date: Thu, 29 Jun 2017 13:17:04 +1000 Subject: [PATCH] rose_in_dump: use StdioFile --- src/rose/rose_in_dump.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rose/rose_in_dump.cpp b/src/rose/rose_in_dump.cpp index 172b58e8..5266e9d7 100644 --- a/src/rose/rose_in_dump.cpp +++ b/src/rose/rose_in_dump.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2016, Intel Corporation + * Copyright (c) 2015-2017, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -35,6 +35,7 @@ #include "nfagraph/ng_dump.h" #include "nfagraph/ng_util.h" #include "util/container.h" +#include "util/dump_util.h" #include "util/graph_range.h" #include @@ -59,7 +60,7 @@ void dumpPreRoseGraph(const RoseInGraph &ig, const Grey &grey, filename = "pre_rose.dot"; } DEBUG_PRINTF("dumping rose graphs\n"); - FILE *f = fopen((grey.dumpPath + filename).c_str(), "w"); + StdioFile f(grey.dumpPath + filename, "w"); fprintf(f, "digraph NFA {\n"); fprintf(f, "rankdir=LR;\n"); fprintf(f, "size=\"11.5,8\"\n"); @@ -127,7 +128,6 @@ void dumpPreRoseGraph(const RoseInGraph &ig, const Grey &grey, } fprintf(f, "}\n"); - fclose(f); } }