aboutsummaryrefslogtreecommitdiff
path: root/py/pfenv.c
diff options
context:
space:
mode:
authorDamien George2015-01-01 20:27:54 +0000
committerDamien George2015-01-01 20:32:09 +0000
commit51dfcb4bb7613ed164952712d9a5235a7b833cde (patch)
treec1856c7db0ff6d5ae51190be4325804a0aad43f4 /py/pfenv.c
parentdb1ac360c39aeedd28b6ef5d653faaa14c3ce01e (diff)
py: Move to guarded includes, everywhere in py/ core.
Addresses issue #1022.
Diffstat (limited to 'py/pfenv.c')
-rw-r--r--py/pfenv.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/py/pfenv.c b/py/pfenv.c
index 965636aea..698f3b16c 100644
--- a/py/pfenv.c
+++ b/py/pfenv.c
@@ -27,20 +27,15 @@
#include <stdint.h>
#include <string.h>
-#include "mpconfig.h"
-#include "misc.h"
-#include "qstr.h"
-#include "obj.h"
-#include "mpz.h"
-#include "objint.h"
-#include "pfenv.h"
+#include "py/objint.h"
+#include "py/pfenv.h"
#if MICROPY_FLOAT_IMPL == MICROPY_FLOAT_IMPL_DOUBLE
#include <stdio.h>
#endif
#if MICROPY_PY_BUILTINS_FLOAT
-#include "formatfloat.h"
+#include "py/formatfloat.h"
#endif
static const char pad_spaces[] = " ";
@@ -331,7 +326,7 @@ int pfenv_print_float(const pfenv_t *pfenv, mp_float_t f, char fmt, int flags, c
}
int len;
#if MICROPY_FLOAT_IMPL == MICROPY_FLOAT_IMPL_FLOAT
- len = format_float(f, buf, sizeof(buf), fmt, prec, sign);
+ len = mp_format_float(f, buf, sizeof(buf), fmt, prec, sign);
#elif MICROPY_FLOAT_IMPL == MICROPY_FLOAT_IMPL_DOUBLE
char fmt_buf[6];
char *fmt_s = fmt_buf;