From 842864de68ed8962970c6f56a1eb843c179a5d68 Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Thu, 18 Jul 2019 16:56:47 +0100 Subject: [PATCH] Renamed misleadingly named parameter. --- src/codegen/emit.h | 6 +++--- src/codegen/emit_action.cc | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/codegen/emit.h b/src/codegen/emit.h index 078d3836..63a3cc64 100644 --- a/src/codegen/emit.h +++ b/src/codegen/emit.h @@ -10,9 +10,9 @@ namespace re2c { typedef std::vector code_lines_t; void emit_action(Output &o, uint32_t ind, const DFA &dfa, const State *s, const std::set &used_labels); -void gen_goto_plain(Output &o, uint32_t ind, const State *from, const State *to, const DFA &dfa, tcid_t tcid, bool skip, bool fill); -void gen_goto_case(Output &o, uint32_t ind, const State *from, const State *to, const DFA &dfa, tcid_t tcid, bool skip, bool fill); -void gen_goto_if(Output &o, uint32_t ind, const State *from, const State *to, const DFA &dfa, tcid_t tcid, bool skip, bool fill); +void gen_goto_plain(Output &o, uint32_t ind, const State *from, const State *to, const DFA &dfa, tcid_t tcid, bool skip, bool eof); +void gen_goto_case(Output &o, uint32_t ind, const State *from, const State *to, const DFA &dfa, tcid_t tcid, bool skip, bool eof); +void gen_goto_if(Output &o, uint32_t ind, const State *from, const State *to, const DFA &dfa, tcid_t tcid, bool skip, bool eof); void gen_settags(code_lines_t &code, const DFA &dfa, tcid_t tcid, const opt_t *opts); std::string vartag_name(tagver_t ver, const std::string &prefix); std::string vartag_expr(tagver_t ver, const std::string &prefix, const std::string &expression); diff --git a/src/codegen/emit_action.cc b/src/codegen/emit_action.cc index 2fc16504..9f673ebb 100644 --- a/src/codegen/emit_action.cc +++ b/src/codegen/emit_action.cc @@ -256,10 +256,10 @@ void gen_rescan_label(Output &o, const State *s) } void gen_goto_case(Output &o, uint32_t ind, const State *from, const State *to, - const DFA &dfa, tcid_t tcid, bool skip, bool fill) + const DFA &dfa, tcid_t tcid, bool skip, bool eof) { code_lines_t code; - gen_goto(code, from, to, dfa, tcid, o.block().opts, skip, fill, o.fill_index); + gen_goto(code, from, to, dfa, tcid, o.block().opts, skip, eof, o.fill_index); const size_t lines = code.size(); if (lines == 1) { @@ -303,10 +303,10 @@ void gen_goto_plain(Output &o, uint32_t ind, const State *from, const State *to, } void gen_goto(code_lines_t &code, const State *from, const State *to - , const DFA &dfa, tcid_t tcid, const opt_t *opts, bool skip, bool fill + , const DFA &dfa, tcid_t tcid, const opt_t *opts, bool skip, bool eof , uint32_t fillidx) { - if (fill) { + if (eof) { gen_on_eof(code, opts, dfa, from, to, fillidx); } -- 2.40.0