summaryrefslogtreecommitdiffstatshomepage
path: root/unix/mpconfigport.h
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 /unix/mpconfigport.h
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 'unix/mpconfigport.h')
-rw-r--r--unix/mpconfigport.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h
index ec8989f2f8..c56c9fa1a6 100644
--- a/unix/mpconfigport.h
+++ b/unix/mpconfigport.h
@@ -32,7 +32,6 @@
#define MICROPY_EMIT_INLINE_THUMB (0)
#define MICROPY_ENABLE_GC (1)
#define MICROPY_ENABLE_FINALISER (1)
-#define MICROPY_ENABLE_FROZENSET (1)
#define MICROPY_MEM_STATS (1)
#define MICROPY_DEBUG_PRINTERS (1)
#define MICROPY_HELPER_REPL (1)
@@ -42,10 +41,11 @@
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
#define MICROPY_STREAMS_NON_BLOCK (1)
#define MICROPY_OPT_COMPUTED_GOTO (1)
-#define MICROPY_MOD_SYS_EXIT (1)
-#define MICROPY_MOD_SYS_STDFILES (1)
-#define MICROPY_ENABLE_MOD_CMATH (1)
-#define MICROPY_MOD_IO_FILEIO (1)
+#define MICROPY_PY_FROZENSET (1)
+#define MICROPY_PY_SYS_EXIT (1)
+#define MICROPY_PY_SYS_STDFILES (1)
+#define MICROPY_PY_CMATH (1)
+#define MICROPY_PY_IO_FILEIO (1)
// Define to MICROPY_ERROR_REPORTING_DETAILED to get function, etc.
// names in exception messages (may require more RAM).
#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_DETAILED)
@@ -55,20 +55,20 @@ extern const struct _mp_obj_module_t mp_module_time;
extern const struct _mp_obj_module_t mp_module_socket;
extern const struct _mp_obj_module_t mp_module_ffi;
-#if MICROPY_MOD_FFI
-#define MICROPY_MOD_FFI_DEF { MP_OBJ_NEW_QSTR(MP_QSTR_ffi), (mp_obj_t)&mp_module_ffi },
+#if MICROPY_PY_FFI
+#define MICROPY_PY_FFI_DEF { MP_OBJ_NEW_QSTR(MP_QSTR_ffi), (mp_obj_t)&mp_module_ffi },
#else
-#define MICROPY_MOD_FFI_DEF
+#define MICROPY_PY_FFI_DEF
#endif
-#if MICROPY_MOD_TIME
-#define MICROPY_MOD_TIME_DEF { MP_OBJ_NEW_QSTR(MP_QSTR_time), (mp_obj_t)&mp_module_time },
+#if MICROPY_PY_TIME
+#define MICROPY_PY_TIME_DEF { MP_OBJ_NEW_QSTR(MP_QSTR_time), (mp_obj_t)&mp_module_time },
#else
-#define MICROPY_MOD_TIME_DEF
+#define MICROPY_PY_TIME_DEF
#endif
#define MICROPY_PORT_BUILTIN_MODULES \
- MICROPY_MOD_FFI_DEF \
- MICROPY_MOD_TIME_DEF \
+ MICROPY_PY_FFI_DEF \
+ MICROPY_PY_TIME_DEF \
{ MP_OBJ_NEW_QSTR(MP_QSTR_microsocket), (mp_obj_t)&mp_module_socket }, \
{ MP_OBJ_NEW_QSTR(MP_QSTR__os), (mp_obj_t)&mp_module_os }, \