File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22#include <stdio.h>
33#include <string.h>
44
5- #include "mpconfig.h"
6- #include "nlr.h"
7- #include "misc.h"
8- #include "qstr.h"
9- #include "lexer.h"
10- #include "parse.h"
11- #include "obj.h"
12- #include "parsehelper.h"
13- #include "compile.h"
14- #include "runtime0.h"
15- #include "runtime.h"
16- #include "repl.h"
5+ #include "py/nlr.h"
6+ #include "py/obj.h"
7+ #include "py/parsehelper.h"
8+ #include "py/compile.h"
9+ #include "py/runtime0.h"
10+ #include "py/runtime.h"
11+ #include "py/stackctrl.h"
12+ #include "py/repl.h"
13+ #include "py/pfenv.h"
1714
1815#include "tinytest.h"
1916#include "tinytest_macros.h"
@@ -35,7 +32,7 @@ inline void do_str(const char *src) {
3532 }
3633
3734 // parse okay
38- qstr source_name = mp_lexer_source_name ( lex ) ;
35+ qstr source_name = lex -> source_name ;
3936 mp_lexer_free (lex );
4037 mp_obj_t module_fun = mp_compile (pn , source_name , MP_EMIT_OPT_NONE , true);
4138
@@ -60,6 +57,7 @@ inline void do_str(const char *src) {
6057
6158int main () {
6259 const char a [] = {"sim" };
60+ mp_stack_set_limit (10240 );
6361 mp_init ();
6462 int r = tinytest_main (1 , (const char * * ) a , groups );
6563 mp_deinit ();
You can’t perform that action at this time.
0 commit comments