@@ -180,8 +180,8 @@ typedef mp_obj_t (*mp_fun_0_t)(void);
180180typedef mp_obj_t (* mp_fun_1_t )(mp_obj_t );
181181typedef mp_obj_t (* mp_fun_2_t )(mp_obj_t ,mp_obj_t );
182182typedef mp_obj_t (* mp_fun_3_t )(mp_obj_t ,mp_obj_t ,mp_obj_t );
183- typedef mp_obj_t (* mp_fun_var_t )(uint n ,const mp_obj_t * );
184- typedef mp_obj_t (* mp_fun_kw_t )(uint n ,const mp_obj_t * ,mp_map_t * );
183+ typedef mp_obj_t (* mp_fun_var_t )(mp_uint_t n ,const mp_obj_t * );
184+ typedef mp_obj_t (* mp_fun_kw_t )(mp_uint_t n ,const mp_obj_t * ,mp_map_t * );
185185
186186typedef enum {
187187PRINT_STR = 0 ,
@@ -191,10 +191,10 @@ typedef enum {
191191}mp_print_kind_t ;
192192
193193typedef void (* mp_print_fun_t )(void (* print )(void * env ,const char * fmt , ...),void * env ,mp_obj_t o ,mp_print_kind_t kind );
194- typedef mp_obj_t (* mp_make_new_fun_t )(mp_obj_t type_in ,uint n_args ,uint n_kw ,const mp_obj_t * args );
195- typedef mp_obj_t (* mp_call_fun_t )(mp_obj_t fun ,uint n_args ,uint n_kw ,const mp_obj_t * args );
196- typedef mp_obj_t (* mp_unary_op_fun_t )(int op ,mp_obj_t );
197- typedef mp_obj_t (* mp_binary_op_fun_t )(int op ,mp_obj_t ,mp_obj_t );
194+ typedef mp_obj_t (* mp_make_new_fun_t )(mp_obj_t type_in ,mp_uint_t n_args ,mp_uint_t n_kw ,const mp_obj_t * args );
195+ typedef mp_obj_t (* mp_call_fun_t )(mp_obj_t fun ,mp_uint_t n_args ,mp_uint_t n_kw ,const mp_obj_t * args );
196+ typedef mp_obj_t (* mp_unary_op_fun_t )(mp_uint_t op ,mp_obj_t );
197+ typedef mp_obj_t (* mp_binary_op_fun_t )(mp_uint_t op ,mp_obj_t ,mp_obj_t );
198198typedef void (* mp_load_attr_fun_t )(mp_obj_t self_in ,qstr attr ,mp_obj_t * dest );// for fail, do nothing; for attr, dest[0] = value; for method, dest[0] = method, dest[1] = self
199199typedef bool (* mp_store_attr_fun_t )(mp_obj_t self_in ,qstr attr ,mp_obj_t value );// return true if store succeeded; if value==MP_OBJ_NULL then delete
200200typedef mp_obj_t (* mp_subscr_fun_t )(mp_obj_t self_in ,mp_obj_t index ,mp_obj_t value );
@@ -458,7 +458,7 @@ void mp_obj_exception_clear_traceback(mp_obj_t self_in);
458458void mp_obj_exception_add_traceback (mp_obj_t self_in ,qstr file ,mp_uint_t line ,qstr block );
459459void mp_obj_exception_get_traceback (mp_obj_t self_in ,mp_uint_t * n ,mp_uint_t * * values );
460460mp_obj_t mp_obj_exception_get_value (mp_obj_t self_in );
461- mp_obj_t mp_obj_exception_make_new (mp_obj_t type_in ,uint n_args ,uint n_kw ,const mp_obj_t * args );
461+ mp_obj_t mp_obj_exception_make_new (mp_obj_t type_in ,mp_uint_t n_args ,mp_uint_t n_kw ,const mp_obj_t * args );
462462mp_obj_t mp_alloc_emergency_exception_buf (mp_obj_t size_in );
463463void mp_init_emergency_exception_buf (void );
464464
@@ -482,11 +482,11 @@ typedef struct _mp_obj_float_t {
482482mp_float_t value ;
483483}mp_obj_float_t ;
484484mp_float_t mp_obj_float_get (mp_obj_t self_in );
485- mp_obj_t mp_obj_float_binary_op (int op ,mp_float_t lhs_val ,mp_obj_t rhs );// can return MP_OBJ_NULL if op not supported
485+ mp_obj_t mp_obj_float_binary_op (mp_uint_t op ,mp_float_t lhs_val ,mp_obj_t rhs );// can return MP_OBJ_NULL if op not supported
486486
487487// complex
488488void mp_obj_complex_get (mp_obj_t self_in ,mp_float_t * real ,mp_float_t * imag );
489- mp_obj_t mp_obj_complex_binary_op (int op ,mp_float_t lhs_real ,mp_float_t lhs_imag ,mp_obj_t rhs_in );// can return MP_OBJ_NULL if op not supported
489+ mp_obj_t mp_obj_complex_binary_op (mp_uint_t op ,mp_float_t lhs_real ,mp_float_t lhs_imag ,mp_obj_t rhs_in );// can return MP_OBJ_NULL if op not supported
490490#endif
491491
492492// tuple
@@ -501,7 +501,7 @@ mp_obj_t mp_obj_list_append(mp_obj_t self_in, mp_obj_t arg);
501501void mp_obj_list_get (mp_obj_t self_in ,uint * len ,mp_obj_t * * items );
502502void mp_obj_list_set_len (mp_obj_t self_in ,uint len );
503503void mp_obj_list_store (mp_obj_t self_in ,mp_obj_t index ,mp_obj_t value );
504- mp_obj_t mp_obj_list_sort (uint n_args ,const mp_obj_t * args ,mp_map_t * kwargs );
504+ mp_obj_t mp_obj_list_sort (mp_uint_t n_args ,const mp_obj_t * args ,mp_map_t * kwargs );
505505
506506// dict
507507typedef struct _mp_obj_dict_t {
@@ -535,7 +535,7 @@ typedef struct _mp_obj_fun_builtin_t { // use this to make const objects that go
535535void * fun ;// must be a pointer to a callable function in ROM
536536}mp_obj_fun_builtin_t ;
537537
538- mp_obj_t mp_obj_fun_binary_op (int op ,mp_obj_t lhs_in ,mp_obj_t rhs_in );
538+ mp_obj_t mp_obj_fun_binary_op (mp_uint_t op ,mp_obj_t lhs_in ,mp_obj_t rhs_in );
539539const char * mp_obj_fun_get_name (mp_const_obj_t fun );
540540const char * mp_obj_code_get_name (const byte * code_info );
541541