diff options
author | Damien George <damien.p.george@gmail.com> | 2014-10-03 19:52:22 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-10-03 19:52:22 +0100 |
commit | 39dc1454788d1c6fb06c79871c7cd6e12aeb50a0 (patch) | |
tree | 12cb09a1c24b932ca7bbf715a662e78c838e1bf9 /py/qstr.h | |
parent | 3eaa0c383317f05b678422f88546ecf21ea4f9bb (diff) |
py: Change [u]int to mp_[u]int_t in qstr.[ch], and some other places.
This should pretty much resolve issue #50.
Diffstat (limited to 'py/qstr.h')
-rw-r--r-- | py/qstr.h | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -45,20 +45,18 @@ typedef mp_uint_t qstr; void qstr_init(void); -mp_uint_t qstr_compute_hash(const byte *data, uint len); -qstr qstr_find_strn(const char *str, uint str_len); // returns MP_QSTR_NULL if not found +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 qstr qstr_from_str(const char *str); -qstr qstr_from_strn(const char *str, uint len); -//qstr qstr_from_str_static(const char *str); -//qstr qstr_from_strn_copy(const char *str, int len); +qstr qstr_from_strn(const char *str, mp_uint_t len); -byte* qstr_build_start(uint len, byte **q_ptr); +byte* qstr_build_start(mp_uint_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); -uint qstr_len(qstr q); -const byte* qstr_data(qstr q, uint *len); +mp_uint_t qstr_len(qstr q); +const byte* qstr_data(qstr q, mp_uint_t *len); -void qstr_pool_info(uint *n_pool, uint *n_qstr, uint *n_str_data_bytes, uint *n_total_bytes); +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); |