diff options
author | Damien George <damien.p.george@gmail.com> | 2015-01-20 11:55:10 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-01-20 11:55:10 +0000 |
commit | 50912e7f5dc579fd2917537046793dfa30decadf (patch) | |
tree | 541d6f7531d9d75e168fc914f226d15b4c7faf04 /py/runtime.h | |
parent | 640e0b221e972f9a2da2d870bf3fc5a93c18f0ec (diff) |
py, unix, stmhal: Allow to compile with -Wshadow.
See issue #699.
Diffstat (limited to 'py/runtime.h')
-rw-r--r-- | py/runtime.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/py/runtime.h b/py/runtime.h index 7a9c6eefa..ce87bf07b 100644 --- a/py/runtime.h +++ b/py/runtime.h @@ -51,7 +51,7 @@ typedef union _mp_arg_val_t { } mp_arg_val_t; typedef struct _mp_arg_t { - qstr qstr; + qstr qst; mp_uint_t flags; mp_arg_val_t defval; } mp_arg_t; @@ -70,21 +70,21 @@ static inline void mp_locals_set(mp_obj_dict_t *d) { MP_STATE_CTX(dict_locals) = static inline mp_obj_dict_t *mp_globals_get(void) { return MP_STATE_CTX(dict_globals); } static inline void mp_globals_set(mp_obj_dict_t *d) { MP_STATE_CTX(dict_globals) = d; } -mp_obj_t mp_load_name(qstr qstr); -mp_obj_t mp_load_global(qstr qstr); +mp_obj_t mp_load_name(qstr qst); +mp_obj_t mp_load_global(qstr qst); mp_obj_t mp_load_build_class(void); -void mp_store_name(qstr qstr, mp_obj_t obj); -void mp_store_global(qstr qstr, mp_obj_t obj); -void mp_delete_name(qstr qstr); -void mp_delete_global(qstr qstr); +void mp_store_name(qstr qst, mp_obj_t obj); +void mp_store_global(qstr qst, mp_obj_t obj); +void mp_delete_name(qstr qst); +void mp_delete_global(qstr qst); mp_obj_t mp_unary_op(mp_uint_t op, mp_obj_t arg); mp_obj_t mp_binary_op(mp_uint_t op, mp_obj_t lhs, mp_obj_t rhs); -mp_obj_t mp_load_const_int(qstr qstr); -mp_obj_t mp_load_const_dec(qstr qstr); -mp_obj_t mp_load_const_str(qstr qstr); -mp_obj_t mp_load_const_bytes(qstr qstr); +mp_obj_t mp_load_const_int(qstr qst); +mp_obj_t mp_load_const_dec(qstr qst); +mp_obj_t mp_load_const_str(qstr qst); +mp_obj_t mp_load_const_bytes(qstr qst); mp_obj_t mp_call_function_0(mp_obj_t fun); mp_obj_t mp_call_function_1(mp_obj_t fun, mp_obj_t arg); |