minor commenting clarifications

This commit is contained in:
Vern Paxson 2022-01-07 11:49:03 -08:00
parent 4c1b3c82d9
commit a85d92b2ee
3 changed files with 8 additions and 3 deletions

2
doc

@ -1 +1 @@
Subproject commit 1263619ce3279415314355032b855206f7e3e632 Subproject commit 0cebe394636728788b2f880d7d8ec661bf22824e

View file

@ -54,8 +54,9 @@ public:
Frame(int size, const ScriptFunc* func, const zeek::Args* fn_args); Frame(int size, const ScriptFunc* func, const zeek::Args* fn_args);
/** /**
* Deletes the frame. Unrefs its trigger, the values that it * Deletes the frame. Unrefs its trigger (implicitly, since it's an
* contains and its closure if applicable. * IntrusivePtr), and the values that the frame contains and its
* closure if applicable.
*/ */
virtual ~Frame() override; virtual ~Frame() override;

View file

@ -722,6 +722,10 @@ TraversalCode OuterIDBindingFinder::PostExpr(const Expr* expr)
return TC_CONTINUE; return TC_CONTINUE;
} }
// The following is only used for debugging AST duplication. If activated,
// each AST is replaced with its duplicate. In the absence of a duplication
// error, this shouldn't change any semantics, so running the test suite
// with this variable set can find flaws in the duplication machinery.
static bool duplicate_ASTs = getenv("ZEEK_DUPLICATE_ASTS"); static bool duplicate_ASTs = getenv("ZEEK_DUPLICATE_ASTS");
void end_func(StmtPtr body, bool free_of_conditionals) void end_func(StmtPtr body, bool free_of_conditionals)