summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
Diffstat (limited to 'py')
-rw-r--r--py/mpconfig.h6
-rw-r--r--py/mpstate.h5
-rw-r--r--py/qstrdefs.h4
3 files changed, 9 insertions, 6 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 08dd497c5f..5e717ad0f6 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -819,12 +819,6 @@ typedef double mp_float_t;
#define MICROPY_PORT_ROOT_POINTERS
#endif
-#if MICROPY_PY_OS_DUPTERM
-#define MP_ROOT_PTR_DUPTERM_OBJ mp_obj_t term_obj
-#else
-#define MP_ROOT_PTR_DUPTERM_OBJ
-#endif
-
/*****************************************************************************/
/* Miscellaneous settings */
diff --git a/py/mpstate.h b/py/mpstate.h
index 012b0ef189..a990713f76 100644
--- a/py/mpstate.h
+++ b/py/mpstate.h
@@ -127,6 +127,11 @@ typedef struct _mp_state_vm_t {
MICROPY_PORT_ROOT_POINTERS
// root pointers for extmod
+
+ #if MICROPY_PY_OS_DUPTERM
+ mp_obj_t term_obj;
+ #endif
+
#if MICROPY_PY_LWIP_SLIP
mp_obj_t lwip_slip_stream;
#endif
diff --git a/py/qstrdefs.h b/py/qstrdefs.h
index 483c753774..3be6168a8f 100644
--- a/py/qstrdefs.h
+++ b/py/qstrdefs.h
@@ -665,3 +665,7 @@ Q(writeblocks)
Q(sync)
Q(count)
#endif
+
+#if MICROPY_PY_OS_DUPTERM
+Q(dupterm)
+#endif