mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
GH-1122: Allow initializing globals with calls to subdir BIFs
This commit is contained in:
parent
cf06ade325
commit
1bbae2368d
9 changed files with 65 additions and 18 deletions
|
@ -74,6 +74,7 @@ extern RETSIGTYPE sig_handler(int signo);
|
|||
namespace zeek::detail {
|
||||
std::vector<CallInfo> call_stack;
|
||||
bool did_builtin_init = false;
|
||||
std::vector<void (*)()> bif_initializers;
|
||||
static const std::pair<bool, zeek::ValPtr> empty_hook_result(false, nullptr);
|
||||
} // namespace zeek::detail
|
||||
|
||||
|
@ -936,9 +937,6 @@ void builtin_error(const char* msg, zeek::Obj* arg)
|
|||
zeek::emit_builtin_error(msg, arg);
|
||||
}
|
||||
|
||||
#include "__all__.bif.cc" // Autogenerated for compiling in the bif_target() code.
|
||||
#include "__all__.bif.register.cc" // Autogenerated for compiling in the bif_target() code.
|
||||
|
||||
void init_builtin_funcs()
|
||||
{
|
||||
ProcStats = zeek::id::find_type<zeek::RecordType>("ProcStats");
|
||||
|
@ -966,8 +964,3 @@ void init_builtin_funcs()
|
|||
|
||||
zeek::detail::did_builtin_init = true;
|
||||
}
|
||||
|
||||
void init_builtin_funcs_subdirs()
|
||||
{
|
||||
#include "__all__.bif.init.cc" // Autogenerated for compiling in the bif_target() code.
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue