mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Allow delete statement for tables, sets and vectors
Relates to #3472. This allow "delete tbl" as an alternative for clear_table(tbl). Also works for vectors.
This commit is contained in:
parent
6d86a48a6a
commit
2f1893bc58
7 changed files with 68 additions and 0 deletions
|
@ -428,6 +428,9 @@ class NameExpr final : public Expr {
|
|||
public:
|
||||
explicit NameExpr(IDPtr id, bool const_init = false);
|
||||
|
||||
bool CanDel() const override;
|
||||
void Delete(Frame* f) override;
|
||||
|
||||
ID* Id() const { return id.get(); }
|
||||
const IDPtr& IdPtr() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue