mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +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
|
@ -313,7 +313,7 @@ bool Trigger::Eval()
|
|||
assert(trigger->attached == this);
|
||||
|
||||
#ifdef DEBUG
|
||||
const char* pname = copy_string(trigger->Name());
|
||||
const char* pname = zeek::util::copy_string(trigger->Name());
|
||||
DBG_LOG(zeek::DBG_NOTIFIERS, "%s: trigger has parent %s, caching result", Name(), pname);
|
||||
delete [] pname;
|
||||
#endif
|
||||
|
@ -366,7 +366,7 @@ void Trigger::Timeout()
|
|||
assert(trigger->attached == this);
|
||||
|
||||
#ifdef DEBUG
|
||||
const char* pname = copy_string(trigger->Name());
|
||||
const char* pname = zeek::util::copy_string(trigger->Name());
|
||||
DBG_LOG(zeek::DBG_NOTIFIERS, "%s: trigger has parent %s, caching timeout result", Name(), pname);
|
||||
delete [] pname;
|
||||
#endif
|
||||
|
@ -426,7 +426,7 @@ void Trigger::Attach(Trigger *trigger)
|
|||
assert(! trigger->delayed);
|
||||
|
||||
#ifdef DEBUG
|
||||
const char* pname = copy_string(trigger->Name());
|
||||
const char* pname = zeek::util::copy_string(trigger->Name());
|
||||
DBG_LOG(zeek::DBG_NOTIFIERS, "%s: attaching to %s", Name(), pname);
|
||||
delete [] pname;
|
||||
#endif
|
||||
|
@ -486,8 +486,8 @@ void Trigger::Modified(zeek::notifier::detail::Modifiable* m)
|
|||
const char* Trigger::Name() const
|
||||
{
|
||||
assert(location);
|
||||
return fmt("%s:%d-%d", location->filename,
|
||||
location->first_line, location->last_line);
|
||||
return zeek::util::fmt("%s:%d-%d", location->filename,
|
||||
location->first_line, location->last_line);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue