mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Deprecate internal_type(), replace with zeek::lookup_type()
This commit is contained in:
parent
32b895f4ba
commit
ac06259eec
44 changed files with 218 additions and 182 deletions
|
@ -59,22 +59,22 @@ bool BroSubstring::DoesCover(const BroSubstring* bst) const
|
|||
VectorVal* BroSubstring::VecToPolicy(Vec* vec)
|
||||
{
|
||||
RecordType* sw_substring_type =
|
||||
internal_type("sw_substring")->AsRecordType();
|
||||
zeek::lookup_type("sw_substring")->AsRecordType();
|
||||
if ( ! sw_substring_type )
|
||||
return nullptr;
|
||||
|
||||
RecordType* sw_align_type =
|
||||
internal_type("sw_align")->AsRecordType();
|
||||
zeek::lookup_type("sw_align")->AsRecordType();
|
||||
if ( ! sw_align_type )
|
||||
return nullptr;
|
||||
|
||||
VectorType* sw_align_vec_type =
|
||||
internal_type("sw_align_vec")->AsVectorType();
|
||||
zeek::lookup_type("sw_align_vec")->AsVectorType();
|
||||
if ( ! sw_align_vec_type )
|
||||
return nullptr;
|
||||
|
||||
VectorVal* result =
|
||||
new VectorVal(internal_type("sw_substring_vec")->AsVectorType());
|
||||
new VectorVal(zeek::lookup_type("sw_substring_vec")->AsVectorType());
|
||||
if ( ! result )
|
||||
return nullptr;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue