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
e5039c6f
Commit
e5039c6f
authored
10 years ago
by
Damien George
Browse files
Options
Downloads
Patches
Plain Diff
py: Use TextIOWrapper only if PY_IO_FILEIO def'd; cast size_t for print.
parent
f80f1a70
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
py/modio.c
+1
-1
1 addition, 1 deletion
py/modio.c
py/modmicropython.c
+1
-1
1 addition, 1 deletion
py/modmicropython.c
with
2 additions
and
2 deletions
py/modio.c
+
1
−
1
View file @
e5039c6f
...
...
@@ -38,10 +38,10 @@ STATIC const mp_map_elem_t mp_module_io_globals_table[] = {
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_open
),
(
mp_obj_t
)
&
mp_builtin_open_obj
},
#if MICROPY_PY_IO_FILEIO
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_FileIO
),
(
mp_obj_t
)
&
mp_type_fileio
},
#endif
#if MICROPY_CPYTHON_COMPAT
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_TextIOWrapper
),
(
mp_obj_t
)
&
mp_type_textio
},
#endif
#endif
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_StringIO
),
(
mp_obj_t
)
&
mp_type_stringio
},
#if MICROPY_PY_IO_BYTESIO
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_BytesIO
),
(
mp_obj_t
)
&
mp_type_bytesio
},
...
...
This diff is collapsed.
Click to expand it.
py/modmicropython.c
+
1
−
1
View file @
e5039c6f
...
...
@@ -57,7 +57,7 @@ mp_obj_t mp_micropython_mem_info(mp_uint_t n_args, const mp_obj_t *args) {
(
void
)
args
;
#if MICROPY_MEM_STATS
printf
(
"mem: total="
UINT_FMT
", current="
UINT_FMT
", peak="
UINT_FMT
"
\n
"
,
m_get_total_bytes_allocated
(),
m_get_current_bytes_allocated
(),
m_get_peak_bytes_allocated
());
(
mp_uint_t
)
m_get_total_bytes_allocated
(),
(
mp_uint_t
)
m_get_current_bytes_allocated
(),
(
mp_uint_t
)
m_get_peak_bytes_allocated
());
#endif
#if MICROPY_STACK_CHECK
printf
(
"stack: "
UINT_FMT
" out of "
INT_FMT
"
\n
"
,
mp_stack_usage
(),
MP_STATE_VM
(
stack_limit
));
...
...
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