Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
75aebda8
Commit
75aebda8
authored
10 years ago
by
Damien George
Browse files
Options
Downloads
Plain Diff
Merge branch 'stinos-mingw-float-printf'
parents
d5f5b2f7
3a018403
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
py/runtime.c
+5
-0
5 additions, 0 deletions
py/runtime.c
windows/Makefile
+1
-0
1 addition, 0 deletions
windows/Makefile
windows/init.c
+5
-0
5 additions, 0 deletions
windows/init.c
windows/init.h
+1
-0
1 addition, 0 deletions
windows/init.h
windows/mpconfigport.h
+2
-0
2 additions, 0 deletions
windows/mpconfigport.h
with
14 additions
and
0 deletions
py/runtime.c
+
5
−
0
View file @
75aebda8
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
windows/Makefile
+
1
−
0
View file @
75aebda8
...
...
@@ -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
))
...
...
This diff is collapsed.
Click to expand it.
windows/init.c
0 → 100644
+
5
−
0
View file @
75aebda8
#include
<stdlib.h>
void
init
()
{
putenv
(
"PRINTF_EXPONENT_DIGITS=2"
);
}
This diff is collapsed.
Click to expand it.
windows/init.h
0 → 100644
+
1
−
0
View file @
75aebda8
void
init
(
void
);
This diff is collapsed.
Click to expand it.
windows/mpconfigport.h
+
2
−
0
View file @
75aebda8
...
...
@@ -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"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment