Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
cff638a4
Commit
cff638a4
authored
May 03, 2014
by
Damien George
Browse files
Merge branch 'mingw-float-printf' of github.com:stinos/micropython into stinos-mingw-float-printf
parents
d5f5b2f7
72521a1c
Changes
5
Hide whitespace changes
Inline
Side-by-side
py/runtime.c
View file @
cff638a4
...
...
@@ -42,6 +42,11 @@ const mp_obj_module_t mp_module___main__ = {
};
void
mp_init
(
void
)
{
// call port specific initialization if any
#ifdef MICROPY_PORT_INIT_FUNC
MICROPY_PORT_INIT_FUNC
;
#endif
mp_emit_glue_init
();
// init global module stuff
...
...
windows/Makefile
View file @
cff638a4
...
...
@@ -31,6 +31,7 @@ SRC_C = \
unix/main.c
\
unix/file.c
\
realpath.c
\
init.c
\
OBJ
=
$(PY_O)
$(
addprefix
$(BUILD)
/,
$(SRC_C:.c=.o)
)
...
...
windows/init.c
0 → 100644
View file @
cff638a4
#include
<stdlib.h>
void
init
()
{
putenv
(
"PRINTF_EXPONENT_DIGITS=2"
);
}
windows/init.h
0 → 100644
View file @
cff638a4
void
init
();
windows/mpconfigport.h
View file @
cff638a4
...
...
@@ -15,6 +15,7 @@
#define MICROPY_MOD_SYS_STDFILES (1)
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_DOUBLE)
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
#define MICROPY_PORT_INIT_FUNC init()
// type definitions for the specific machine
...
...
@@ -38,3 +39,4 @@ extern const struct _mp_obj_fun_native_t mp_builtin_open_obj;
{ MP_OBJ_NEW_QSTR(MP_QSTR_open), (mp_obj_t)&mp_builtin_open_obj },
#include
"realpath.h"
#include
"init.h"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment