mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Document variable argument list BIFs using ellipsis
Instead of a single parameter: "va_args: any".
This commit is contained in:
parent
d873acc9e3
commit
08c64112f0
1 changed files with 8 additions and 1 deletions
|
@ -1184,8 +1184,15 @@ void RecordType::DescribeFieldsReST(ODesc* d, bool func_args) const
|
||||||
|
|
||||||
if ( d->FindType(td->type) )
|
if ( d->FindType(td->type) )
|
||||||
d->Add("<recursion>");
|
d->Add("<recursion>");
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if ( num_fields == 1 && streq(td->id, "va_args") &&
|
||||||
|
td->type->Tag() == TYPE_ANY )
|
||||||
|
// This was a BIF using variable argument list
|
||||||
|
d->Add("...");
|
||||||
else
|
else
|
||||||
td->DescribeReST(d);
|
td->DescribeReST(d);
|
||||||
|
}
|
||||||
|
|
||||||
if ( func_args )
|
if ( func_args )
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue