mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Maintenance updates for -O gen-C++ / -O gen-standalone-C++
fixes for using BiFs in standalone global initializations avoiding redundant global initializations updates to maintenance scripts and notes removal of an unused member variable
This commit is contained in:
parent
5827e2ce5d
commit
18f4fcb5a4
12 changed files with 77 additions and 38 deletions
|
@ -495,17 +495,14 @@ void CPPCompile::GenFinishInit()
|
|||
|
||||
NL();
|
||||
|
||||
Emit("load_BiFs__CPP();");
|
||||
|
||||
if ( standalone )
|
||||
// BiFs need to be loaded later, because the main
|
||||
// initialization finishes upon loading of the activation
|
||||
// Note, BiFs will also be loaded again later, because the
|
||||
// main initialization finishes upon loading of the activation
|
||||
// script, rather than after all scripts have been parsed
|
||||
// and BiFs have been loaded.
|
||||
// and plugins (with BiFs) have been loaded.
|
||||
Emit("init_globals__CPP();");
|
||||
else
|
||||
// For non-standalone, we're only initializing after all
|
||||
// scripts have been parsed and BiFs loaded, so it's fine
|
||||
// to go ahead and do so now.
|
||||
Emit("load_BiFs__CPP();");
|
||||
|
||||
EndBlock();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue