From 67e1d200dc10f9eb94469d247494f64c821c9f7a Mon Sep 17 00:00:00 2001 From: helly Date: Sun, 7 May 2006 20:33:06 +0000 Subject: [PATCH] - Fix/Add missing readCh support in yyaccept jump generation # shouldn't be necessary, but might become at some point --- code.cc | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.50.1