mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 21:48:21 +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
|
@ -104,7 +104,7 @@ void Attr::DescribeReST(ODesc* d, bool shorten) const
|
|||
else if ( expr->Tag() == EXPR_CONST )
|
||||
{
|
||||
ODesc dd;
|
||||
dd.SetQuotes(1);
|
||||
dd.SetQuotes(true);
|
||||
expr->Describe(&dd);
|
||||
string s = dd.Description();
|
||||
add_long_expr_string(d, s, shorten);
|
||||
|
@ -260,7 +260,7 @@ void Attributes::CheckAttr(Attr* a)
|
|||
case ATTR_ADD_FUNC:
|
||||
case ATTR_DEL_FUNC:
|
||||
{
|
||||
int is_add = a->Tag() == ATTR_ADD_FUNC;
|
||||
bool is_add = a->Tag() == ATTR_ADD_FUNC;
|
||||
|
||||
BroType* at = a->AttrExpr()->Type();
|
||||
if ( at->Tag() != TYPE_FUNC )
|
||||
|
@ -635,4 +635,3 @@ bool Attributes::operator==(const Attributes& other) const
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue