summaryrefslogtreecommitdiff
path: root/ragel/cdcodegen.cpp
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2014-11-26 17:48:47 -0500
committerAdrian Thurston <thurston@complang.org>2014-11-26 18:11:18 -0500
commit4e5bbe017cc9244897d8ff49f93c2704a3b83a38 (patch)
tree7292b4506ec911cb5de98a3c7ba80ea163426386 /ragel/cdcodegen.cpp
parent4ec27569bd87f630ad688a3e81ff816a2492911d (diff)
downloadragel-4e5bbe017cc9244897d8ff49f93c2704a3b83a38.tar.gz
table CLOSE formatting moved into TableArray
Diffstat (limited to 'ragel/cdcodegen.cpp')
-rw-r--r--ragel/cdcodegen.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/ragel/cdcodegen.cpp b/ragel/cdcodegen.cpp
index 9ded651d..6dd36772 100644
--- a/ragel/cdcodegen.cpp
+++ b/ragel/cdcodegen.cpp
@@ -92,7 +92,9 @@ void TableArray::KEY( Key key )
void TableArray::CLOSE()
{
+ out << "\n";
codeGen.CLOSE_ARRAY();
+ out << "\n";
}
void FsmCodeGen::genLineDirective( ostream &out )
@@ -177,11 +179,7 @@ std::ostream &FsmCodeGen::ACTIONS_ARRAY()
}
}
- out << "\n";
-
taA.CLOSE();
- out << "\n";
-
return out;
}