mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
Allow default function/hook/event parameters. Addresses #972.
And changed the endianness parameter of bytestring_to_count() BIF to default to false (big endian), mostly just to prove that the BIF parser doesn't choke on default parameters.
This commit is contained in:
parent
69c7363147
commit
e2a1d4a233
14 changed files with 239 additions and 28 deletions
|
@ -1082,13 +1082,14 @@ Expr* get_assign_expr(Expr* op1, Expr* op2, int is_init);
|
|||
// match, promote it as necessary (modifying the ref parameter accordingly)
|
||||
// and return 1.
|
||||
//
|
||||
// The second and third forms are for promoting a list of
|
||||
// The second, third, and fourth forms are for promoting a list of
|
||||
// expressions (which is updated in place) to either match a list of
|
||||
// types or a single type.
|
||||
//
|
||||
// Note, the type is not "const" because it can be ref'd.
|
||||
extern int check_and_promote_expr(Expr*& e, BroType* t);
|
||||
extern int check_and_promote_exprs(ListExpr*& elements, TypeList* types);
|
||||
extern int check_and_promote_args(ListExpr*& args, RecordType* types);
|
||||
extern int check_and_promote_exprs_to_type(ListExpr*& elements, BroType* type);
|
||||
|
||||
// Returns a fully simplified form of the expression. Note that passed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue