diff options
author | Adrian Thurston <thurston@complang.org> | 2013-04-07 09:27:40 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2013-04-07 09:27:40 -0400 |
commit | f2c2fe5e637d3c03407ca835bba125784e0af1f1 (patch) | |
tree | 06f7f3d795beaa5ca7b5ab56f34590e5fbdfd247 /colm/exports.cc | |
parent | f8913779ce2793fc1f9996236e7c8a7ab18e31a1 (diff) | |
download | colm-f2c2fe5e637d3c03407ca835bba125784e0af1f1.tar.gz |
collect-ignore property and pointers rephrased to 'zero'
Diffstat (limited to 'colm/exports.cc')
-rw-r--r-- | colm/exports.cc | 17 |
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"; |