]> granicus.if.org Git - re2c/commitdiff
Renamed misleadingly named parameter.
authorUlya Trofimovich <skvadrik@gmail.com>
Thu, 18 Jul 2019 15:56:47 +0000 (16:56 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Thu, 18 Jul 2019 15:56:47 +0000 (16:56 +0100)
src/codegen/emit.h
src/codegen/emit_action.cc

index 078d3836ba80259f095d5d932e9f1f2394dce50e..63a3cc64701af463171266c6558523506f820a39 100644 (file)
@@ -10,9 +10,9 @@ namespace re2c {
 typedef std::vector<std::string> code_lines_t;
 
 void emit_action(Output &o, uint32_t ind, const DFA &dfa, const State *s, const std::set<label_t> &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);
index 2fc165040a8c651e7990ad03aa0cc3faedb4a4dc..9f673ebb685994bfe790406caa351b26f0be95d8 100644 (file)
@@ -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);
     }