aboutsummaryrefslogtreecommitdiff
path: root/py/pfenv.c
diff options
context:
space:
mode:
authorDamien George2014-06-01 13:32:54 +0100
committerDamien George2014-06-01 13:32:54 +0100
commitfb510b3bf90eccc8e0d400c6622b2e94c2bfa8e9 (patch)
tree9160abef8ff03cba6ba2d1d5664f5fb706917355 /py/pfenv.c
parentc60a261ef03f906ae1973f93c63169a5236f0b1f (diff)
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 'py/pfenv.c')
-rw-r--r--py/pfenv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/pfenv.c b/py/pfenv.c
index c1a2eee0d..e4db4da04 100644
--- a/py/pfenv.c
+++ b/py/pfenv.c
@@ -39,7 +39,7 @@
#include <stdio.h>
#endif
-#if MICROPY_ENABLE_FLOAT
+#if MICROPY_PY_BUILTINS_FLOAT
#include "formatfloat.h"
#endif
@@ -266,7 +266,7 @@ int pfenv_print_mp_int(const pfenv_t *pfenv, mp_obj_t x, int sgn, int base, int
return len;
}
-#if MICROPY_ENABLE_FLOAT
+#if MICROPY_PY_BUILTINS_FLOAT
int pfenv_print_float(const pfenv_t *pfenv, mp_float_t f, char fmt, int flags, char fill, int width, int prec) {
char buf[32];
char sign = '\0';