diff options
author | Damien George <damien.p.george@gmail.com> | 2015-01-01 20:27:54 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-01-01 20:32:09 +0000 |
commit | 51dfcb4bb7613ed164952712d9a5235a7b833cde (patch) | |
tree | c1856c7db0ff6d5ae51190be4325804a0aad43f4 /py/formatfloat.c | |
parent | db1ac360c39aeedd28b6ef5d653faaa14c3ce01e (diff) | |
download | micropython-51dfcb4bb7613ed164952712d9a5235a7b833cde.tar.gz micropython-51dfcb4bb7613ed164952712d9a5235a7b833cde.zip |
py: Move to guarded includes, everywhere in py/ core.
Addresses issue #1022.
Diffstat (limited to 'py/formatfloat.c')
-rw-r--r-- | py/formatfloat.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/py/formatfloat.c b/py/formatfloat.c index d1b12cdd5b..e73215a7a8 100644 --- a/py/formatfloat.c +++ b/py/formatfloat.c @@ -42,10 +42,11 @@ #include <stdlib.h> #include <stdint.h> -#include "mpconfig.h" +#include "py/mpconfig.h" #if MICROPY_FLOAT_IMPL == MICROPY_FLOAT_IMPL_FLOAT -#include "formatfloat.h" + +#include "py/formatfloat.h" // 1 sign bit, 8 exponent bits, and 23 mantissa bits. // exponent values 0 and 255 are reserved, exponent can be 1 to 254. @@ -63,7 +64,7 @@ static const float g_neg_pow[] = { 1e-32, 1e-16, 1e-8, 1e-4, 1e-2, 1e-1 }; -int format_float(float f, char *buf, size_t buf_size, char fmt, int prec, char sign) { +int mp_format_float(float f, char *buf, size_t buf_size, char fmt, int prec, char sign) { char *s = buf; int buf_remaining = buf_size - 1; |