@@ -71,19 +71,19 @@ static inline void dict_lookup(mp_obj_dict_t *src, qstr attr, mp_obj_t *dest) {
71
71
* MP_REGISTER_ROOT_POINTER(mp_obj_dict_t mymodule_globals);
72
72
*/
73
73
#define UPYWRAP_DEFINE_ATTR_INIT_MODULE (name , initter ) \
74
- STATIC void name##_module_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) { \
74
+ static void name##_module_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) { \
75
75
dict_lookup(&MP_STATE_VM(name##_globals), attr, dest); \
76
76
}\
77
- STATIC mp_obj_t init_##name##_module() { \
77
+ static mp_obj_t init_##name##_module() { \
78
78
init_module_globals(&MP_STATE_VM(name##_globals), MP_QSTR_##name, initter); \
79
79
return mp_const_none; \
80
80
} \
81
- STATIC MP_DEFINE_CONST_FUN_OBJ_0(init_##name##_module_obj, init_##name##_module); \
82
- STATIC const mp_rom_map_elem_t name##_module_globals_table[] = { \
81
+ static MP_DEFINE_CONST_FUN_OBJ_0(init_##name##_module_obj, init_##name##_module); \
82
+ static const mp_rom_map_elem_t name##_module_globals_table[] = { \
83
83
{ MP_ROM_QSTR(MP_QSTR___init__), MP_ROM_PTR(&init_##name##_module_obj) }, \
84
84
MP_MODULE_ATTR_DELEGATION_ENTRY(&name##_module_attr), \
85
85
}; \
86
- STATIC MP_DEFINE_CONST_DICT(name##_module_globals, name##_module_globals_table); \
86
+ static MP_DEFINE_CONST_DICT(name##_module_globals, name##_module_globals_table); \
87
87
const mp_obj_module_t name##_module = { \
88
88
.base = { &mp_type_module }, \
89
89
.globals = (mp_obj_dict_t *)&name##_module_globals, \
@@ -99,16 +99,16 @@ static inline void dict_lookup(mp_obj_dict_t *src, qstr attr, mp_obj_t *dest) {
99
99
* MP_REGISTER_ROOT_POINTER(mp_obj_dict_t mymodule_globals);
100
100
*/
101
101
#define UPYWRAP_DEFINE_ATTR_MODULE (name , initter ) \
102
- STATIC void name##_module_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) { \
102
+ static void name##_module_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) { \
103
103
if (MP_STATE_VM(name##_globals).map.table == NULL) { \
104
104
init_module_globals(&MP_STATE_VM(name##_globals), MP_QSTR_##name, initter); \
105
105
} \
106
106
dict_lookup(&MP_STATE_VM(name##_globals), attr, dest); \
107
107
}\
108
- STATIC const mp_rom_map_elem_t name##_module_globals_table[] = { \
108
+ static const mp_rom_map_elem_t name##_module_globals_table[] = { \
109
109
MP_MODULE_ATTR_DELEGATION_ENTRY(&name##_module_attr), \
110
110
}; \
111
- STATIC MP_DEFINE_CONST_DICT(name##_module_globals, name##_module_globals_table); \
111
+ static MP_DEFINE_CONST_DICT(name##_module_globals, name##_module_globals_table); \
112
112
const mp_obj_module_t name##_module = { \
113
113
.base = { &mp_type_module }, \
114
114
.globals = (mp_obj_dict_t *)&name##_module_globals, \
@@ -124,12 +124,12 @@ static inline void dict_lookup(mp_obj_dict_t *src, qstr attr, mp_obj_t *dest) {
124
124
*/
125
125
#define UPYWRAP_DEFINE_INIT_MODULE (name , initter ) \
126
126
extern const struct _mp_obj_module_t name##_module; \
127
- STATIC mp_obj_t init_##name##_module() { \
127
+ static mp_obj_t init_##name##_module() { \
128
128
init_module_globals(name##_module.globals, MP_QSTR_##name, initter); \
129
129
return mp_const_none; \
130
130
} \
131
- STATIC MP_DEFINE_CONST_FUN_OBJ_0(init_##name##_module_obj, init_##name##_module); \
132
- STATIC mp_rom_map_elem_t name##_module_globals_table[] = { \
131
+ static MP_DEFINE_CONST_FUN_OBJ_0(init_##name##_module_obj, init_##name##_module); \
132
+ static mp_rom_map_elem_t name##_module_globals_table[] = { \
133
133
{ MP_ROM_QSTR(MP_QSTR___init__), MP_ROM_PTR(&init_##name##_module_obj) } \
134
134
}; \
135
135
mp_obj_dict_t name##_module_globals = { \
0 commit comments