summaryrefslogtreecommitdiffstatshomepage
path: root/py/scope.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-09 14:42:51 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-09 14:42:51 +0100
commit11d8cd54c992eee55f27d3779738626bdc095c03 (patch)
treea61fa8d27b31fca01f9b9e2bc2f701faf177f3a2 /py/scope.c
parentb140bff877bd0212d556296d0b8814c17e956627 (diff)
downloadmicropython-11d8cd54c992eee55f27d3779738626bdc095c03.tar.gz
micropython-11d8cd54c992eee55f27d3779738626bdc095c03.zip
py, compiler: Turn id_info_t.param into a set of flags.
So we can add more flags.
Diffstat (limited to 'py/scope.c')
-rw-r--r--py/scope.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/scope.c b/py/scope.c
index d55a4ddeaa..51701727e6 100644
--- a/py/scope.c
+++ b/py/scope.c
@@ -73,10 +73,10 @@ id_info_t *scope_find_or_add_id(scope_t *scope, qstr qstr, bool *added) {
// handled by the compiler because it adds arguments before compiling the body
id_info_t *id_info = &scope->id_info[scope->id_info_len++];
- id_info->param = false;
id_info->kind = 0;
- id_info->qstr = qstr;
+ id_info->flags = 0;
id_info->local_num = 0;
+ id_info->qstr = qstr;
*added = true;
return id_info;
}