summaryrefslogtreecommitdiff
path: root/py/modsys.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-05-24 23:03:12 +0100
committerDamien George <damien.p.george@gmail.com>2014-05-24 23:03:12 +0100
commitee3fd46f1383e984c968c4a82d634d7b0cea49b8 (patch)
tree76eb38f9015df5d003f646ce019745426365021c /py/modsys.c
parentd0ceb04b90ca7edd7e45b8eff1cdebdfa20a0cf8 (diff)
Rename configuration variables controling Python features.
Now of the form MICROPY_PY_*. See issue #35.
Diffstat (limited to 'py/modsys.c')
-rw-r--r--py/modsys.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/modsys.c b/py/modsys.c
index 954711a5a..738758bdf 100644
--- a/py/modsys.c
+++ b/py/modsys.c
@@ -34,7 +34,7 @@
#include "objtuple.h"
#include "objstr.h"
-#if MICROPY_ENABLE_MOD_SYS
+#if MICROPY_PY_SYS
// These should be implemented by ports, specific types don't matter,
// only addresses.
@@ -65,11 +65,11 @@ STATIC const mp_map_elem_t mp_module_sys_globals_table[] = {
{ MP_OBJ_NEW_QSTR(MP_QSTR_byteorder), MP_OBJ_NEW_QSTR(MP_QSTR_big) },
#endif
-#if MICROPY_MOD_SYS_EXIT
+#if MICROPY_PY_SYS_EXIT
{ MP_OBJ_NEW_QSTR(MP_QSTR_exit), (mp_obj_t)&mp_sys_exit_obj },
#endif
-#if MICROPY_MOD_SYS_STDFILES
+#if MICROPY_PY_SYS_STDFILES
{ MP_OBJ_NEW_QSTR(MP_QSTR_stdin), (mp_obj_t)&mp_sys_stdin_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR_stdout), (mp_obj_t)&mp_sys_stdout_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR_stderr), (mp_obj_t)&mp_sys_stderr_obj },