making Exec methods non-const, so execution can manage side-information

This commit is contained in:
Vern Paxson 2021-03-18 08:22:55 -07:00
parent c6830193f3
commit 01bf4b8484
4 changed files with 45 additions and 47 deletions

View file

@ -54,7 +54,7 @@ public:
~Stmt() override;
virtual ValPtr Exec(Frame* f, StmtFlowType& flow) const = 0;
virtual ValPtr Exec(Frame* f, StmtFlowType& flow) = 0;
Stmt* Ref() { zeek::Ref(this); return this; }
StmtPtr ThisPtr() { return {NewRef{}, this}; }