mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 21:48:21 +00:00
Reintroduce event groups
This started with reverting commit 52cd02173d
and then rewriting it to be per handler rather than handler identifier
and adding support for hooks as well as adding implicit module groups.
This commit is contained in:
parent
5aa7d80e88
commit
2ad609cbbb
30 changed files with 730 additions and 49 deletions
11
src/Expr.cc
11
src/Expr.cc
|
@ -4762,9 +4762,9 @@ LambdaExpr::LambdaExpr(std::unique_ptr<function_ingredients> arg_ing, IDPList ar
|
|||
|
||||
// Install a dummy version of the function globally for use only
|
||||
// when broker provides a closure.
|
||||
auto dummy_func = make_intrusive<ScriptFunc>(ingredients->id, ingredients->body,
|
||||
ingredients->inits, ingredients->frame_size,
|
||||
ingredients->priority);
|
||||
auto dummy_func = make_intrusive<ScriptFunc>(ingredients->id);
|
||||
dummy_func->AddBody(ingredients->body, ingredients->inits, ingredients->frame_size,
|
||||
ingredients->priority);
|
||||
|
||||
dummy_func->SetOuterIDs(outer_ids);
|
||||
|
||||
|
@ -4892,8 +4892,9 @@ ScopePtr LambdaExpr::GetScope() const
|
|||
|
||||
ValPtr LambdaExpr::Eval(Frame* f) const
|
||||
{
|
||||
auto lamb = make_intrusive<ScriptFunc>(ingredients->id, ingredients->body, ingredients->inits,
|
||||
ingredients->frame_size, ingredients->priority);
|
||||
auto lamb = make_intrusive<ScriptFunc>(ingredients->id);
|
||||
lamb->AddBody(ingredients->body, ingredients->inits, ingredients->frame_size,
|
||||
ingredients->priority);
|
||||
|
||||
lamb->CreateCaptures(f);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue