mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 13:38: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
|
@ -45,7 +45,7 @@ void Location::Describe(zeek::ODesc* d) const
|
|||
bool Location::operator==(const Location& l) const
|
||||
{
|
||||
if ( filename == l.filename ||
|
||||
(filename && l.filename && streq(filename, l.filename)) )
|
||||
(filename && l.filename && zeek::util::streq(filename, l.filename)) )
|
||||
return first_line == l.first_line && last_line == l.last_line;
|
||||
else
|
||||
return false;
|
||||
|
@ -137,7 +137,7 @@ bool Obj::SetLocationInfo(const detail::Location* start, const detail::Location*
|
|||
if ( ! start || ! end )
|
||||
return false;
|
||||
|
||||
if ( end->filename && ! streq(start->filename, end->filename) )
|
||||
if ( end->filename && ! zeek::util::streq(start->filename, end->filename) )
|
||||
return false;
|
||||
|
||||
if ( location && (start == &zeek::detail::no_location || end == &zeek::detail::no_location) )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue