mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
tamarama_dump: use StdioFile
This commit is contained in:
parent
63f3718c79
commit
06fa790b5d
@ -54,7 +54,7 @@ namespace ue2 {
|
|||||||
void nfaExecTamarama_dump(const struct NFA *nfa, const string &base) {
|
void nfaExecTamarama_dump(const struct NFA *nfa, const string &base) {
|
||||||
const Tamarama *t = (const Tamarama *)getImplNfa(nfa);
|
const Tamarama *t = (const Tamarama *)getImplNfa(nfa);
|
||||||
|
|
||||||
FILE *f = fopen_or_throw((base + ".txt").c_str(), "w");
|
StdioFile f(base + ".txt", "w");
|
||||||
|
|
||||||
fprintf(f, "Tamarama container engine\n");
|
fprintf(f, "Tamarama container engine\n");
|
||||||
fprintf(f, "\n");
|
fprintf(f, "\n");
|
||||||
@ -63,7 +63,6 @@ void nfaExecTamarama_dump(const struct NFA *nfa, const string &base) {
|
|||||||
fprintf(f, "\n");
|
fprintf(f, "\n");
|
||||||
dumpTextReverse(nfa, f);
|
dumpTextReverse(nfa, f);
|
||||||
fprintf(f, "\n");
|
fprintf(f, "\n");
|
||||||
fclose(f);
|
|
||||||
|
|
||||||
const u32 *subOffset =
|
const u32 *subOffset =
|
||||||
(const u32 *)((const char *)t + sizeof(struct Tamarama) +
|
(const u32 *)((const char *)t + sizeof(struct Tamarama) +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user