mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Merge branch 'intrusive_ptr' of https://github.com/MaxKellermann/zeek
* 'intrusive_ptr' of https://github.com/MaxKellermann/zeek: (32 commits) Scope: store IntrusivePtr in `local` Scope: pass IntrusivePtr to AddInit() DNS_Mgr: use class IntrusivePtr Scope: use class IntrusivePtr Attr: use class IntrusivePtr Expr: check_and_promote_expr() returns IntrusivePtr Frame: use class IntrusivePtr Val: RecordVal::LookupWithDefault() returns IntrusivePtr Type: RecordType::FieldDefault() returns IntrusivePtr Val: TableVal::Delete() returns IntrusivePtr Type: base_type() returns IntrusivePtr Type: init_type() returns IntrusivePtr Type: merge_types() returns IntrusivePtr Type: use class IntrusivePtr in VectorType Type: use class IntrusivePtr in EnumType Type: use class IntrusivePtr in FileType Type: use class IntrusivePtr in TypeDecl Type: make TypeDecl `final` and the dtor non-`virtual` Type: use class IntrusivePtr in TypeType Type: use class IntrusivePtr in FuncType ...
This commit is contained in:
commit
b62727a7fa
108 changed files with 1737 additions and 2067 deletions
|
@ -187,10 +187,7 @@ function Cluster::publish_rr%(pool: Pool, key: string, ...%): bool
|
|||
auto topic = topic_func->Call(&vl);
|
||||
|
||||
if ( ! topic->AsString()->Len() )
|
||||
{
|
||||
Unref(topic);
|
||||
return val_mgr->GetFalse();
|
||||
}
|
||||
|
||||
val_list* bif_args = @ARGS@;
|
||||
val_list args(bif_args->length() - 2);
|
||||
|
@ -199,7 +196,6 @@ function Cluster::publish_rr%(pool: Pool, key: string, ...%): bool
|
|||
args.push_back((*bif_args)[i]);
|
||||
|
||||
auto rval = publish_event_args(args, topic->AsString(), frame);
|
||||
Unref(topic);
|
||||
return val_mgr->GetBool(rval);
|
||||
%}
|
||||
|
||||
|
@ -228,10 +224,7 @@ function Cluster::publish_hrw%(pool: Pool, key: any, ...%): bool
|
|||
auto topic = topic_func->Call(&vl);
|
||||
|
||||
if ( ! topic->AsString()->Len() )
|
||||
{
|
||||
Unref(topic);
|
||||
return val_mgr->GetFalse();
|
||||
}
|
||||
|
||||
val_list* bif_args = @ARGS@;
|
||||
val_list args(bif_args->length() - 2);
|
||||
|
@ -240,6 +233,5 @@ function Cluster::publish_hrw%(pool: Pool, key: any, ...%): bool
|
|||
args.push_back((*bif_args)[i]);
|
||||
|
||||
auto rval = publish_event_args(args, topic->AsString(), frame);
|
||||
Unref(topic);
|
||||
return val_mgr->GetBool(rval);
|
||||
%}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue