mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
Val: eliminate the "BroString.h" include
This commit is contained in:
parent
728184ea93
commit
e98cf0a4a0
21 changed files with 48 additions and 6 deletions
11
src/Val.h
11
src/Val.h
|
@ -3,7 +3,6 @@
|
|||
#pragma once
|
||||
|
||||
#include "Type.h"
|
||||
#include "BroString.h"
|
||||
#include "Timer.h"
|
||||
#include "Notifier.h"
|
||||
#include "RE.h"
|
||||
|
@ -33,6 +32,7 @@ template<typename T> class PDict;
|
|||
class IterCookie;
|
||||
|
||||
class Val;
|
||||
class BroString;
|
||||
class BroFunc;
|
||||
class Func;
|
||||
class BroFile;
|
||||
|
@ -546,12 +546,11 @@ public:
|
|||
explicit StringVal(const string& s);
|
||||
StringVal(int length, const char* s);
|
||||
|
||||
Val* SizeVal() const override
|
||||
{ return val_mgr->GetCount(val.string_val->Len()); }
|
||||
Val* SizeVal() const override;
|
||||
|
||||
int Len() { return AsString()->Len(); }
|
||||
const u_char* Bytes() { return AsString()->Bytes(); }
|
||||
const char* CheckString() { return AsString()->CheckString(); }
|
||||
int Len();
|
||||
const u_char* Bytes();
|
||||
const char* CheckString();
|
||||
|
||||
// Note that one needs to de-allocate the return value of
|
||||
// ExpandedString() to avoid a memory leak.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue