mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 02:58:20 +00:00
GH-1819: Handle recursive types when describing type in binary mode
This commit is contained in:
parent
c190c85bf0
commit
e0b116154a
2 changed files with 29 additions and 2 deletions
|
@ -1326,10 +1326,15 @@ void RecordType::DescribeFields(ODesc* d) const
|
|||
d->AddCount(types->length());
|
||||
for ( const auto& type : *types )
|
||||
{
|
||||
type->type->Describe(d);
|
||||
d->SP();
|
||||
d->Add(type->id);
|
||||
d->SP();
|
||||
|
||||
if ( d->FindType(type->type.get()) )
|
||||
d->Add("<recursion>");
|
||||
else
|
||||
type->type->Describe(d);
|
||||
|
||||
d->SP();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue