mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
Switch Func::Call(val_list*) back to returning Val*
And renamed the method returning IntrusivePtr to operator(). This corrects the deprecation process for Func::Call(val_list*).
This commit is contained in:
parent
85a0ddd62d
commit
087a0f3636
15 changed files with 43 additions and 44 deletions
10
src/Func.cc
10
src/Func.cc
|
@ -294,12 +294,10 @@ bool BroFunc::IsPure() const
|
|||
[](const Body& b) { return b.stmts->IsPure(); });
|
||||
}
|
||||
|
||||
IntrusivePtr<Val> Func::Call(val_list* args, Frame* parent) const
|
||||
{
|
||||
return Call(zeek::val_list_to_args(*args), parent);
|
||||
}
|
||||
Val* Func::Call(val_list* args, Frame* parent) const
|
||||
{ return operator()(zeek::val_list_to_args(*args), parent).release(); };
|
||||
|
||||
IntrusivePtr<Val> BroFunc::Call(const zeek::Args& args, Frame* parent) const
|
||||
IntrusivePtr<Val> BroFunc::operator()(const zeek::Args& args, Frame* parent) const
|
||||
{
|
||||
#ifdef PROFILE_BRO_FUNCTIONS
|
||||
DEBUG_MSG("Function: %s\n", Name());
|
||||
|
@ -605,7 +603,7 @@ bool BuiltinFunc::IsPure() const
|
|||
return is_pure;
|
||||
}
|
||||
|
||||
IntrusivePtr<Val> BuiltinFunc::Call(const zeek::Args& args, Frame* parent) const
|
||||
IntrusivePtr<Val> BuiltinFunc::operator()(const zeek::Args& args, Frame* parent) const
|
||||
{
|
||||
#ifdef PROFILE_BRO_FUNCTIONS
|
||||
DEBUG_MSG("Function: %s\n", Name());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue