diff options
author | Damien George <damien.p.george@gmail.com> | 2015-01-11 17:52:45 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-01-11 22:06:53 +0000 |
commit | 6942f80a8feb521ff4dc2b457fa5cb3d039bee54 (patch) | |
tree | 586870b58e8930480f8ec63263ecec551b15477e /py/qstr.c | |
parent | e233a55a296a981bce5fe3a7c20049bea46e3a16 (diff) | |
download | micropython-6942f80a8feb521ff4dc2b457fa5cb3d039bee54.tar.gz micropython-6942f80a8feb521ff4dc2b457fa5cb3d039bee54.zip |
py: Add qstr cfg capability; generate QSTR_NULL and QSTR_ from script.
Diffstat (limited to 'py/qstr.c')
-rw-r--r-- | py/qstr.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -75,11 +75,9 @@ STATIC const qstr_pool_t const_pool = { 10, // set so that the first dynamically allocated pool is twice this size; must be <= the len (just below) MP_QSTR_number_of, // corresponds to number of strings in array just below { - (const byte*) "\0\0\0\0", // invalid/no qstr has empty data - (const byte*) "\x05\x15\0\0", // empty qstr with hash=5381=0x1505 -#define Q(id, str) str, +#define QDEF(id, str) str, #include "genhdr/qstrdefs.generated.h" -#undef Q +#undef QDEF }, }; |