From: helly Date: Sun, 7 May 2006 20:33:06 +0000 (+0000) Subject: - Fix/Add missing readCh support in yyaccept jump generation X-Git-Tag: 0.13.6~349 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67e1d200dc10f9eb94469d247494f64c821c9f7a;p=re2c - Fix/Add missing readCh support in yyaccept jump generation # shouldn't be necessary, but might become at some point --- diff --git a/code.cc b/code.cc index 549ccc8c..5ef1071f 100644 --- a/code.cc +++ b/code.cc @@ -529,6 +529,12 @@ void Accept::emit(std::ostream &o, uint ind, bool &readCh) const bUsedYYMarker = true; o << indent(ind) << "YYCURSOR = YYMARKER;\n"; + if (readCh) // shouldn't be necessary, but might become at some point + { + o << indent(ind) << "yych = *YYCURSOR;\n"; + readCh = false; + } + if (mapRules.size() > 1) { bUsedYYAccept = true;