mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 04:58:21 +00:00
Use vector<IntrusivePtr<Val>> for Func::Call and Event queuing args
This change may break BIFs that use @ARGS@, @ARG@, or @ARGC@ since their types have changed.
This commit is contained in:
parent
94656c2308
commit
4e1ac4e124
29 changed files with 367 additions and 305 deletions
18
src/Val.cc
18
src/Val.cc
|
@ -3292,6 +3292,24 @@ void describe_vals(const val_list* vals, ODesc* d, int offset)
|
|||
}
|
||||
}
|
||||
|
||||
void describe_vals(const std::vector<IntrusivePtr<Val>>& vals,
|
||||
ODesc* d, size_t offset)
|
||||
{
|
||||
if ( ! d->IsReadable() )
|
||||
{
|
||||
d->Add(vals.size());
|
||||
d->SP();
|
||||
}
|
||||
|
||||
for ( auto i = offset; i < vals.size(); ++i )
|
||||
{
|
||||
if ( i > offset && d->IsReadable() && d->Style() != RAW_STYLE )
|
||||
d->Add(", ");
|
||||
|
||||
vals[i]->Describe(d);
|
||||
}
|
||||
}
|
||||
|
||||
void delete_vals(val_list* vals)
|
||||
{
|
||||
if ( vals )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue