Deprecate internal_type(), replace with zeek::lookup_type()

This commit is contained in:
Jon Siwek 2020-05-08 17:44:20 -07:00
parent 32b895f4ba
commit ac06259eec
44 changed files with 218 additions and 182 deletions

View file

@ -7,7 +7,7 @@
#include "Scope.h"
#include "Func.h"
#include "Val.h"
#include "Var.h" // for internal_type()
#include "Var.h"
static inline bool is_established(const analyzer::tcp::TCP_Endpoint* e)
{
@ -145,7 +145,7 @@ RuleConditionEval::RuleConditionEval(const char* func)
rules_error("eval function type must yield a 'bool'", func);
TypeList tl;
tl.Append({NewRef{}, internal_type("signature_state")});
tl.Append(zeek::lookup_type("signature_state"));
tl.Append(base_type(TYPE_STRING));
if ( ! f->CheckArgs(tl.Types()) )