From 02d6029922f4063971a8da4c7d84e2298cd3c3b2 Mon Sep 17 00:00:00 2001 From: nuno-lopes Date: Thu, 14 Aug 2008 17:00:25 +0000 Subject: [PATCH] unbreak the dot export feature that I broke in last commit. sorry.. --- re2c/code.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/re2c/code.cc b/re2c/code.cc index c84f6f28..a64889a0 100644 --- a/re2c/code.cc +++ b/re2c/code.cc @@ -671,7 +671,7 @@ void Accept::emit(std::ostream &o, uint ind, bool &readCh, const std::string&) c o << indent(ind) << "goto *" << mapCodeName["yytarget"] << "[" << mapCodeName["yyaccept"] << "];\n"; o << indent(--ind) << "}\n"; } - else if (sFlag || mapRules.size() == 2) + else if (sFlag || (mapRules.size() == 2 && !DFlag)) { emitBinary(o, ind, 0, mapRules.size() - 1, readCh); } -- 2.40.0