summaryrefslogtreecommitdiff
path: root/colm/exports.cc
diff options
context:
space:
mode:
Diffstat (limited to 'colm/exports.cc')
-rw-r--r--colm/exports.cc17
1 files changed, 3 insertions, 14 deletions
diff --git a/colm/exports.cc b/colm/exports.cc
index 071aca85..b15af16b 100644
--- a/colm/exports.cc
+++ b/colm/exports.cc
@@ -94,14 +94,9 @@ void Compiler::generateExports()
/* Declare. */
for ( LelList::Iter lel = langEls; lel.lte(); lel++ ) {
- if ( lel->isEOF ) {
- out << "// isEOF\n";
+ if ( lel->isEOF || lel->isZero )
continue;
- }
- if ( lel->isCI != 0 ) {
- out << "// isCI != 0\n";
- continue;
- }
+
openNameSpace( out, lel->nspace );
out << "struct " << lel->fullName << ";";
closeNameSpace( out, lel->nspace );
@@ -110,14 +105,8 @@ void Compiler::generateExports()
/* Class definitions. */
for ( LelList::Iter lel = langEls; lel.lte(); lel++ ) {
- if ( lel->isEOF ) {
- out << "// isEOF\n";
- continue;
- }
- if ( lel->isCI != 0 ) {
- out << "// isCI != 0\n";
+ if ( lel->isEOF || lel->isZero )
continue;
- }
openNameSpace( out, lel->nspace );
out << "struct " << lel->fullName << "\n";