diff options
author | Damien George <damien.p.george@gmail.com> | 2015-11-27 12:23:18 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-11-29 14:25:04 +0000 |
commit | c3f64d9799cdf8af88087eebe6628e83d658405c (patch) | |
tree | 66be85a413d652243c384e43e84a417e40284ff6 /py/qstr.h | |
parent | 4e7107a572b55321f3f483f0293dd19b4f752c9b (diff) |
py: Change qstr_* functions to use size_t as the type for str len arg.
Diffstat (limited to 'py/qstr.h')
-rw-r--r-- | py/qstr.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -57,19 +57,19 @@ typedef struct _qstr_pool_t { void qstr_init(void); -mp_uint_t qstr_compute_hash(const byte *data, mp_uint_t len); -qstr qstr_find_strn(const char *str, mp_uint_t str_len); // returns MP_QSTR_NULL if not found +mp_uint_t qstr_compute_hash(const byte *data, size_t len); +qstr qstr_find_strn(const char *str, size_t str_len); // returns MP_QSTR_NULL if not found qstr qstr_from_str(const char *str); -qstr qstr_from_strn(const char *str, mp_uint_t len); +qstr qstr_from_strn(const char *str, size_t len); -byte *qstr_build_start(mp_uint_t len, byte **q_ptr); +byte *qstr_build_start(size_t len, byte **q_ptr); qstr qstr_build_end(byte *q_ptr); mp_uint_t qstr_hash(qstr q); const char *qstr_str(qstr q); -mp_uint_t qstr_len(qstr q); -const byte *qstr_data(qstr q, mp_uint_t *len); +size_t qstr_len(qstr q); +const byte *qstr_data(qstr q, size_t *len); void qstr_pool_info(mp_uint_t *n_pool, mp_uint_t *n_qstr, mp_uint_t *n_str_data_bytes, mp_uint_t *n_total_bytes); void qstr_dump_data(void); |