void xml_compiler::remapclasses_initialize_vector::start(uint32_t config_index, const std::string& raw_identifier) { assert(! freezed_); if (is_config_index_added_.find(config_index) != is_config_index_added_.end()) { throw xml_compiler_runtime_error(boost::format("Duplicated identifier:\n" "\n" "<identifier>%1%</identifier>") % raw_identifier); } if (! ended_) { cleanup_(); } start_index_ = data_.size(); ended_ = false; // size data_.push_back(1); // 1 == count of config_index // config_index data_.push_back(config_index); }
int modentry(int boot, Module m, void *ptr) { switch (boot) { case 0: return setup_(m); break; case 1: return boot_(m); break; case 2: return cleanup_(m); break; case 3: return finish_(m); break; case 4: return features_(m, (char ***)ptr); break; case 5: return enables_(m, (int **)ptr); break; default: zerr("bad call to modentry"); return 1; break; } }
void TestSuite::Cleanup(void) { Print(GetFormattedSuiteTitle() + "Cleanup ongoing..."); if (cleanup_ != NULL) cleanup_(GetFormattedSuiteTitle()); Print(GetFormattedSuiteTitle() + "Cleanup completed!"); PrintEnd(GetFormattedSuiteTitle() + "Completed!", true); }
void TestCase::Cleanup(void) { Print(GetFormattedCaseTitle() + "Cleanup ongoing..."); if (cleanup_ != NULL) cleanup_(GetFormattedCaseTitle()); Print(GetFormattedCaseTitle() + "Cleanup completed!"); PrintEnd(GetFormattedCaseTitle() + "Completed!", result_); }
void xml_compiler::remapclasses_initialize_vector::freeze(void) { assert(! freezed_); cleanup_(); for (uint32_t i = 0; i < max_config_index_; ++i) { if (is_config_index_added_.find(i) == is_config_index_added_.end()) { start(i, ""); end(); } } freezed_ = true; }
/** ========================================================================== *** FUNCTION bi_cleanup <<< *** ======================================================================= */ void bi_cleanup(void *data) { cleanup_(); return; }