summaryrefslogtreecommitdiffstatshomepage
path: root/py/obj.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-02-02 08:24:07 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-02-02 08:58:16 +0200
commit87e85b7dc7753bde510ec37db321574a1cc0cc47 (patch)
tree60c81265c328168f012ec68ee156171d77e621ae /py/obj.h
parent9ed5435061cc6ae85cd9d8556d934c0e638ffadd (diff)
downloadmicropython-87e85b7dc7753bde510ec37db321574a1cc0cc47.tar.gz
micropython-87e85b7dc7753bde510ec37db321574a1cc0cc47.zip
Implement str/bytes rich comparisons.
Diffstat (limited to 'py/obj.h')
-rw-r--r--py/obj.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/obj.h b/py/obj.h
index bed5103dbd..ca3ab1af6a 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -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);