mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 13:38:19 +00:00
Move Func and associated classes into zeek::detail namespace
This commit is contained in:
parent
937a462e70
commit
d6f1ea16ac
51 changed files with 516 additions and 453 deletions
|
@ -370,7 +370,7 @@ struct val_converter {
|
|||
if ( ! frame )
|
||||
return nullptr;
|
||||
|
||||
BroFunc* b = dynamic_cast<BroFunc*>(rval->AsFunc());
|
||||
auto* b = dynamic_cast<zeek::detail::BroFunc*>(rval->AsFunc());
|
||||
if ( ! b )
|
||||
return nullptr;
|
||||
|
||||
|
@ -852,7 +852,7 @@ broker::expected<broker::data> bro_broker::val_to_data(const zeek::Val* v)
|
|||
return {string(v->AsFile()->Name())};
|
||||
case zeek::TYPE_FUNC:
|
||||
{
|
||||
const Func* f = v->AsFunc();
|
||||
const zeek::detail::Func* f = v->AsFunc();
|
||||
std::string name(f->Name());
|
||||
|
||||
broker::vector rval;
|
||||
|
@ -861,7 +861,7 @@ broker::expected<broker::data> bro_broker::val_to_data(const zeek::Val* v)
|
|||
if ( name.find("lambda_<") == 0 )
|
||||
{
|
||||
// Only BroFuncs have closures.
|
||||
if ( auto b = dynamic_cast<const BroFunc*>(f) )
|
||||
if ( auto b = dynamic_cast<const zeek::detail::BroFunc*>(f) )
|
||||
{
|
||||
auto bc = b->SerializeClosure();
|
||||
if ( ! bc )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue