diff options
author | Damien George <damien.p.george@gmail.com> | 2014-06-01 13:32:54 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-06-01 13:32:54 +0100 |
commit | fb510b3bf90eccc8e0d400c6622b2e94c2bfa8e9 (patch) | |
tree | 9160abef8ff03cba6ba2d1d5664f5fb706917355 /py/binary.c | |
parent | c60a261ef03f906ae1973f93c63169a5236f0b1f (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/binary.c')
-rw-r--r-- | py/binary.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/py/binary.c b/py/binary.c index 7640b7590..cec237446 100644 --- a/py/binary.c +++ b/py/binary.c @@ -114,7 +114,7 @@ mp_obj_t mp_binary_get_val_array(char typecode, void *p, int index) { // TODO: Explode API more to cover signedness return mp_obj_new_int_from_ll(((long long*)p)[index]); #endif -#if MICROPY_ENABLE_FLOAT +#if MICROPY_PY_BUILTINS_FLOAT case 'f': return mp_obj_new_float(((float*)p)[index]); case 'd': @@ -217,7 +217,7 @@ void mp_binary_set_val(char struct_type, char val_type, mp_obj_t val_in, byte ** void mp_binary_set_val_array(char typecode, void *p, int index, mp_obj_t val_in) { switch (typecode) { -#if MICROPY_ENABLE_FLOAT +#if MICROPY_PY_BUILTINS_FLOAT case 'f': ((float*)p)[index] = mp_obj_float_get(val_in); break; @@ -260,7 +260,7 @@ void mp_binary_set_val_array_from_int(char typecode, void *p, int index, machine ((long long*)p)[index] = val; break; #endif -#if MICROPY_ENABLE_FLOAT +#if MICROPY_PY_BUILTINS_FLOAT case 'f': ((float*)p)[index] = val; break; |