MP_STATE_VM(repl_line) missing; how to add correctly?

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
jickster
Posts: 629
Joined: Thu Sep 07, 2017 8:57 pm

MP_STATE_VM(repl_line) missing; how to add correctly?

Post by jickster » Mon Feb 05, 2018 7:35 pm

I created an issue

https://github.com/micropython/micropython/issues/3596

Basically,

Code: Select all

mp_state_ctx.vm
is missing the item

Code: Select all

vstr_t* repl_line
The comment in "pyexec.c" says

Code: Select all

typedef struct _repl_t {
    // This structure originally also held current REPL line,
    // but it was moved to MP_STATE_VM(repl_line) as containing
    // root pointer. Still keep structure in case more state
    // will be added later.
    //vstr_t line;
    bool cont_line;
} repl_t;
I'm not very familiar with root pointers.

Post Reply