Skip to content

Commit

Permalink
py/profile: resolve name collision with -DSTATIC=
Browse files Browse the repository at this point in the history
  • Loading branch information
matejcik committed Apr 12, 2021
1 parent 55eca4c commit f7e780a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions py/profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ STATIC void code_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) {
}
}

const mp_obj_type_t mp_type_code = {
const mp_obj_type_t mp_type_settrace_codeobj = {
{ &mp_type_type },
.name = MP_QSTR_code,
.print = code_print,
Expand All @@ -133,7 +133,7 @@ mp_obj_t mp_obj_malloc_code(const mp_raw_code_t *rc) {
if (o == NULL) {
return MP_OBJ_NULL;
}
o->base.type = &mp_type_code;
o->base.type = &mp_type_settrace_codeobj;
o->rc = rc;
o->dict_locals = mp_locals_get(); // this is a wrong! how to do this properly?
o->lnotab = MP_OBJ_NULL;
Expand Down Expand Up @@ -238,7 +238,7 @@ STATIC void code_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) {
}
}

const mp_obj_type_t mp_type_code = {
const mp_obj_type_t mp_type_settrace_codeobj = {
{ &mp_type_type },
.name = MP_QSTR_code,
.print = code_print,
Expand All @@ -251,7 +251,7 @@ mp_obj_t mp_obj_new_code(const mp_raw_code_t *rc) {
if (o == NULL) {
return MP_OBJ_NULL;
}
o->base.type = &mp_type_code;
o->base.type = &mp_type_settrace_codeobj;
o->rc = rc;
o->dict_locals = mp_locals_get(); // this is a wrong! how to do this properly?
o->lnotab = MP_OBJ_NULL;
Expand Down

0 comments on commit f7e780a

Please sign in to comment.