diff options
author | stijn <stijn@ignitron.net> | 2021-01-16 09:18:31 +0100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-01-30 13:40:48 +1100 |
commit | b9a35bebf75be53a817bf6341af14b882093e345 (patch) | |
tree | e44417ba0405fa95de3e76f760c064e6843d62c8 /py/qstr.h | |
parent | 47d02b3104369430db9fd7a6f80f9fa47badaf65 (diff) |
py/qstr.h: Remove QSTR_FROM_STR_STATIC macro.
It practically does the same as qstr_from_str and was only used in one
place, which should actually use the compile-time MP_QSTR_XXX form for
consistency; qstr_from_str is for runtime strings only.
Diffstat (limited to 'py/qstr.h')
-rw-r--r-- | py/qstr.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -32,7 +32,7 @@ // See qstrdefs.h for a list of qstr's that are available as constants. // Reference them as MP_QSTR_xxxx. // -// Note: it would be possible to define MP_QSTR_xxx as qstr_from_str_static("xxx") +// Note: it would be possible to define MP_QSTR_xxx as qstr_from_str("xxx") // for qstrs that are referenced this way, but you don't want to have them in ROM. // first entry in enum will be MP_QSTRnull=0, which indicates invalid/no qstr @@ -55,7 +55,6 @@ typedef struct _qstr_pool_t { const byte *qstrs[]; } qstr_pool_t; -#define QSTR_FROM_STR_STATIC(s) (qstr_from_strn((s), strlen(s))) #define QSTR_TOTAL() (MP_STATE_VM(last_pool)->total_prev_len + MP_STATE_VM(last_pool)->len) void qstr_init(void); |