diff options
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 075353e48e..967a1fc097 100644 --- a/py/runtime.h +++ b/py/runtime.h @@ -54,9 +54,9 @@ typedef struct _mp_arg_t { void mp_init(void); void mp_deinit(void); -void mp_arg_check_num(uint n_args, uint n_kw, uint n_args_min, uint n_args_max, bool takes_kw); -void mp_arg_parse_all(uint n_pos, const mp_obj_t *pos, mp_map_t *kws, uint n_allowed, const mp_arg_t *allowed, mp_arg_val_t *out_vals); -void mp_arg_parse_all_kw_array(uint n_pos, uint n_kw, const mp_obj_t *args, uint n_allowed, const mp_arg_t *allowed, mp_arg_val_t *out_vals); +void mp_arg_check_num(mp_uint_t n_args, mp_uint_t n_kw, mp_uint_t n_args_min, mp_uint_t n_args_max, bool takes_kw); +void mp_arg_parse_all(mp_uint_t n_pos, const mp_obj_t *pos, mp_map_t *kws, mp_uint_t n_allowed, const mp_arg_t *allowed, mp_arg_val_t *out_vals); +void mp_arg_parse_all_kw_array(mp_uint_t n_pos, mp_uint_t n_kw, const mp_obj_t *args, mp_uint_t n_allowed, const mp_arg_t *allowed, mp_arg_val_t *out_vals); NORETURN void mp_arg_error_unimpl_kw(void); mp_obj_dict_t *mp_locals_get(void); @@ -72,8 +72,8 @@ void mp_store_global(qstr qstr, mp_obj_t obj); void mp_delete_name(qstr qstr); void mp_delete_global(qstr qstr); -mp_obj_t mp_unary_op(int op, mp_obj_t arg); -mp_obj_t mp_binary_op(int op, mp_obj_t lhs, mp_obj_t rhs); +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); @@ -83,12 +83,12 @@ mp_obj_t mp_load_const_bytes(qstr qstr); 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); mp_obj_t mp_call_function_2(mp_obj_t fun, mp_obj_t arg1, mp_obj_t arg2); -mp_obj_t mp_call_function_n_kw(mp_obj_t fun, uint n_args, uint n_kw, const mp_obj_t *args); -mp_obj_t mp_call_method_n_kw(uint n_args, uint n_kw, const mp_obj_t *args); -mp_obj_t mp_call_method_n_kw_var(bool have_self, uint n_args_n_kw, const mp_obj_t *args); +mp_obj_t mp_call_function_n_kw(mp_obj_t fun, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args); +mp_obj_t mp_call_method_n_kw(mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args); +mp_obj_t mp_call_method_n_kw_var(bool have_self, mp_uint_t n_args_n_kw, const mp_obj_t *args); -void mp_unpack_sequence(mp_obj_t seq, uint num, mp_obj_t *items); -void mp_unpack_ex(mp_obj_t seq, uint num, mp_obj_t *items); +void mp_unpack_sequence(mp_obj_t seq, mp_uint_t num, mp_obj_t *items); +void mp_unpack_ex(mp_obj_t seq, mp_uint_t num, mp_obj_t *items); mp_obj_t mp_store_map(mp_obj_t map, mp_obj_t key, mp_obj_t value); mp_obj_t mp_load_attr(mp_obj_t base, qstr attr); void mp_load_method(mp_obj_t base, qstr attr, mp_obj_t *dest); @@ -113,7 +113,7 @@ NORETURN void mp_not_implemented(const char *msg); // helper functions for native/viper code mp_uint_t mp_convert_obj_to_native(mp_obj_t obj, mp_uint_t type); mp_obj_t mp_convert_native_to_obj(mp_uint_t val, mp_uint_t type); -mp_obj_t mp_native_call_function_n_kw(mp_obj_t fun_in, uint n_args_kw, const mp_obj_t *args); +mp_obj_t mp_native_call_function_n_kw(mp_obj_t fun_in, mp_uint_t n_args_kw, const mp_obj_t *args); NORETURN void mp_native_raise(mp_obj_t o); extern struct _mp_obj_list_t mp_sys_path_obj; |