diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-30 13:35:08 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-30 13:35:08 +0100 |
commit | d17926db710189db97a49e9b2e72d782fc404231 (patch) | |
tree | 406396ee6f3010511a606dd4ea3ed5a817d959eb /py/builtinevex.c | |
parent | 09d207785c77c85c957471b064ceebe0d2ee0a23 (diff) |
Rename rt_* to mp_*.
Mostly just a global search and replace. Except rt_is_true which
becomes mp_obj_is_true.
Still would like to tidy up some of the names, but this will do for now.
Diffstat (limited to 'py/builtinevex.c')
-rw-r--r-- | py/builtinevex.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/py/builtinevex.c b/py/builtinevex.c index d658db0ad..92550a796 100644 --- a/py/builtinevex.c +++ b/py/builtinevex.c @@ -43,7 +43,7 @@ STATIC mp_obj_t parse_compile_execute(mp_obj_t o_in, mp_parse_input_kind_t parse } // complied successfully, execute it - return rt_call_function_0(module_fun); + return mp_call_function_0(module_fun); } STATIC mp_obj_t mp_builtin_eval(mp_obj_t o_in) { @@ -55,8 +55,8 @@ MP_DEFINE_CONST_FUN_OBJ_1(mp_builtin_eval_obj, mp_builtin_eval); STATIC mp_obj_t mp_builtin_exec(uint n_args, const mp_obj_t *args) { // Unconditional getting/setting assumes that these operations // are cheap, which is the case when this comment was written. - mp_map_t *old_globals = rt_globals_get(); - mp_map_t *old_locals = rt_locals_get(); + mp_map_t *old_globals = mp_globals_get(); + mp_map_t *old_locals = mp_locals_get(); if (n_args > 1) { mp_obj_t globals = args[1]; mp_obj_t locals; @@ -65,13 +65,13 @@ STATIC mp_obj_t mp_builtin_exec(uint n_args, const mp_obj_t *args) { } else { locals = globals; } - rt_globals_set(mp_obj_dict_get_map(globals)); - rt_locals_set(mp_obj_dict_get_map(locals)); + mp_globals_set(mp_obj_dict_get_map(globals)); + mp_locals_set(mp_obj_dict_get_map(locals)); } mp_obj_t res = parse_compile_execute(args[0], MP_PARSE_FILE_INPUT); // TODO if the above call throws an exception, then we never get to reset the globals/locals - rt_globals_set(old_globals); - rt_locals_set(old_locals); + mp_globals_set(old_globals); + mp_locals_set(old_locals); return res; } |