summaryrefslogtreecommitdiffstatshomepage
path: root/py/objlist.c
diff options
context:
space:
mode:
authorian-v <ianv888@gmail.com>2014-01-06 13:51:53 -0800
committerian-v <ianv888@gmail.com>2014-01-06 13:51:53 -0800
commit5fd8fd2c16076f683b629b513e8865e461d4c9a8 (patch)
tree9f10aab33ca9b4325cbe84c41b1e4d614d202021 /py/objlist.c
parent7a16fadbf843ca5d49fb20b5f5785ffccfd9019f (diff)
downloadmicropython-5fd8fd2c16076f683b629b513e8865e461d4c9a8.tar.gz
micropython-5fd8fd2c16076f683b629b513e8865e461d4c9a8.zip
Revert MP_BOOL, etc. and use <stdbool.h> instead
Diffstat (limited to 'py/objlist.c')
-rw-r--r--py/objlist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/objlist.c b/py/objlist.c
index 3e5a15fceb..52eb488379 100644
--- a/py/objlist.c
+++ b/py/objlist.c
@@ -57,6 +57,7 @@ static mp_obj_t list_make_new(mp_obj_t type_in, int n_args, const mp_obj_t *args
default:
nlr_jump(mp_obj_new_exception_msg_1_arg(MP_QSTR_TypeError, "list takes at most 1 argument, %d given", (void*)(machine_int_t)n_args));
}
+ return NULL;
}
static mp_obj_t list_binary_op(int op, mp_obj_t lhs, mp_obj_t rhs) {
@@ -266,6 +267,7 @@ const mp_method_t list_type_methods[] = {
{ "copy", &list_copy_obj },
{ "count", &list_count_obj },
{ "index", &list_index_obj },
+ { "insert", &list_insert_obj },
{ "pop", &list_pop_obj },
{ "remove", &list_remove_obj },
{ "reverse", &list_reverse_obj },