py: Add qstr cfg capability; generate QSTR_NULL and QSTR_ from script.

This commit is contained in:
Damien George
2015-01-11 17:52:45 +00:00
parent e233a55a29
commit 6942f80a8f
4 changed files with 26 additions and 10 deletions

View File

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