From: helly Date: Mon, 17 Nov 2008 22:04:29 +0000 (+0000) Subject: - Improved check for neccessity for translation X-Git-Tag: 0.13.6~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eba7a2df165e5e3bdfc24e3ef55a2122b66b01e8;p=re2c - Improved check for neccessity for translation --- diff --git a/re2c/dfa.cc b/re2c/dfa.cc index df6401d7..3bbd5765 100644 --- a/re2c/dfa.cc +++ b/re2c/dfa.cc @@ -10,7 +10,7 @@ namespace re2c void prtChOrHex(std::ostream& o, uint c, bool useTalx) { - int oc = (int)((re2c::wFlag && !re2c::eFlag) || !useTalx ? c : re2c::talx[c]); + uint oc = eFlag && !wFlag && useTalx ? re2c::talx[c] : c; if ((oc < 256) && (isprint(oc) || isspace(oc))) { @@ -28,7 +28,7 @@ void prtChOrHex(std::ostream& o, uint c, bool useTalx) void prtHex(std::ostream& o, uint c, bool useTalx) { - int oc = (int)((re2c::wFlag && !re2c::eFlag) || !useTalx ? c : re2c::talx[c]); + uint oc = eFlag && !wFlag && useTalx ? re2c::talx[c] : c; if (re2c::uFlag) { @@ -60,7 +60,7 @@ void prtHex(std::ostream& o, uint c, bool useTalx) void prtCh(std::ostream& o, uint c, bool useTalx) { - int oc = (int)((re2c::wFlag && !re2c::eFlag) || !useTalx ? c : re2c::talx[c]); + uint oc = eFlag && !wFlag && useTalx ? re2c::talx[c] : c; switch (oc) {