Move some find_qstr wrappers to tcm next to it
This commit is contained in:
parent
5f082561b3
commit
d7fa7380b8
@ -289,18 +289,18 @@ mp_uint_t PLACE_IN_ITCM(qstr_hash)(qstr q) {
|
|||||||
return attr.hash;
|
return attr.hash;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t qstr_len(qstr q) {
|
size_t PLACE_IN_ITCM(qstr_len)(qstr q) {
|
||||||
qstr_attr_t attr;
|
qstr_attr_t attr;
|
||||||
find_qstr(q, &attr);
|
find_qstr(q, &attr);
|
||||||
return attr.len;
|
return attr.len;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *qstr_str(qstr q) {
|
const char *PLACE_IN_ITCM(qstr_str)(qstr q) {
|
||||||
qstr_attr_t attr;
|
qstr_attr_t attr;
|
||||||
return find_qstr(q, &attr);
|
return find_qstr(q, &attr);
|
||||||
}
|
}
|
||||||
|
|
||||||
const byte *qstr_data(qstr q, size_t *len) {
|
const byte *PLACE_IN_ITCM(qstr_data)(qstr q, size_t *len) {
|
||||||
qstr_attr_t attr;
|
qstr_attr_t attr;
|
||||||
const char *qd = find_qstr(q, &attr);
|
const char *qd = find_qstr(q, &attr);
|
||||||
*len = attr.len;
|
*len = attr.len;
|
||||||
|
Loading…
Reference in New Issue
Block a user