Mark global val_mgr as deprecated and fix uses of it to use namespaced version

This commit is contained in:
Tim Wojtulewicz 2020-07-02 13:08:41 -07:00
parent 3098dd6fbb
commit 86fdf0eaa9
134 changed files with 1579 additions and 1580 deletions

View file

@ -34,7 +34,7 @@ function precompile_pcap_filter%(id: PcapFilterID, s: string%): bool
// lookups and limit the ID space so that that doesn't grow too
// large.
zeek::emit_builtin_error(fmt("PCAP filter ids must remain below 100 (is %" PRId64 ")", id->AsInt()));
return val_mgr->False();
return zeek::val_mgr->False();
}
bool success = true;
@ -43,7 +43,7 @@ function precompile_pcap_filter%(id: PcapFilterID, s: string%): bool
if ( ps && ! ps->PrecompileFilter(id->ForceAsInt(), s->CheckString()) )
success = false;
return val_mgr->Bool(success);
return zeek::val_mgr->Bool(success);
%}
## Installs a PCAP filter that has been precompiled with
@ -72,7 +72,7 @@ function Pcap::install_pcap_filter%(id: PcapFilterID%): bool
if ( ps && ! ps->SetFilter(id->ForceAsInt()) )
success = false;
return val_mgr->Bool(success);
return zeek::val_mgr->Bool(success);
%}
## Returns a string representation of the last PCAP error.