00001 #include "xi-Construct.h" 00002 00003 namespace xi { 00004 00005 Construct::Construct() : external(0) {} 00006 void Construct::setExtern(int& e) { external = e; } 00007 void Construct::setModule(Module* m) { containerModule = m; } 00008 00009 ConstructList::ConstructList(int l, Construct* c, ConstructList* n) 00010 : AstChildren<Construct>(l, c, n) {} 00011 00012 void AccelBlock::outputCode(XStr& str) { 00013 if (code != NULL) { 00014 str << "\n"; 00015 templateGuardBegin(false, str); 00016 str << "/***** Accel_Block Start *****/\n" 00017 << (*(code)) << "\n/***** Accel_Block End *****/\n"; 00018 templateGuardEnd(str); 00019 str << "\n"; 00020 } 00021 } 00022 00023 AccelBlock::AccelBlock(int l, XStr* c) { 00024 line = l; 00025 code = c; 00026 } 00027 AccelBlock::~AccelBlock() { delete code; } 00028 00030 void AccelBlock::print(XStr& str) { (void)str; } 00031 00033 void AccelBlock::genDefs(XStr& str) { outputCode(str); } 00034 00036 int AccelBlock::genAccels_spe_c_funcBodies(XStr& str) { 00037 outputCode(str); 00038 return 0; 00039 } 00040 00041 } // namespace xi