diff options
author | John R. Lenton <jlenton@gmail.com> | 2014-01-07 18:01:08 +0000 |
---|---|---|
committer | John R. Lenton <jlenton@gmail.com> | 2014-01-07 18:01:08 +0000 |
commit | 270112f7312f724e46ae34649dfce3ec43b697e0 (patch) | |
tree | d7438ae877350aede062d8ac7e62e52ab35cb018 /py/objgenerator.c | |
parent | c06763a0207dde7f2060f7b1670a0b99298a01f8 (diff) | |
parent | fd04bb3bacf5dbc4d79c04a49520e3e81abb7352 (diff) | |
download | micropython-270112f7312f724e46ae34649dfce3ec43b697e0.tar.gz micropython-270112f7312f724e46ae34649dfce3ec43b697e0.zip |
Merge remote-tracking branch 'upstream/master' into listsort. Lots of conflict fun.
Conflicts:
py/obj.h
py/objbool.c
py/objboundmeth.c
py/objcell.c
py/objclass.c
py/objclosure.c
py/objcomplex.c
py/objdict.c
py/objexcept.c
py/objfun.c
py/objgenerator.c
py/objinstance.c
py/objmodule.c
py/objrange.c
py/objset.c
py/objslice.c
Diffstat (limited to 'py/objgenerator.c')
-rw-r--r-- | py/objgenerator.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/py/objgenerator.c b/py/objgenerator.c index 7b93d29de5..7eeb4ef80b 100644 --- a/py/objgenerator.c +++ b/py/objgenerator.c @@ -37,12 +37,9 @@ mp_obj_t gen_wrap_call_n(mp_obj_t self_in, int n_args, const mp_obj_t *args) { } const mp_obj_type_t gen_wrap_type = { - .base = { &mp_const_type }, - .name = "generator", + { &mp_const_type }, + "generator", .call_n = gen_wrap_call_n, - .unary_op = NULL, - .binary_op = NULL, - .methods = {{NULL, NULL},}, }; mp_obj_t mp_obj_new_gen_wrap(uint n_locals, uint n_stack, mp_obj_t fun) { @@ -88,12 +85,11 @@ mp_obj_t gen_instance_iternext(mp_obj_t self_in) { } const mp_obj_type_t gen_instance_type = { - .base = { &mp_const_type }, - .name = "generator", + { &mp_const_type }, + "generator", .print = gen_instance_print, .getiter = gen_instance_getiter, .iternext = gen_instance_iternext, - .methods = {{NULL, NULL},}, }; // args are in reverse order in the array |