mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
Merge remote-tracking branch 'origin/master' into topic/robin/dynamic-plugins-2.3
Conflicts: aux/bro-aux aux/broccoli
This commit is contained in:
commit
aeb8e71e8c
10 changed files with 106 additions and 15 deletions
14
src/Type.cc
14
src/Type.cc
|
@ -1745,7 +1745,17 @@ void VectorType::Describe(ODesc* d) const
|
|||
yield_type->Describe(d);
|
||||
}
|
||||
|
||||
BroType* base_type(TypeTag tag)
|
||||
void VectorType::DescribeReST(ODesc* d, bool roles_only) const
|
||||
{
|
||||
d->Add(fmt(":bro:type:`%s` of ", type_name(Tag())));
|
||||
|
||||
if ( yield_type->GetName().empty() )
|
||||
yield_type->DescribeReST(d, roles_only);
|
||||
else
|
||||
d->Add(fmt(":bro:type:`%s`", yield_type->GetName().c_str()));
|
||||
}
|
||||
|
||||
BroType* base_type_no_ref(TypeTag tag)
|
||||
{
|
||||
static BroType* base_types[NUM_TYPES];
|
||||
|
||||
|
@ -1761,7 +1771,7 @@ BroType* base_type(TypeTag tag)
|
|||
base_types[t]->SetLocationInfo(&l);
|
||||
}
|
||||
|
||||
return base_types[t]->Ref();
|
||||
return base_types[t];
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue