summaryrefslogtreecommitdiffstats
path: root/contrib/tools/ragel6/cscodegen.cpp
diff options
context:
space:
mode:
authororivej <[email protected]>2022-02-10 16:45:01 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:01 +0300
commit2d37894b1b037cf24231090eda8589bbb44fb6fc (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/tools/ragel6/cscodegen.cpp
parent718c552901d703c502ccbefdfc3c9028d608b947 (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'contrib/tools/ragel6/cscodegen.cpp')
-rw-r--r--contrib/tools/ragel6/cscodegen.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/contrib/tools/ragel6/cscodegen.cpp b/contrib/tools/ragel6/cscodegen.cpp
index 7ff9ba5b541..37eb5211def 100644
--- a/contrib/tools/ragel6/cscodegen.cpp
+++ b/contrib/tools/ragel6/cscodegen.cpp
@@ -340,10 +340,10 @@ string CSharpFsmCodeGen::ALPHA_KEY( Key key )
if (key.getVal() > 0xFFFF) {
ret << key.getVal();
} else {
- if ( keyOps->alphType->isChar )
- ret << "'\\u" << std::hex << std::setw(4) << std::setfill('0') << key.getVal() << "'";
- else
- ret << key.getVal();
+ if ( keyOps->alphType->isChar )
+ ret << "'\\u" << std::hex << std::setw(4) << std::setfill('0') << key.getVal() << "'";
+ else
+ ret << key.getVal();
}
//ret << "(char) " << key.getVal();
return ret.str();
@@ -635,7 +635,7 @@ void CSharpFsmCodeGen::STATE_IDS()
out << "\n";
- if ( !noEntry && entryPointNames.length() > 0 ) {
+ if ( !noEntry && entryPointNames.length() > 0 ) {
for ( EntryNameVect::Iter en = entryPointNames; en.lte(); en++ ) {
STATIC_VAR( "int", DATA_PREFIX() + "en_" + *en ) <<
" = " << entryPointIds[en.pos()] << ";\n";
@@ -674,12 +674,12 @@ string CSharpCodeGen::GET_KEY()
}
else {
/* Expression for retrieving the key, use simple dereference. */
- if ( dataExpr == 0 )
- ret << "data";
- else
- INLINE_LIST( ret, dataExpr, 0, false );
-
- ret << "[" << P() << "]";
+ if ( dataExpr == 0 )
+ ret << "data";
+ else
+ INLINE_LIST( ret, dataExpr, 0, false );
+
+ ret << "[" << P() << "]";
}
return ret.str();
}