Move some find_qstr wrappers to tcm next to it

This commit is contained in:
Scott Shawcroft 2023-07-20 11:18:00 -07:00
parent 5f082561b3
commit d7fa7380b8
No known key found for this signature in database
GPG Key ID: 0DFD512649C052DA

View File

@ -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;