mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Move Reporter to zeek namespace
This commit is contained in:
parent
7cedd94ee7
commit
bfab224d7c
132 changed files with 1010 additions and 987 deletions
12
src/Var.cc
12
src/Var.cc
|
@ -27,7 +27,7 @@ static zeek::ValPtr init_val(zeek::detail::Expr* init,
|
|||
{
|
||||
return init->InitVal(t, std::move(aggr));
|
||||
}
|
||||
catch ( InterpreterException& e )
|
||||
catch ( zeek::InterpreterException& e )
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
@ -541,11 +541,11 @@ void begin_func(zeek::detail::IDPtr id, const char* module_name,
|
|||
|
||||
if ( f->attrs && f->attrs->Find(zeek::detail::ATTR_DEFAULT) )
|
||||
{
|
||||
reporter->PushLocation(args->GetLocationInfo());
|
||||
reporter->Warning(
|
||||
zeek::reporter->PushLocation(args->GetLocationInfo());
|
||||
zeek::reporter->Warning(
|
||||
"&default on parameter '%s' has no effect (not a %s declaration)",
|
||||
args->FieldName(i), t->FlavorString().data());
|
||||
reporter->PopLocation();
|
||||
zeek::reporter->PopLocation();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -597,7 +597,7 @@ void begin_func(zeek::detail::IDPtr id, const char* module_name,
|
|||
break;
|
||||
|
||||
default:
|
||||
reporter->InternalError("invalid function flavor");
|
||||
zeek::reporter->InternalError("invalid function flavor");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -836,7 +836,7 @@ zeek::ListVal* internal_list_val(const char* name)
|
|||
}
|
||||
|
||||
else
|
||||
reporter->InternalError("internal variable %s is not a list", name);
|
||||
zeek::reporter->InternalError("internal variable %s is not a list", name);
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue