mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 21:48:21 +00:00
&on_change: incooperate feedback of Jon.
This commit is contained in:
parent
b1040f88c9
commit
d6d2bbe878
3 changed files with 16 additions and 20 deletions
|
@ -492,12 +492,12 @@ void Attributes::CheckAttr(Attr* a)
|
|||
break;
|
||||
}
|
||||
|
||||
const Expr *change_func = a->AttrExpr();
|
||||
const Expr* change_func = a->AttrExpr();
|
||||
|
||||
if ( change_func->Type()->Tag() != TYPE_FUNC || change_func->Type()->AsFuncType()->Flavor() != FUNC_FLAVOR_FUNCTION )
|
||||
Error("&on_change attribute is not a function");
|
||||
|
||||
const FuncType *c_ft = change_func->Type()->AsFuncType();
|
||||
const FuncType* c_ft = change_func->Type()->AsFuncType();
|
||||
|
||||
if ( c_ft->YieldType()->Tag() != TYPE_VOID )
|
||||
{
|
||||
|
@ -505,7 +505,7 @@ void Attributes::CheckAttr(Attr* a)
|
|||
break;
|
||||
}
|
||||
|
||||
const TableType *the_table = type->AsTableType();
|
||||
const TableType* the_table = type->AsTableType();
|
||||
|
||||
if (the_table->IsUnspecifiedTable())
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue