mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 18:48:20 +00:00
Allow local table variables to be initialized with {} list expressions.
This commit is contained in:
parent
f8ec98625d
commit
aae60a6d76
5 changed files with 50 additions and 6 deletions
|
@ -623,7 +623,7 @@ class AssignExpr : public BinaryExpr {
|
|||
public:
|
||||
// If val is given, evaluating this expression will always yield the val
|
||||
// yet still perform the assignment. Used for triggers.
|
||||
AssignExpr(Expr* op1, Expr* op2, int is_init, Val* val = 0);
|
||||
AssignExpr(Expr* op1, Expr* op2, int is_init, Val* val = 0, attr_list* attrs = 0);
|
||||
virtual ~AssignExpr() { Unref(val); }
|
||||
|
||||
Expr* Simplify(SimplifyType simp_type);
|
||||
|
@ -638,7 +638,7 @@ protected:
|
|||
friend class Expr;
|
||||
AssignExpr() { }
|
||||
|
||||
bool TypeCheck();
|
||||
bool TypeCheck(attr_list* attrs = 0);
|
||||
bool TypeCheckArithmetics(TypeTag bt1, TypeTag bt2);
|
||||
|
||||
DECLARE_SERIAL(AssignExpr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue