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
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
cc3200/mods/modmachine.c
View file @
93c4a6a3
...
...
@@ -213,6 +213,5 @@ STATIC MP_DEFINE_CONST_DICT(machine_module_globals, machine_module_globals_table
const
mp_obj_module_t
machine_module
=
{
.
base
=
{
&
mp_type_module
},
.
name
=
MP_QSTR_umachine
,
.
globals
=
(
mp_obj_dict_t
*
)
&
machine_module_globals
,
};
cc3200/mods/modnetwork.c
View file @
93c4a6a3
...
...
@@ -161,7 +161,6 @@ STATIC MP_DEFINE_CONST_DICT(mp_module_network_globals, mp_module_network_globals
const
mp_obj_module_t
mp_module_network
=
{
.
base
=
{
&
mp_type_module
},
.
name
=
MP_QSTR_network
,
.
globals
=
(
mp_obj_dict_t
*
)
&
mp_module_network_globals
,
};
...
...
cc3200/mods/modubinascii.c
View file @
93c4a6a3
...
...
@@ -58,6 +58,5 @@ STATIC MP_DEFINE_CONST_DICT(mp_module_binascii_globals, mp_module_binascii_globa
const
mp_obj_module_t
mp_module_ubinascii
=
{
.
base
=
{
&
mp_type_module
},
.
name
=
MP_QSTR_ubinascii
,
.
globals
=
(
mp_obj_dict_t
*
)
&
mp_module_binascii_globals
,
};
cc3200/mods/moduhashlib.c
View file @
93c4a6a3
...
...
@@ -204,7 +204,6 @@ STATIC MP_DEFINE_CONST_DICT(mp_module_hashlib_globals, mp_module_hashlib_globals
const
mp_obj_module_t
mp_module_uhashlib
=
{
.
base
=
{
&
mp_type_module
},
.
name
=
MP_QSTR_uhashlib
,
.
globals
=
(
mp_obj_dict_t
*
)
&
mp_module_hashlib_globals
,
};
cc3200/mods/moduos.c
View file @
93c4a6a3
...
...
@@ -602,6 +602,5 @@ STATIC MP_DEFINE_CONST_DICT(os_module_globals, os_module_globals_table);
const
mp_obj_module_t
mp_module_uos
=
{
.
base
=
{
&
mp_type_module
},
.
name
=
MP_QSTR_uos
,
.
globals
=
(
mp_obj_dict_t
*
)
&
os_module_globals
,
};
cc3200/mods/modusocket.c
View file @
93c4a6a3
...
...
@@ -541,6 +541,5 @@ STATIC MP_DEFINE_CONST_DICT(mp_module_usocket_globals, mp_module_usocket_globals
const
mp_obj_module_t
mp_module_usocket
=
{
.
base
=
{
&
mp_type_module
},
.
name
=
MP_QSTR_usocket
,
.
globals
=
(
mp_obj_dict_t
*
)
&
mp_module_usocket_globals
,
};
cc3200/mods/modussl.c
View file @
93c4a6a3
...
...
@@ -152,7 +152,6 @@ STATIC MP_DEFINE_CONST_DICT(mp_module_ussl_globals, mp_module_ussl_globals_table
const
mp_obj_module_t
mp_module_ussl
=
{
.
base
=
{
&
mp_type_module
},
.
name
=
MP_QSTR_ussl
,
.
globals
=
(
mp_obj_dict_t
*
)
&
mp_module_ussl_globals
,
};
cc3200/mods/modutime.c
View file @
93c4a6a3
...
...
@@ -196,6 +196,5 @@ STATIC MP_DEFINE_CONST_DICT(time_module_globals, time_module_globals_table);
const
mp_obj_module_t
mp_module_utime
=
{
.
base
=
{
&
mp_type_module
},
.
name
=
MP_QSTR_utime
,
.
globals
=
(
mp_obj_dict_t
*
)
&
time_module_globals
,
};
cc3200/mods/modwipy.c
View file @
93c4a6a3
...
...
@@ -26,6 +26,5 @@ STATIC MP_DEFINE_CONST_DICT(wipy_module_globals, wipy_module_globals_table);
const
mp_obj_module_t
wipy_module
=
{
.
base
=
{
&
mp_type_module
},
.
name
=
MP_QSTR_wipy
,
.
globals
=
(
mp_obj_dict_t
*
)
&
wipy_module_globals
,
};
esp8266/modesp.c
View file @
93c4a6a3
...
...
@@ -748,6 +748,5 @@ STATIC MP_DEFINE_CONST_DICT(esp_module_globals, esp_module_globals_table);
const
mp_obj_module_t
esp_module
=
{
.
base
=
{
&
mp_type_module
},
.
name
=
MP_QSTR_esp
,
.
globals
=
(
mp_obj_dict_t
*
)
&
esp_module_globals
,
};
esp8266/modmachine.c
View file @
93c4a6a3
...
...
@@ -271,7 +271,6 @@ STATIC MP_DEFINE_CONST_DICT(machine_module_globals, machine_module_globals_table
const
mp_obj_module_t
mp_module_machine
=
{
.
base
=
{
&
mp_type_module
},
.
name
=
MP_QSTR_umachine
,
.
globals
=
(
mp_obj_dict_t
*
)
&
machine_module_globals
,
};
...
...
esp8266/modnetwork.c
View file @
93c4a6a3
...
...
@@ -484,6 +484,5 @@ STATIC MP_DEFINE_CONST_DICT(mp_module_network_globals, mp_module_network_globals
const
mp_obj_module_t
network_module
=
{
.
base
=
{
&
mp_type_module
},
.
name
=
MP_QSTR_network
,
.
globals
=
(
mp_obj_dict_t
*
)
&
mp_module_network_globals
,
};
esp8266/modonewire.c
View file @
93c4a6a3
...
...
@@ -117,6 +117,5 @@ STATIC MP_DEFINE_CONST_DICT(onewire_module_globals, onewire_module_globals_table
const
mp_obj_module_t
onewire_module
=
{
.
base
=
{
&
mp_type_module
},
.
name
=
MP_QSTR_onewire
,
.
globals
=
(
mp_obj_dict_t
*
)
&
onewire_module_globals
,
};
esp8266/moduos.c
View file @
93c4a6a3
...
...
@@ -178,6 +178,5 @@ STATIC MP_DEFINE_CONST_DICT(os_module_globals, os_module_globals_table);
const
mp_obj_module_t
uos_module
=
{
.
base
=
{
&
mp_type_module
},
.
name
=
MP_QSTR_uos
,
.
globals
=
(
mp_obj_dict_t
*
)
&
os_module_globals
,
};
esp8266/modutime.c
View file @
93c4a6a3
...
...
@@ -173,6 +173,5 @@ STATIC MP_DEFINE_CONST_DICT(time_module_globals, time_module_globals_table);
const
mp_obj_module_t
utime_module
=
{
.
base
=
{
&
mp_type_module
},
.
name
=
MP_QSTR_utime
,
.
globals
=
(
mp_obj_dict_t
*
)
&
time_module_globals
,
};
extmod/modbtree.c
View file @
93c4a6a3
...
...
@@ -387,7 +387,6 @@ STATIC MP_DEFINE_CONST_DICT(mp_module_btree_globals, mp_module_btree_globals_tab
const
mp_obj_module_t
mp_module_btree
=
{
.
base
=
{
&
mp_type_module
},
.
name
=
MP_QSTR_btree
,
.
globals
=
(
mp_obj_dict_t
*
)
&
mp_module_btree_globals
,
};
...
...
extmod/modframebuf.c
View file @
93c4a6a3
...
...
@@ -213,7 +213,6 @@ STATIC MP_DEFINE_CONST_DICT(framebuf_module_globals, framebuf_module_globals_tab
const
mp_obj_module_t
mp_module_framebuf
=
{
.
base
=
{
&
mp_type_module
},
.
name
=
MP_QSTR_framebuf
,
.
globals
=
(
mp_obj_dict_t
*
)
&
framebuf_module_globals
,
};
...
...
extmod/modlwip.c
View file @
93c4a6a3
...
...
@@ -1309,7 +1309,6 @@ STATIC MP_DEFINE_CONST_DICT(mp_module_lwip_globals, mp_module_lwip_globals_table
const
mp_obj_module_t
mp_module_lwip
=
{
.
base
=
{
&
mp_type_module
},
.
name
=
MP_QSTR_lwip
,
.
globals
=
(
mp_obj_dict_t
*
)
&
mp_module_lwip_globals
,
};
...
...
extmod/modubinascii.c
View file @
93c4a6a3
...
...
@@ -232,7 +232,6 @@ STATIC MP_DEFINE_CONST_DICT(mp_module_binascii_globals, mp_module_binascii_globa
const
mp_obj_module_t
mp_module_ubinascii
=
{
.
base
=
{
&
mp_type_module
},
.
name
=
MP_QSTR_ubinascii
,
.
globals
=
(
mp_obj_dict_t
*
)
&
mp_module_binascii_globals
,
};
...
...
extmod/moductypes.c
View file @
93c4a6a3
...
...
@@ -710,7 +710,6 @@ STATIC MP_DEFINE_CONST_DICT(mp_module_uctypes_globals, mp_module_uctypes_globals
const
mp_obj_module_t
mp_module_uctypes
=
{
.
base
=
{
&
mp_type_module
},
.
name
=
MP_QSTR_uctypes
,
.
globals
=
(
mp_obj_dict_t
*
)
&
mp_module_uctypes_globals
,
};
...
...
Prev
1
2
3
4
Next
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