summaryrefslogtreecommitdiffstatshomepage
path: root/unix/modtime.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-06-01 13:32:54 +0100
committerDamien George <damien.p.george@gmail.com>2014-06-01 13:32:54 +0100
commitfb510b3bf90eccc8e0d400c6622b2e94c2bfa8e9 (patch)
tree9160abef8ff03cba6ba2d1d5664f5fb706917355 /unix/modtime.c
parentc60a261ef03f906ae1973f93c63169a5236f0b1f (diff)
downloadmicropython-fb510b3bf90eccc8e0d400c6622b2e94c2bfa8e9.tar.gz
micropython-fb510b3bf90eccc8e0d400c6622b2e94c2bfa8e9.zip
Rename bultins config variables to MICROPY_PY_BUILTINS_*.
This renames: MICROPY_PY_FROZENSET -> MICROPY_PY_BUILTINS_FROZENSET MICROPY_PY_PROPERTY -> MICROPY_PY_BUILTINS_PROPERTY MICROPY_PY_SLICE -> MICROPY_PY_BUILTINS_SLICE MICROPY_ENABLE_FLOAT -> MICROPY_PY_BUILTINS_FLOAT See issue #35 for discussion.
Diffstat (limited to 'unix/modtime.c')
-rw-r--r--unix/modtime.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/unix/modtime.c b/unix/modtime.c
index 77d2945b8f..f957b96784 100644
--- a/unix/modtime.c
+++ b/unix/modtime.c
@@ -64,7 +64,7 @@ void msec_sleep_tv(struct timeval *tv) {
#endif
STATIC mp_obj_t mod_time_time() {
-#if MICROPY_ENABLE_FLOAT
+#if MICROPY_PY_BUILTINS_FLOAT
struct timeval tv;
gettimeofday(&tv, NULL);
mp_float_t val = tv.tv_sec + (mp_float_t)tv.tv_usec / 1000000;
@@ -77,7 +77,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_0(mod_time_time_obj, mod_time_time);
// Note: this is deprecated since CPy3.3, but pystone still uses it.
STATIC mp_obj_t mod_time_clock() {
-#if MICROPY_ENABLE_FLOAT
+#if MICROPY_PY_BUILTINS_FLOAT
// float cannot represent full range of int32 precisely, so we pre-divide
// int to reduce resolution, and then actually do float division hoping
// to preserve integer part resolution.
@@ -89,7 +89,7 @@ STATIC mp_obj_t mod_time_clock() {
STATIC MP_DEFINE_CONST_FUN_OBJ_0(mod_time_clock_obj, mod_time_clock);
STATIC mp_obj_t mod_time_sleep(mp_obj_t arg) {
-#if MICROPY_ENABLE_FLOAT
+#if MICROPY_PY_BUILTINS_FLOAT
struct timeval tv;
mp_float_t val = mp_obj_get_float(arg);
double ipart;