summaryrefslogtreecommitdiffstatshomepage
path: root/py/objfun.c
diff options
context:
space:
mode:
authorian-v <ianv888@gmail.com>2014-01-06 09:52:29 -0800
committerian-v <ianv888@gmail.com>2014-01-06 09:52:29 -0800
commit7a16fadbf843ca5d49fb20b5f5785ffccfd9019f (patch)
tree167d326efc1a1a75d3a371bbeab1a0bc4164fd9e /py/objfun.c
parente03c0533fe467439bae1addd6d2a2ee57a9370e4 (diff)
downloadmicropython-7a16fadbf843ca5d49fb20b5f5785ffccfd9019f.tar.gz
micropython-7a16fadbf843ca5d49fb20b5f5785ffccfd9019f.zip
Co-exist with C++ (issue #85)
Diffstat (limited to 'py/objfun.c')
-rw-r--r--py/objfun.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/py/objfun.c b/py/objfun.c
index 0db6459a39..4945462817 100644
--- a/py/objfun.c
+++ b/py/objfun.c
@@ -79,9 +79,7 @@ const mp_obj_type_t fun_native_type = {
NULL, // binary_op
NULL, // getiter
NULL, // iternext
- .methods = {
- {NULL, NULL}, // end-of-list sentinel
- },
+ .methods = NULL,
};
mp_obj_t rt_make_function_0(mp_fun_0_t fun) {
@@ -181,9 +179,7 @@ const mp_obj_type_t fun_bc_type = {
NULL, // binary_op
NULL, // getiter
NULL, // iternext
- .methods = {
- {NULL, NULL}, // end-of-list sentinel
- },
+ .methods = NULL,
};
mp_obj_t mp_obj_new_fun_bc(int n_args, uint n_state, const byte *code) {
@@ -295,9 +291,7 @@ static const mp_obj_type_t fun_asm_type = {
NULL, // binary_op
NULL, // getiter
NULL, // iternext
- .methods = {
- {NULL, NULL}, // end-of-list sentinel
- },
+ .methods = NULL,
};
mp_obj_t mp_obj_new_fun_asm(uint n_args, void *fun) {