diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-02-15 17:12:58 +0800 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-02-15 19:24:15 +0300 |
commit | 53e5e0fa28d0f81be8671303ea0388da71fd20b6 (patch) | |
tree | ce786df0ef9a5a7bb29892667a4e8aa89373fd24 /py/bc.h | |
parent | e5039c6ff887dfbee84e7853defda2b18722e24c (diff) | |
download | micropython-53e5e0fa28d0f81be8671303ea0388da71fd20b6.tar.gz micropython-53e5e0fa28d0f81be8671303ea0388da71fd20b6.zip |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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]; |