mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
Val: eliminate the "CompHash.h" include
This commit is contained in:
parent
4aac78cf29
commit
728184ea93
4 changed files with 10 additions and 3 deletions
|
@ -3,6 +3,7 @@
|
|||
#include <memory>
|
||||
|
||||
#include "OpaqueVal.h"
|
||||
#include "CompHash.h"
|
||||
#include "NetVar.h"
|
||||
#include "Reporter.h"
|
||||
#include "Scope.h"
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include "zeek-config.h"
|
||||
|
||||
#include "CompHash.h"
|
||||
#include "Expr.h"
|
||||
#include "Event.h"
|
||||
#include "Frame.h"
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
#include "Attr.h"
|
||||
#include "CompHash.h"
|
||||
#include "Dict.h"
|
||||
#include "Net.h"
|
||||
#include "File.h"
|
||||
|
@ -2555,6 +2556,11 @@ unsigned int TableVal::MemoryAllocation() const
|
|||
+ table_hash->MemoryAllocation();
|
||||
}
|
||||
|
||||
HashKey* TableVal::ComputeHash(const Val* index) const
|
||||
{
|
||||
return table_hash->ComputeHash(index, 1);
|
||||
}
|
||||
|
||||
vector<RecordVal*> RecordVal::parse_time_records;
|
||||
|
||||
RecordVal::RecordVal(RecordType* t, bool init_fields) : Val(t)
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#pragma once
|
||||
|
||||
#include "Type.h"
|
||||
#include "CompHash.h"
|
||||
#include "BroString.h"
|
||||
#include "Timer.h"
|
||||
#include "Notifier.h"
|
||||
|
@ -698,6 +697,7 @@ protected:
|
|||
};
|
||||
|
||||
class CompositeHash;
|
||||
class HashKey;
|
||||
class Frame;
|
||||
|
||||
class TableVal : public Val, public notifier::Modifiable {
|
||||
|
@ -814,8 +814,7 @@ public:
|
|||
timer = 0;
|
||||
}
|
||||
|
||||
HashKey* ComputeHash(const Val* index) const
|
||||
{ return table_hash->ComputeHash(index, 1); }
|
||||
HashKey* ComputeHash(const Val* index) const;
|
||||
|
||||
notifier::Modifiable* Modifiable() override { return this; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue