summaryrefslogtreecommitdiffstatshomepage
path: root/py/qstr.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-01-11 17:52:45 +0000
committerDamien George <damien.p.george@gmail.com>2015-01-11 22:06:53 +0000
commit6942f80a8feb521ff4dc2b457fa5cb3d039bee54 (patch)
tree586870b58e8930480f8ec63263ecec551b15477e /py/qstr.c
parente233a55a296a981bce5fe3a7c20049bea46e3a16 (diff)
downloadmicropython-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.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/py/qstr.c b/py/qstr.c
index 44c69dc230..bb31a08b39 100644
--- a/py/qstr.c
+++ b/py/qstr.c
@@ -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
},
};