Move Func and associated classes into zeek::detail namespace

This commit is contained in:
Tim Wojtulewicz 2020-06-22 15:45:40 -07:00
parent 937a462e70
commit d6f1ea16ac
51 changed files with 516 additions and 453 deletions

View file

@ -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 )