@@ -759,7 +759,7 @@ class MissingConversionException(ValueError):
759
759
STATIC mp_int_t mp_lv_obj_get_buffer(mp_obj_t self_in, mp_buffer_info_t *bufinfo, mp_uint_t flags){ return 0; }
760
760
#endif
761
761
762
- STATIC mp_obj_t get_native_obj(mp_obj_t * mp_obj)
762
+ STATIC mp_obj_t get_native_obj(mp_obj_t mp_obj)
763
763
{
764
764
if (!MP_OBJ_IS_OBJ(mp_obj)) return mp_obj;
765
765
const mp_obj_type_t *native_type = ((mp_obj_base_t*)mp_obj)->type;
@@ -780,9 +780,9 @@ class MissingConversionException(ValueError):
780
780
size_t n_kw,
781
781
const mp_obj_t *args);
782
782
783
- STATIC mp_obj_t * cast(mp_obj_t * mp_obj, const mp_obj_type_t *mp_type)
783
+ STATIC mp_obj_t cast(mp_obj_t mp_obj, const mp_obj_type_t *mp_type)
784
784
{
785
- mp_obj_t * res = NULL;
785
+ mp_obj_t res = NULL;
786
786
if (mp_obj == mp_const_none && mp_type->make_new == &make_new_lv_struct) {
787
787
res = MP_OBJ_FROM_PTR(&mp_lv_null_obj);
788
788
} else if (MP_OBJ_IS_OBJ(mp_obj)) {
@@ -814,7 +814,7 @@ class MissingConversionException(ValueError):
814
814
LV_OBJ_T *callbacks;
815
815
} mp_lv_obj_t;
816
816
817
- STATIC inline LV_OBJ_T *mp_to_lv(mp_obj_t * mp_obj)
817
+ STATIC inline LV_OBJ_T *mp_to_lv(mp_obj_t mp_obj)
818
818
{
819
819
if (mp_obj == NULL || mp_obj == mp_const_none) return NULL;
820
820
mp_obj_t native_obj = get_native_obj(mp_obj);
@@ -854,7 +854,7 @@ class MissingConversionException(ValueError):
854
854
}
855
855
}
856
856
857
- STATIC inline mp_obj_t * lv_to_mp(LV_OBJ_T *lv_obj)
857
+ STATIC inline mp_obj_t lv_to_mp(LV_OBJ_T *lv_obj)
858
858
{
859
859
if (lv_obj == NULL) return mp_const_none;
860
860
mp_lv_obj_t *self = (mp_lv_obj_t*)lv_obj->user_data;
@@ -1000,7 +1000,7 @@ class MissingConversionException(ValueError):
1000
1000
STATIC inline mp_lv_struct_t *mp_to_lv_struct(mp_obj_t mp_obj)
1001
1001
{
1002
1002
if (mp_obj == NULL || mp_obj == mp_const_none) return NULL;
1003
- <
82E8
div class="diff-text-inner"> mp_obj_t * native_obj = get_native_obj(mp_obj);
1003
+ mp_obj_t native_obj = get_native_obj(mp_obj);
1004
1004
if ( (!MP_OBJ_IS_OBJ(native_obj)) || (mp_obj_get_type(native_obj)->make_new != &make_new_lv_struct) ) nlr_raise(
1005
1005
mp_obj_new_exception_msg(
1006
1006
&mp_type_SyntaxError, MP_ERROR_TEXT("Expected Struct object!")));
@@ -1139,7 +1139,7 @@ class MissingConversionException(ValueError):
1139
1139
STATIC mp_obj_t dict_to_struct(mp_obj_t dict, const mp_obj_type_t *type)
1140
1140
{
1141
1141
mp_obj_t mp_struct = make_new_lv_struct(type, 0, 0, NULL);
1142
- mp_obj_t * native_dict = cast(dict, &mp_type_dict);
1142
+ mp_obj_t native_dict = cast(dict, &mp_type_dict);
1143
1143
mp_map_t *map = mp_obj_dict_get_map(native_dict);
1144
1144
if (map == NULL) return mp_const_none;
1145
1145
for (uint i = 0; i < map->alloc; i++) {
0 commit comments