diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
commit | 718c552901d703c502ccbefdfc3c9028d608b947 (patch) | |
tree | 46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /contrib/tools/ragel6/csflat.cpp | |
parent | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff) | |
download | ydb-718c552901d703c502ccbefdfc3c9028d608b947.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/ragel6/csflat.cpp')
-rw-r--r-- | contrib/tools/ragel6/csflat.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/contrib/tools/ragel6/csflat.cpp b/contrib/tools/ragel6/csflat.cpp index 4d5bafa124..eca9de1a1b 100644 --- a/contrib/tools/ragel6/csflat.cpp +++ b/contrib/tools/ragel6/csflat.cpp @@ -267,11 +267,11 @@ std::ostream &CSharpFlatCodeGen::COND_KEYS() /* Output one last number so we don't have to figure out when the last * entry is and avoid writing a comma. */ - if ( keyOps->alphType->isChar ) - out << "(char) " << 0 << "\n"; - else - out << 0 << "\n"; - + if ( keyOps->alphType->isChar ) + out << "(char) " << 0 << "\n"; + else + out << 0 << "\n"; + return out; } @@ -356,11 +356,11 @@ std::ostream &CSharpFlatCodeGen::KEYS() /* Output one last number so we don't have to figure out when the last * entry is and avoid writing a comma. */ - if ( keyOps->alphType->isChar ) - out << "(char) " << 0 << "\n"; - else - out << 0 << "\n"; - + if ( keyOps->alphType->isChar ) + out << "(char) " << 0 << "\n"; + else + out << 0 << "\n"; + return out; } @@ -724,8 +724,8 @@ void CSharpFlatCodeGen::writeExec() redFsm->anyRegActions() || redFsm->anyFromStateActions() ) { out << - " int _acts;\n" - " int _nacts;\n"; + " int _acts;\n" + " int _nacts;\n"; } out << |