Skip to content

Commit 93c4a6a

Browse files
committed
all: Remove 'name' member from mp_obj_module_t struct.
One can instead lookup __name__ in the modules dict to get the value.
1 parent b0a4690 commit 93c4a6a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+12
-66
lines changed

cc3200/mods/modmachine.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,5 @@ STATIC MP_DEFINE_CONST_DICT(machine_module_globals, machine_module_globals_table
213213

214214
const mp_obj_module_t machine_module = {
215215
.base = { &mp_type_module },
216-
.name = MP_QSTR_umachine,
217216
.globals = (mp_obj_dict_t*)&machine_module_globals,
218217
};

cc3200/mods/modnetwork.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ STATIC MP_DEFINE_CONST_DICT(mp_module_network_globals, mp_module_network_globals
161161

162162
const mp_obj_module_t mp_module_network = {
163163
.base = { &mp_type_module },
164-
.name = MP_QSTR_network,
165164
.globals = (mp_obj_dict_t*)&mp_module_network_globals,
166165
};
167166

cc3200/mods/modubinascii.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,5 @@ STATIC MP_DEFINE_CONST_DICT(mp_module_binascii_globals, mp_module_binascii_globa
5858

5959
const mp_obj_module_t mp_module_ubinascii = {
6060
.base = { &mp_type_module },
61-
.name = MP_QSTR_ubinascii,
6261
.globals = (mp_obj_dict_t*)&mp_module_binascii_globals,
6362
};

cc3200/mods/moduhashlib.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ STATIC MP_DEFINE_CONST_DICT(mp_module_hashlib_globals, mp_module_hashlib_globals
204204

205205
const mp_obj_module_t mp_module_uhashlib = {
206206
.base = { &mp_type_module },
207-
.name = MP_QSTR_uhashlib,
208207
.globals = (mp_obj_dict_t*)&mp_module_hashlib_globals,
209208
};
210209

cc3200/mods/moduos.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,5 @@ STATIC MP_DEFINE_CONST_DICT(os_module_globals, os_module_globals_table);
602602

603603
const mp_obj_module_t mp_module_uos = {
604604
.base = { &mp_type_module },
605-
.name = MP_QSTR_uos,
606605
.globals = (mp_obj_dict_t*)&os_module_globals,
607606
};

cc3200/mods/modusocket.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,5 @@ STATIC MP_DEFINE_CONST_DICT(mp_module_usocket_globals, mp_module_usocket_globals
541541

542542
const mp_obj_module_t mp_module_usocket = {
543543
.base = { &mp_type_module },
544-
.name = MP_QSTR_usocket,
545544
.globals = (mp_obj_dict_t*)&mp_module_usocket_globals,
546545
};

cc3200/mods/modussl.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ STATIC MP_DEFINE_CONST_DICT(mp_module_ussl_globals, mp_module_ussl_globals_table
152152

153153
const mp_obj_module_t mp_module_ussl = {
154154
.base = { &mp_type_module },
155-
.name = MP_QSTR_ussl,
156155
.globals = (mp_obj_dict_t*)&mp_module_ussl_globals,
157156
};
158157

cc3200/mods/modutime.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,5 @@ STATIC MP_DEFINE_CONST_DICT(time_module_globals, time_module_globals_table);
196196

197197
const mp_obj_module_t mp_module_utime = {
198198
.base = { &mp_type_module },
199-
.name = MP_QSTR_utime,
200199
.globals = (mp_obj_dict_t*)&time_module_globals,
201200
};

cc3200/mods/modwipy.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,5 @@ STATIC MP_DEFINE_CONST_DICT(wipy_module_globals, wipy_module_globals_table);
2626

2727
const mp_obj_module_t wipy_module = {
2828
.base = { &mp_type_module },
29-
.name = MP_QSTR_wipy,
3029
.globals = (mp_obj_dict_t*)&wipy_module_globals,
3130
};

esp8266/modesp.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,5 @@ STATIC MP_DEFINE_CONST_DICT(esp_module_globals, esp_module_globals_table);
748748

749749
const mp_obj_module_t esp_module = {
750750
.base = { &mp_type_module },
751-
.name = MP_QSTR_esp,
752751
.globals = (mp_obj_dict_t*)&esp_module_globals,
753752
};

0 commit comments

Comments
 (0)