summaryrefslogtreecommitdiffstatshomepage
path: root/py/modio.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/modio.c
parentd0ceb04b90ca7edd7e45b8eff1cdebdfa20a0cf8 (diff)
downloadmicropython-ee3fd46f1383e984c968c4a82d634d7b0cea49b8.tar.gz
micropython-ee3fd46f1383e984c968c4a82d634d7b0cea49b8.zip
Rename configuration variables controling Python features.
Now of the form MICROPY_PY_*. See issue #35.
Diffstat (limited to 'py/modio.c')
-rw-r--r--py/modio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/modio.c b/py/modio.c
index b1f0d880ae..e1761f7ea6 100644
--- a/py/modio.c
+++ b/py/modio.c
@@ -30,7 +30,7 @@
#include "obj.h"
#include "builtin.h"
-#if MICROPY_ENABLE_MOD_IO
+#if MICROPY_PY_IO
extern const mp_obj_type_t mp_type_fileio;
extern const mp_obj_type_t mp_type_textio;
@@ -40,14 +40,14 @@ STATIC const mp_map_elem_t mp_module_io_globals_table[] = {
// Note: mp_builtin_open_obj should be defined by port, it's not
// part of the core.
{ MP_OBJ_NEW_QSTR(MP_QSTR_open), (mp_obj_t)&mp_builtin_open_obj },
- #if MICROPY_MOD_IO_FILEIO
+ #if MICROPY_PY_IO_FILEIO
{ MP_OBJ_NEW_QSTR(MP_QSTR_FileIO), (mp_obj_t)&mp_type_fileio },
#endif
#if MICROPY_CPYTHON_COMPAT
{ MP_OBJ_NEW_QSTR(MP_QSTR_TextIOWrapper), (mp_obj_t)&mp_type_textio },
#endif
{ MP_OBJ_NEW_QSTR(MP_QSTR_StringIO), (mp_obj_t)&mp_type_stringio },
- #if MICROPY_IO_BYTESIO
+ #if MICROPY_PY_IO_BYTESIO
{ MP_OBJ_NEW_QSTR(MP_QSTR_BytesIO), (mp_obj_t)&mp_type_bytesio },
#endif
};