mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
The Great Embooleanating
A large number of functions had return values and/or arguments changed to use ``bool`` types instead of ``int``.
This commit is contained in:
parent
3c470ffe13
commit
fd5e15b116
145 changed files with 1288 additions and 1331 deletions
|
@ -289,7 +289,7 @@ BroFunc::~BroFunc()
|
|||
Unref(closure);
|
||||
}
|
||||
|
||||
int BroFunc::IsPure() const
|
||||
bool BroFunc::IsPure() const
|
||||
{
|
||||
return std::all_of(bodies.begin(), bodies.end(),
|
||||
[](const Body& b) { return b.stmts->IsPure(); });
|
||||
|
@ -575,7 +575,7 @@ IntrusivePtr<Stmt> BroFunc::AddInits(IntrusivePtr<Stmt> body, id_list* inits)
|
|||
}
|
||||
|
||||
BuiltinFunc::BuiltinFunc(built_in_func arg_func, const char* arg_name,
|
||||
int arg_is_pure)
|
||||
bool arg_is_pure)
|
||||
: Func(BUILTIN_FUNC)
|
||||
{
|
||||
func = arg_func;
|
||||
|
@ -596,7 +596,7 @@ BuiltinFunc::~BuiltinFunc()
|
|||
{
|
||||
}
|
||||
|
||||
int BuiltinFunc::IsPure() const
|
||||
bool BuiltinFunc::IsPure() const
|
||||
{
|
||||
return is_pure;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue