A bit of stylistic cleanup (chose the wrong side during conflict resolution).

This commit is contained in:
John R. Lenton 2014-01-07 18:06:34 +00:00
parent 270112f731
commit 3391e19068
9 changed files with 24 additions and 24 deletions

View File

@ -61,8 +61,8 @@ static mp_obj_t dict_binary_op(int op, mp_obj_t lhs_in, mp_obj_t rhs_in) {
}
const mp_obj_type_t dict_type = {
.base = { &mp_const_type },
.name = "dict",
{ &mp_const_type },
"dict",
.print = dict_print,
.make_new = dict_make_new,
.binary_op = dict_binary_op,

View File

@ -62,8 +62,8 @@ static mp_obj_t float_binary_op(int op, mp_obj_t lhs_in, mp_obj_t rhs_in) {
}
const mp_obj_type_t float_type = {
.base = { &mp_const_type },
.name = "float",
{ &mp_const_type },
"float",
.print = float_print,
.make_new = float_make_new,
.unary_op = float_unary_op,

View File

@ -31,8 +31,8 @@ static mp_obj_t int_make_new(mp_obj_t type_in, int n_args, const mp_obj_t *args)
}
const mp_obj_type_t int_type = {
.base = { &mp_const_type },
.name = "int",
{ &mp_const_type },
"int",
.make_new = int_make_new,
};

View File

@ -293,8 +293,8 @@ static const mp_method_t list_type_methods[] = {
};
const mp_obj_type_t list_type = {
.base = { &mp_const_type },
.name = "list",
{ &mp_const_type },
"list",
.print = list_print,
.make_new = list_make_new,
.binary_op = list_binary_op,
@ -360,8 +360,8 @@ mp_obj_t list_it_iternext(mp_obj_t self_in) {
}
static const mp_obj_type_t list_it_type = {
.base = { &mp_const_type },
.name = "list_iterator",
{ &mp_const_type },
"list_iterator",
.iternext = list_it_iternext,
};

View File

@ -15,8 +15,8 @@ void none_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_ob
}
const mp_obj_type_t none_type = {
.base = { &mp_const_type },
.name = "NoneType",
{ &mp_const_type },
"NoneType",
.print = none_print,
};

View File

@ -48,8 +48,8 @@ void slice_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_o
}
const mp_obj_type_t slice_type = {
.base = { &mp_const_type },
.name = "slice",
{ &mp_const_type },
"slice",
.print = slice_print,
};

View File

@ -191,8 +191,8 @@ static const mp_method_t str_type_methods[] = {
};
const mp_obj_type_t str_type = {
.base = { &mp_const_type },
.name = "str",
{ &mp_const_type },
"str",
.print = str_print,
.binary_op = str_binary_op,
.getiter = str_getiter,
@ -234,8 +234,8 @@ mp_obj_t str_it_iternext(mp_obj_t self_in) {
}
static const mp_obj_type_t str_it_type = {
.base = { &mp_const_type },
.name = "str_iterator",
{ &mp_const_type },
"str_iterator",
.iternext = str_it_iternext,
};

View File

@ -97,8 +97,8 @@ static mp_obj_t tuple_getiter(mp_obj_t o_in) {
}
const mp_obj_type_t tuple_type = {
.base = { &mp_const_type },
.name = "tuple",
{ &mp_const_type },
"tuple",
.print = tuple_print,
.make_new = tuple_make_new,
.binary_op = tuple_binary_op,
@ -162,8 +162,8 @@ static mp_obj_t tuple_it_iternext(mp_obj_t self_in) {
}
static const mp_obj_type_t tuple_it_type = {
.base = { &mp_const_type },
.name = "tuple_iterator",
{ &mp_const_type },
"tuple_iterator",
.iternext = tuple_it_iternext,
};

View File

@ -23,8 +23,8 @@ static mp_obj_t type_call_n(mp_obj_t self_in, int n_args, const mp_obj_t *args)
}
const mp_obj_type_t mp_const_type = {
.base = { &mp_const_type },
.name = "type",
{ &mp_const_type },
"type",
.print = type_print,
.call_n = type_call_n,
};