From 5be1cd70929916d7710a69de3f8df5a2c01b1446 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Wed, 30 Oct 2013 12:16:45 +0900 Subject: [PATCH] add some comments in codegen_scopes' members --- src/codegen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/codegen.c b/src/codegen.c index 0a249c1b..71ae73ce 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -11,10 +11,11 @@ typedef struct codegen_scope { struct codegen_scope *up; - /* local variables are 1-indexed */ + /* local variables are 1-indexed, 0 is reserved for the callee */ struct xhash *local_tbl; /* does not count rest argument variable */ size_t argc; + /* dirty flags: if local var i is captured, then cv_tbl[i] == 1 */ int *cv_tbl; bool varg; } codegen_scope;