diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-02-08 22:49:46 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-02-08 22:56:36 +0200 |
commit | 1a996c48ac6435637e925ae3d83038a80feb0254 (patch) | |
tree | 8857358310433865bef5dccfc1c2ef469c3d2595 /py/obj.h | |
parent | 557c9d52643a6bc6e101f18f59ce0839b0249b21 (diff) |
Refactor list comparison code to mp_seq_cmp_objs().
Diffstat (limited to 'py/obj.h')
-rw-r--r-- | py/obj.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -400,3 +400,4 @@ void mp_seq_multiply(const void *items, uint item_sz, uint len, uint times, void 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); |