Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
93c4a6a3
Commit
93c4a6a3
authored
Sep 21, 2016
by
Damien George
Browse files
all: Remove 'name' member from mp_obj_module_t struct.
One can instead lookup __name__ in the modules dict to get the value.
parent
b0a46900
Changes
62
Hide whitespace changes
Inline
Side-by-side
unix/modtime.c
View file @
93c4a6a3
...
@@ -198,7 +198,6 @@ STATIC MP_DEFINE_CONST_DICT(mp_module_time_globals, mp_module_time_globals_table
...
@@ -198,7 +198,6 @@ STATIC MP_DEFINE_CONST_DICT(mp_module_time_globals, mp_module_time_globals_table
const
mp_obj_module_t
mp_module_time
=
{
const
mp_obj_module_t
mp_module_time
=
{
.
base
=
{
&
mp_type_module
},
.
base
=
{
&
mp_type_module
},
.
name
=
MP_QSTR_utime
,
.
globals
=
(
mp_obj_dict_t
*
)
&
mp_module_time_globals
,
.
globals
=
(
mp_obj_dict_t
*
)
&
mp_module_time_globals
,
};
};
...
...
unix/moduselect.c
View file @
93c4a6a3
...
@@ -235,7 +235,6 @@ STATIC MP_DEFINE_CONST_DICT(mp_module_select_globals, mp_module_select_globals_t
...
@@ -235,7 +235,6 @@ STATIC MP_DEFINE_CONST_DICT(mp_module_select_globals, mp_module_select_globals_t
const
mp_obj_module_t
mp_module_uselect
=
{
const
mp_obj_module_t
mp_module_uselect
=
{
.
base
=
{
&
mp_type_module
},
.
base
=
{
&
mp_type_module
},
.
name
=
MP_QSTR_uselect
,
.
globals
=
(
mp_obj_dict_t
*
)
&
mp_module_select_globals
,
.
globals
=
(
mp_obj_dict_t
*
)
&
mp_module_select_globals
,
};
};
...
...
Prev
1
2
3
4
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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