aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/ragel6/rubycodegen.cpp
diff options
context:
space:
mode:
authororivej <orivej@yandex-team.ru>2022-02-10 16:44:49 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:44:49 +0300
commit718c552901d703c502ccbefdfc3c9028d608b947 (patch)
tree46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /contrib/tools/ragel6/rubycodegen.cpp
parente9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff)
downloadydb-718c552901d703c502ccbefdfc3c9028d608b947.tar.gz
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/ragel6/rubycodegen.cpp')
-rw-r--r--contrib/tools/ragel6/rubycodegen.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/contrib/tools/ragel6/rubycodegen.cpp b/contrib/tools/ragel6/rubycodegen.cpp
index ee68238934..f35c33de3d 100644
--- a/contrib/tools/ragel6/rubycodegen.cpp
+++ b/contrib/tools/ragel6/rubycodegen.cpp
@@ -58,7 +58,7 @@ using std::endl;
extern CodeStyle codeStyle;
extern int numSplitPartitions;
-extern bool noLineDirectives;
+extern bool noLineDirectives;
/*
* Callbacks invoked by the XML data parser.
@@ -67,9 +67,9 @@ extern bool noLineDirectives;
void rubyLineDirective( ostream &out, const char *fileName, int line )
{
- if ( noLineDirectives )
- return;
-
+ if ( noLineDirectives )
+ return;
+
/* Write a comment containing line info. */
out << "# line " << line << " \"";
for ( const char *pc = fileName; *pc != 0; pc++ ) {
@@ -311,9 +311,9 @@ string RubyCodeGen::GET_KEY()
ret << ")";
}
else {
- /* Expression for retrieving the key, use dereference and read ordinal,
- * for compatibility with Ruby 1.9. */
- ret << DATA() << "[" << P() << "].ord";
+ /* Expression for retrieving the key, use dereference and read ordinal,
+ * for compatibility with Ruby 1.9. */
+ ret << DATA() << "[" << P() << "].ord";
}
return ret.str();
}
@@ -430,7 +430,7 @@ void RubyCodeGen::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";