diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-02-02 08:24:07 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-02-02 08:58:16 +0200 |
commit | 87e85b7dc7753bde510ec37db321574a1cc0cc47 (patch) | |
tree | 60c81265c328168f012ec68ee156171d77e621ae /py/obj.h | |
parent | 9ed5435061cc6ae85cd9d8556d934c0e638ffadd (diff) | |
download | micropython-87e85b7dc7753bde510ec37db321574a1cc0cc47.tar.gz micropython-87e85b7dc7753bde510ec37db321574a1cc0cc47.zip |
Implement str/bytes rich comparisons.
Diffstat (limited to 'py/obj.h')
-rw-r--r-- | py/obj.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -397,3 +397,4 @@ typedef struct _mp_obj_classmethod_t { void mp_seq_multiply(const void *items, uint item_sz, uint len, uint times, void *dest); 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); |