mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Move various elements into ID.h and zeek::id namespace
* A handful of generic/useful/common global type pointers that used to be in NetVar.h * Lookup functions that used to be Var.h
This commit is contained in:
parent
9210d443d3
commit
a5762c12cc
84 changed files with 578 additions and 568 deletions
|
@ -6,9 +6,8 @@
|
|||
#include "Reporter.h"
|
||||
#include "Scope.h"
|
||||
#include "Func.h"
|
||||
#include "ID.h"
|
||||
#include "Val.h"
|
||||
#include "Var.h"
|
||||
#include "ZeekVars.h"
|
||||
|
||||
static inline bool is_established(const analyzer::tcp::TCP_Endpoint* e)
|
||||
{
|
||||
|
@ -145,7 +144,7 @@ RuleConditionEval::RuleConditionEval(const char* func)
|
|||
if ( f->Yield()->Tag() != TYPE_BOOL )
|
||||
rules_error("eval function type must yield a 'bool'", func);
|
||||
|
||||
static auto signature_state = zeek::lookup_type<RecordType>("signature_state");
|
||||
static auto signature_state = zeek::id::lookup_type<RecordType>("signature_state");
|
||||
TypeList tl;
|
||||
tl.Append(signature_state);
|
||||
tl.Append(base_type(TYPE_STRING));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue