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:
Tim Wojtulewicz 2020-03-11 10:41:46 -07:00 committed by Robin Sommer
parent 3c470ffe13
commit fd5e15b116
145 changed files with 1288 additions and 1331 deletions

View file

@ -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;
}