mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
rose_in_dump: use StdioFile
This commit is contained in:
parent
e9f4adba0d
commit
9f0bc429b4
@ -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 <cstdio>
|
||||
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user