aboutsummaryrefslogtreecommitdiff
path: root/py/bc.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-02-15 17:12:58 +0800
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-02-15 19:24:15 +0300
commit53e5e0fa28d0f81be8671303ea0388da71fd20b6 (patch)
treece786df0ef9a5a7bb29892667a4e8aa89373fd24 /py/bc.h
parente5039c6ff887dfbee84e7853defda2b18722e24c (diff)
py: Make old_globals part of mp_code_state structure.
Conceptually it is part of code state, so let it be allocated in the same way as the rest of state.
Diffstat (limited to 'py/bc.h')
-rw-r--r--py/bc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/bc.h b/py/bc.h
index 45c63f356..f3885587a 100644
--- a/py/bc.h
+++ b/py/bc.h
@@ -45,6 +45,7 @@ typedef struct _mp_code_state {
mp_obj_t *sp;
// bit 0 is saved currently_in_except_block value
mp_exc_stack_t *exc_sp;
+ mp_obj_dict_t *old_globals;
mp_uint_t n_state;
// Variable-length
mp_obj_t state[0];