From: helly Date: Sat, 8 Apr 2006 19:21:53 +0000 (+0000) Subject: - Simplify fillIndex handling in need() X-Git-Tag: 0.13.6~424 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ccf14fd17d6ea6f0acd4ff57758221e2d8fc274e;p=re2c - Simplify fillIndex handling in need() --- diff --git a/code.cc b/code.cc index 53820f82..82d541be 100644 --- a/code.cc +++ b/code.cc @@ -293,18 +293,14 @@ void genIf(std::ostream &o, uint ind, const char *cmp, uint v, bool &readCh) static void need(std::ostream &o, uint ind, uint n, bool & readCh) { - uint fillIndex; + uint fillIndex = vFillIndexes; bool hasFillIndex = (0<=vFillIndexes); if (hasFillIndex) { - fillIndex = vFillIndexes++; + vFillIndexes++; o << indent(ind) << "YYSETSTATE(" << fillIndex << ");\n"; } - else - { - fillIndex = ~0; - } if (n == 1) {