mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 20:50:14 +01:00
Revamp qstrs: they now include length and hash.
Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
#include "nlr.h"
|
||||
#include "misc.h"
|
||||
#include "mpconfig.h"
|
||||
#include "mpqstr.h"
|
||||
#include "qstr.h"
|
||||
#include "obj.h"
|
||||
#include "runtime0.h"
|
||||
#include "runtime.h"
|
||||
@@ -154,7 +154,7 @@ void rt_init(void) {
|
||||
|
||||
#if MICROPY_CPYTHON_COMPAT
|
||||
// Precreate sys module, so "import sys" didn't throw exceptions.
|
||||
mp_obj_new_module(qstr_from_str_static("sys"));
|
||||
mp_obj_new_module(QSTR_FROM_STR_STATIC("sys"));
|
||||
#endif
|
||||
|
||||
mp_module_micropython_init();
|
||||
|
||||
Reference in New Issue
Block a user