Refactor list comparison code to mp_seq_cmp_objs().
diff --git a/py/obj.h b/py/obj.h
index 85462b3..f372030 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -400,3 +400,4 @@
 bool m_seq_get_fast_slice_indexes(machine_uint_t len, mp_obj_t slice, machine_uint_t *begin, machine_uint_t *end);
 #define m_seq_copy(dest, src, len, item_sz) memcpy(dest, src, len * sizeof(item_sz))
 bool mp_seq_cmp_bytes(int op, const byte *data1, uint len1, const byte *data2, uint len2);
+bool mp_seq_cmp_objs(int op, const mp_obj_t *items1, uint len1, const mp_obj_t *items2, uint len2);