"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/base/scriptframe.cpp" between
icinga2-2.11.5.tar.gz and icinga2-2.12.0.tar.gz

About: Icinga 2 is an enterprise grade monitoring system which keeps watch over networks and any conceivable network resource.

scriptframe.cpp  (icinga2-2.11.5):scriptframe.cpp  (icinga2-2.12.0)
skipping to change at line 25 skipping to change at line 25
/* Ensure that this gets called with highest priority /* Ensure that this gets called with highest priority
* and wins against other static initializers in lib/icinga, etc. * and wins against other static initializers in lib/icinga, etc.
* LTO-enabled builds will cause trouble otherwise, see GH #6575. * LTO-enabled builds will cause trouble otherwise, see GH #6575.
*/ */
INITIALIZE_ONCE_WITH_PRIORITY([]() { INITIALIZE_ONCE_WITH_PRIORITY([]() {
Namespace::Ptr globalNS = ScriptGlobal::GetGlobals(); Namespace::Ptr globalNS = ScriptGlobal::GetGlobals();
auto systemNSBehavior = new ConstNamespaceBehavior(); auto systemNSBehavior = new ConstNamespaceBehavior();
systemNSBehavior->Freeze(); systemNSBehavior->Freeze();
Namespace::Ptr systemNS = new Namespace(systemNSBehavior); Namespace::Ptr systemNS = new Namespace(systemNSBehavior);
globalNS->SetAttribute("System", std::make_shared<ConstEmbeddedNamespaceV alue>(systemNS)); globalNS->SetAttribute("System", new ConstEmbeddedNamespaceValue(systemNS ));
systemNS->SetAttribute("Configuration", std::make_shared<EmbeddedNamespac eValue>(new Configuration())); systemNS->SetAttribute("Configuration", new EmbeddedNamespaceValue(new Co nfiguration()));
auto typesNSBehavior = new ConstNamespaceBehavior(); auto typesNSBehavior = new ConstNamespaceBehavior();
typesNSBehavior->Freeze(); typesNSBehavior->Freeze();
Namespace::Ptr typesNS = new Namespace(typesNSBehavior); Namespace::Ptr typesNS = new Namespace(typesNSBehavior);
globalNS->SetAttribute("Types", std::make_shared<ConstEmbeddedNamespaceVa lue>(typesNS)); globalNS->SetAttribute("Types", new ConstEmbeddedNamespaceValue(typesNS)) ;
auto statsNSBehavior = new ConstNamespaceBehavior(); auto statsNSBehavior = new ConstNamespaceBehavior();
statsNSBehavior->Freeze(); statsNSBehavior->Freeze();
Namespace::Ptr statsNS = new Namespace(statsNSBehavior); Namespace::Ptr statsNS = new Namespace(statsNSBehavior);
globalNS->SetAttribute("StatsFunctions", std::make_shared<ConstEmbeddedNa mespaceValue>(statsNS)); globalNS->SetAttribute("StatsFunctions", new ConstEmbeddedNamespaceValue( statsNS));
Namespace::Ptr internalNS = new Namespace(l_InternalNSBehavior); Namespace::Ptr internalNS = new Namespace(l_InternalNSBehavior);
globalNS->SetAttribute("Internal", std::make_shared<ConstEmbeddedNamespac eValue>(internalNS)); globalNS->SetAttribute("Internal", new ConstEmbeddedNamespaceValue(intern alNS));
}, 1000); }, 1000);
INITIALIZE_ONCE_WITH_PRIORITY([]() { INITIALIZE_ONCE_WITH_PRIORITY([]() {
l_InternalNSBehavior->Freeze(); l_InternalNSBehavior->Freeze();
}, 0); }, 0);
ScriptFrame::ScriptFrame(bool allocLocals) ScriptFrame::ScriptFrame(bool allocLocals)
: Locals(allocLocals ? new Dictionary() : nullptr), Self(ScriptGlobal::Ge tGlobals()), Sandboxed(false), Depth(0) : Locals(allocLocals ? new Dictionary() : nullptr), Self(ScriptGlobal::Ge tGlobals()), Sandboxed(false), Depth(0)
{ {
InitializeFrame(); InitializeFrame();
 End of changes. 5 change blocks. 
5 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)