mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 19:18:19 +00:00
nit: fixed some 0/1 values that should instead be false/true
This commit is contained in:
parent
98529ae4ec
commit
f673f85acc
1 changed files with 4 additions and 4 deletions
|
@ -1214,7 +1214,7 @@ func_hdr:
|
|||
{
|
||||
zeek::IntrusivePtr id{zeek::AdoptRef{}, $2};
|
||||
zeek::detail::begin_func(id, zeek::detail::current_module.c_str(),
|
||||
zeek::FUNC_FLAVOR_FUNCTION, 0, {zeek::NewRef{}, $3},
|
||||
zeek::FUNC_FLAVOR_FUNCTION, false, {zeek::NewRef{}, $3},
|
||||
std::unique_ptr<std::vector<zeek::detail::AttrPtr>>{$4});
|
||||
$$ = $3;
|
||||
zeek::detail::zeekygen_mgr->Identifier(std::move(id));
|
||||
|
@ -1229,7 +1229,7 @@ func_hdr:
|
|||
}
|
||||
|
||||
zeek::detail::begin_func({zeek::NewRef{}, $2}, zeek::detail::current_module.c_str(),
|
||||
zeek::FUNC_FLAVOR_EVENT, 0, {zeek::NewRef{}, $3},
|
||||
zeek::FUNC_FLAVOR_EVENT, false, {zeek::NewRef{}, $3},
|
||||
std::unique_ptr<std::vector<zeek::detail::AttrPtr>>{$4});
|
||||
$$ = $3;
|
||||
}
|
||||
|
@ -1238,14 +1238,14 @@ func_hdr:
|
|||
$3->ClearYieldType(zeek::FUNC_FLAVOR_HOOK);
|
||||
$3->SetYieldType(zeek::base_type(zeek::TYPE_BOOL));
|
||||
zeek::detail::begin_func({zeek::NewRef{}, $2}, zeek::detail::current_module.c_str(),
|
||||
zeek::FUNC_FLAVOR_HOOK, 0, {zeek::NewRef{}, $3},
|
||||
zeek::FUNC_FLAVOR_HOOK, false, {zeek::NewRef{}, $3},
|
||||
std::unique_ptr<std::vector<zeek::detail::AttrPtr>>{$4});
|
||||
$$ = $3;
|
||||
}
|
||||
| TOK_REDEF TOK_EVENT event_id func_params opt_attr
|
||||
{
|
||||
zeek::detail::begin_func({zeek::NewRef{}, $3}, zeek::detail::current_module.c_str(),
|
||||
zeek::FUNC_FLAVOR_EVENT, 1, {zeek::NewRef{}, $4},
|
||||
zeek::FUNC_FLAVOR_EVENT, true, {zeek::NewRef{}, $4},
|
||||
std::unique_ptr<std::vector<zeek::detail::AttrPtr>>{$5});
|
||||
$$ = $4;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue