diff options
Diffstat (limited to 'py/scope.h')
-rw-r--r-- | py/scope.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/py/scope.h b/py/scope.h index 826064d7ef..012d906475 100644 --- a/py/scope.h +++ b/py/scope.h @@ -69,8 +69,7 @@ typedef enum { typedef struct _scope_t { scope_kind_t kind; struct _scope_t *parent; - struct _scope_t *next; - mp_parse_node_t pn; + const byte *pn; // points to the node after the scope index node uint16_t source_file; // a qstr uint16_t simple_name; // a qstr mp_raw_code_t *raw_code; @@ -87,7 +86,7 @@ typedef struct _scope_t { id_info_t *id_info; } scope_t; -scope_t *scope_new(scope_kind_t kind, mp_parse_node_t pn, qstr source_file, mp_uint_t emit_options); +scope_t *scope_new(scope_kind_t kind, const byte *pn, qstr source_file, mp_uint_t emit_options); void scope_free(scope_t *scope); id_info_t *scope_find_or_add_id(scope_t *scope, qstr qstr, bool *added); id_info_t *scope_find(scope_t *scope, qstr qstr); |