aboutsummaryrefslogtreecommitdiff
path: root/py/scope.h
diff options
context:
space:
mode:
authorDamien George2014-04-09 14:42:51 +0100
committerDamien George2014-04-09 14:42:51 +0100
commit11d8cd54c992eee55f27d3779738626bdc095c03 (patch)
treea61fa8d27b31fca01f9b9e2bc2f701faf177f3a2 /py/scope.h
parentb140bff877bd0212d556296d0b8814c17e956627 (diff)
py, compiler: Turn id_info_t.param into a set of flags.
So we can add more flags.
Diffstat (limited to 'py/scope.h')
-rw-r--r--py/scope.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/py/scope.h b/py/scope.h
index daba296dc..68f55e0d0 100644
--- a/py/scope.h
+++ b/py/scope.h
@@ -6,9 +6,13 @@ enum {
ID_INFO_KIND_FREE, // in a function f, belongs to the parent of f
};
+enum {
+ ID_FLAG_IS_PARAM = 0x01,
+};
+
typedef struct _id_info_t {
- uint8_t param;
uint8_t kind;
+ uint8_t flags;
// when it's an ID_INFO_KIND_LOCAL this is the unique number of the local
// whet it's an ID_INFO_KIND_CELL/FREE this is the unique number of the closed over variable
uint16_t local_num;