mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00
Move everything in util.h to zeek::util namespace.
This commit includes renaming a number of methods prefixed with bro_ to be prefixed with zeek_.
This commit is contained in:
parent
8862b585fa
commit
8d2d867a65
179 changed files with 1277 additions and 1033 deletions
|
@ -75,7 +75,7 @@ void Rule::AddPattern(const char* str, Rule::PatternType type,
|
|||
uint32_t offset, uint32_t depth)
|
||||
{
|
||||
Pattern* p = new Pattern;
|
||||
p->pattern = copy_string(str);
|
||||
p->pattern = zeek::util::copy_string(str);
|
||||
p->type = type;
|
||||
p->id = ++pattern_counter;
|
||||
p->offset = offset;
|
||||
|
@ -88,7 +88,7 @@ void Rule::AddPattern(const char* str, Rule::PatternType type,
|
|||
void Rule::AddRequires(const char* id, bool opposite_direction, bool negate)
|
||||
{
|
||||
Precond* p = new Precond;
|
||||
p->id = copy_string(id);
|
||||
p->id = zeek::util::copy_string(id);
|
||||
p->rule = nullptr;
|
||||
p->opposite_dir = opposite_direction;
|
||||
p->negate = negate;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue