void DCodeGen::writeExports() { if ( exportList.length() > 0 ) { for ( ExportList::Iter ex = exportList; ex.lte(); ex++ ) { out << "static const " << ALPH_TYPE() << " " << DATA_PREFIX() << "ex_" << ex->name << " = " << KEY(ex->key) << ";\n"; } out << "\n"; } }
void CCodeGen::writeExports() { if ( exportList.length() > 0 ) { for ( ExportList::Iter ex = exportList; ex.lte(); ex++ ) { out << "#define " << DATA_PREFIX() << "ex_" << ex->name << " " << KEY(ex->key) << "\n"; } out << "\n"; } }
void JSCodeGen::writeExports() { if ( exportList.length() > 0 ) { for ( ExportList::Iter ex = exportList; ex.lte(); ex++ ) { STATIC_VAR( ALPH_TYPE(), DATA_PREFIX() + "ex_" + ex->name ) << " = " << KEY(ex->key) << ";\n"; } out << "\n"; } }
void GoCodeGen::writeExports() { if ( exportList.length() > 0 ) { for ( ExportList::Iter ex = exportList; ex.lte(); ex++ ) { out << "const " << DATA_PREFIX() << "ex_" << ex->name << " = " << KEY(ex->key) << endl; } out << endl; } }
void XMLCodeGen::writeExports() { if ( pd->exportList.length() > 0 ) { out << " <exports>\n"; for ( ExportList::Iter exp = pd->exportList; exp.lte(); exp++ ) { out << " <ex name=\"" << exp->name << "\">"; writeKey( exp->key ); out << "</ex>\n"; } out << " </exports>\n"; } }
void BackendGen::makeExports() { for ( ExportList::Iter exp = pd->exportList; exp.lte(); exp++ ) cgd->exportList.append( new Export( exp->name, exp->key ) ); }