Change const byte* to const char* where sensible.

This removes need for some casts (at least, more than it adds need
for new casts!).
This commit is contained in:
Damien George
2014-05-25 22:27:57 +01:00
parent f88fc7bd23
commit 2617eebf2f
12 changed files with 25 additions and 31 deletions

View File

@@ -46,12 +46,11 @@ typedef machine_uint_t qstr;
void qstr_init(void);
machine_uint_t qstr_compute_hash(const byte *data, uint len);
qstr qstr_find_strn(const byte *str, uint str_len); // returns MP_QSTR_NULL if not found
qstr qstr_find_strn(const char *str, uint 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_take(char *str, uint alloc_len, uint len);
//qstr qstr_from_strn_copy(const char *str, int len);
byte* qstr_build_start(uint len, byte **q_ptr);