mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 07:08:19 +00:00
Move all Val classes to the zeek namespaces
This commit is contained in:
parent
ec9eff0bd5
commit
64332ca22c
265 changed files with 3154 additions and 3086 deletions
12
src/Frame.cc
12
src/Frame.cc
|
@ -61,22 +61,22 @@ void Frame::AddFunctionWithClosureRef(BroFunc* func)
|
|||
functions_with_closure_frame_reference->emplace_back(func);
|
||||
}
|
||||
|
||||
void Frame::SetElement(int n, Val* v)
|
||||
void Frame::SetElement(int n, zeek::Val* v)
|
||||
{ SetElement(n, {zeek::AdoptRef{}, v}); }
|
||||
|
||||
void Frame::SetElement(int n, ValPtr v)
|
||||
void Frame::SetElement(int n, zeek::ValPtr v)
|
||||
{
|
||||
ClearElement(n);
|
||||
frame[n] = {std::move(v), false};
|
||||
}
|
||||
|
||||
void Frame::SetElementWeak(int n, Val* v)
|
||||
void Frame::SetElementWeak(int n, zeek::Val* v)
|
||||
{
|
||||
ClearElement(n);
|
||||
frame[n] = {{zeek::AdoptRef{}, v}, true};
|
||||
}
|
||||
|
||||
void Frame::SetElement(const zeek::detail::ID* id, ValPtr v)
|
||||
void Frame::SetElement(const zeek::detail::ID* id, zeek::ValPtr v)
|
||||
{
|
||||
if ( closure )
|
||||
{
|
||||
|
@ -105,7 +105,7 @@ void Frame::SetElement(const zeek::detail::ID* id, ValPtr v)
|
|||
SetElement(id->Offset(), std::move(v));
|
||||
}
|
||||
|
||||
const ValPtr& Frame::GetElementByID(const zeek::detail::ID* id) const
|
||||
const zeek::ValPtr& Frame::GetElementByID(const zeek::detail::ID* id) const
|
||||
{
|
||||
if ( closure )
|
||||
{
|
||||
|
@ -172,7 +172,7 @@ Frame* Frame::Clone() const
|
|||
return other;
|
||||
}
|
||||
|
||||
static bool val_is_func(const ValPtr& v, BroFunc* func)
|
||||
static bool val_is_func(const zeek::ValPtr& v, BroFunc* func)
|
||||
{
|
||||
if ( v->GetType()->Tag() != zeek::TYPE_FUNC )
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue