8000 py: change declaration of mp_map_t in obj.h (for issue #24). · micropython/micropython@df884fe · GitHub
[go: up one dir, main page]

Skip to content

Commit df884fe

Browse files
committed
py: change declaration of mp_map_t in obj.h (for issue #24).
1 parent 17b1613 commit df884fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

py/obj.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ extern const mp_obj_t mp_const_stop_iteration; // special object indicating end
114114

115115
// Need to declare this here so we are not dependent on map.h
116116

117-
typedef struct _mp_map_t mp_map_t;
117+
struct _mp_map_t;
118118

119119
// General API for objects
120120

@@ -145,7 +145,7 @@ mp_obj_t mp_obj_new_list_reverse(uint n, mp_obj_t *items);
145145
mp_obj_t mp_obj_new_dict(int n_args);
146146
mp_obj_t mp_obj_new_set(int n_args, mp_obj_t *items);
147147
mp_obj_t mp_obj_new_bound_meth(mp_obj_t self, mp_obj_t meth);
148-
mp_obj_t mp_obj_new_class(mp_map_t *class_locals);
148+
mp_obj_t mp_obj_new_class(struct _mp_map_t *class_locals);
149149
mp_obj_t mp_obj_new_instance(mp_obj_t clas);
150150

151151
const char *mp_obj_get_type_str(mp_obj_t o_in);
@@ -230,7 +230,7 @@ extern const mp_obj_type_t gen_instance_type;
230230
// class
231231
extern const mp_obj_type_t class_type;
232232
extern const mp_obj_t gen_instance_next_obj;
233-
mp_map_t *mp_obj_class_get_locals(mp_obj_t self_in);
233+
struct _mp_map_t *mp_obj_class_get_locals(mp_obj_t self_in);
234234

235235
// instance
236236
extern const mp_obj_type_t instance_type;

0 commit comments

Comments
 (0)
0