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
45645043
Commit
45645043
authored
7 years ago
by
Paul Sokolovsky
Browse files
Options
Downloads
Patches
Plain Diff
py/modio: BufferedWriter: Convert to mp_rom_map_elem_t.
parent
f578947a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
py/modio.c
+4
-4
4 additions, 4 deletions
py/modio.c
with
4 additions
and
4 deletions
py/modio.c
+
4
−
4
View file @
45645043
...
...
@@ -112,9 +112,9 @@ STATIC mp_obj_t bufwriter_flush(mp_obj_t self_in) {
}
STATIC
MP_DEFINE_CONST_FUN_OBJ_1
(
bufwriter_flush_obj
,
bufwriter_flush
);
STATIC
const
mp_map_elem_t
bufwriter_locals_dict_table
[]
=
{
{
MP_
OBJ_NEW
_QSTR
(
MP_QSTR_write
),
(
mp_obj_t
)
&
mp_stream_write_obj
},
{
MP_
OBJ_NEW
_QSTR
(
MP_QSTR_flush
),
(
mp_obj_t
)
&
bufwriter_flush_obj
},
STATIC
const
mp_
rom_
map_elem_t
bufwriter_locals_dict_table
[]
=
{
{
MP_
ROM
_QSTR
(
MP_QSTR_write
),
MP_ROM_PTR
(
&
mp_stream_write_obj
)
},
{
MP_
ROM
_QSTR
(
MP_QSTR_flush
),
MP_ROM_PTR
(
&
bufwriter_flush_obj
)
},
};
STATIC
MP_DEFINE_CONST_DICT
(
bufwriter_locals_dict
,
bufwriter_locals_dict_table
);
...
...
@@ -127,7 +127,7 @@ STATIC const mp_obj_type_t bufwriter_type = {
.
name
=
MP_QSTR_BufferedWriter
,
.
make_new
=
bufwriter_make_new
,
.
protocol
=
&
bufwriter_stream_p
,
.
locals_dict
=
(
mp_obj_
t
)
&
bufwriter_locals_dict
,
.
locals_dict
=
(
mp_obj_
dict_t
*
)
&
bufwriter_locals_dict
,
};
#endif // MICROPY_PY_IO_BUFFEREDWRITER
...
...
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