mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Var/Func: Render function parameters using comma, not semicolon
A bit larger follow-up to what Tim pointed out: Function prototype descriptions previously used semicolons to separate parameters. Switch to use commas when a RecordType is used as function parameter. Use existing "func_args" naming for consistency.
This commit is contained in:
parent
8ede22f6ec
commit
8109bbc52f
22 changed files with 50 additions and 32 deletions
|
@ -57,7 +57,7 @@ static bool add_prototype(const IDPtr& id, Type* t, std::vector<AttrPtr>* attrs)
|
|||
|
||||
if ( auto p = canon_ft->FindPrototype(*alt_args); p )
|
||||
{
|
||||
alt_ft->Error("alternate function prototype already exists", p->args.get());
|
||||
alt_ft->Error("alternate function prototype already exists", p->args.get(), true);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue