mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 23:58:20 +00:00
Merge remote-tracking branch 'origin/topic/vern/when-cleanup'
* origin/topic/vern/when-cleanup: test suite update for minor change in "when" error messages removed skeletal (non-functioning) "when" support from ZAM simplify WhenInfo and Trigger classes given removal of old capture semantics introduced notion of light-weight Frame clones changed function_ingredients struct to FunctionIngredients class with accessors Renamed Frame::LightClone() to Frame::CloneForTrigger() during merge.
This commit is contained in:
commit
92f09f0db7
24 changed files with 158 additions and 335 deletions
11
src/Frame.cc
11
src/Frame.cc
|
@ -120,6 +120,17 @@ Frame* Frame::Clone() const
|
|||
return other;
|
||||
}
|
||||
|
||||
Frame* Frame::CloneForTrigger() const
|
||||
{
|
||||
Frame* other = new Frame(0, function, func_args);
|
||||
|
||||
other->call = call;
|
||||
other->assoc = assoc;
|
||||
other->trigger = trigger;
|
||||
|
||||
return other;
|
||||
}
|
||||
|
||||
static bool val_is_func(const ValPtr& v, ScriptFunc* func)
|
||||
{
|
||||
if ( v->GetType()->Tag() != TYPE_FUNC )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue