mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 03:58:20 +00:00
A handful of int-to-bool conversions
This commit is contained in:
parent
90d0bc64fa
commit
cd7ebdb2ed
5 changed files with 21 additions and 20 deletions
|
@ -2033,7 +2033,7 @@ case_type_list:
|
|||
case_type:
|
||||
TOK_TYPE type
|
||||
{
|
||||
$$ = new ID(0, SCOPE_FUNCTION, 0);
|
||||
$$ = new ID(0, SCOPE_FUNCTION, false);
|
||||
$$->SetType({AdoptRef{}, $2});
|
||||
}
|
||||
|
||||
|
@ -2164,17 +2164,17 @@ local_id:
|
|||
;
|
||||
|
||||
global_id:
|
||||
{ resolving_global_ID = 1; } global_or_event_id
|
||||
{ resolving_global_ID = true; } global_or_event_id
|
||||
{ $$ = $2; }
|
||||
;
|
||||
|
||||
def_global_id:
|
||||
{ defining_global_ID = 1; } global_id { defining_global_ID = 0; }
|
||||
{ defining_global_ID = true; } global_id { defining_global_ID = false; }
|
||||
{ $$ = $2; }
|
||||
;
|
||||
|
||||
event_id:
|
||||
{ resolving_global_ID = 0; } global_or_event_id
|
||||
{ resolving_global_ID = false; } global_or_event_id
|
||||
{ $$ = $2; }
|
||||
;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue