Skip to content

Commit 520e2f5

Browse files
committed
Replace global "static" -> "STATIC", to allow "analysis builds". Part 2.
1 parent d5df6cd commit 520e2f5

22 files changed

+451
-446
lines changed

py/asmthumb.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void asm_thumb_end_pass(asm_thumb_t *as) {
9393
}
9494

9595
// all functions must go through this one to emit bytes
96-
static byte *asm_thumb_get_cur_to_write_bytes(asm_thumb_t *as, int num_bytes_to_write) {
96+
STATIC byte *asm_thumb_get_cur_to_write_bytes(asm_thumb_t *as, int num_bytes_to_write) {
9797
//printf("emit %d\n", num_bytes_to_write);
9898
if (as->pass < ASM_THUMB_PASS_3) {
9999
as->code_offset += num_bytes_to_write;
@@ -116,20 +116,20 @@ void *asm_thumb_get_code(asm_thumb_t *as) {
116116
}
117117

118118
/*
119-
static void asm_thumb_write_byte_1(asm_thumb_t *as, byte b1) {
119+
STATIC void asm_thumb_write_byte_1(asm_thumb_t *as, byte b1) {
120120
byte *c = asm_thumb_get_cur_to_write_bytes(as, 1);
121121
c[0] = b1;
122122
}
123123
*/
124124

125-
static void asm_thumb_write_op16(asm_thumb_t *as, uint op) {
125+
STATIC void asm_thumb_write_op16(asm_thumb_t *as, uint op) {
126126
byte *c = asm_thumb_get_cur_to_write_bytes(as, 2);
127127
// little endian
128128
c[0] = op;
129129
c[1] = op >> 8;
130130
}
131131

132-
static void asm_thumb_write_op32(asm_thumb_t *as, uint op1, uint op2) {
132+
STATIC void asm_thumb_write_op32(asm_thumb_t *as, uint op1, uint op2) {
133133
byte *c = asm_thumb_get_cur_to_write_bytes(as, 4);
134134
// little endian, op1 then op2
135135
c[0] = op1;
@@ -144,7 +144,7 @@ static void asm_thumb_write_op32(asm_thumb_t *as, uint op1, uint op2) {
144144
#define IMM32_L2(x) (((x) >> 16) & 0xff)
145145
#define IMM32_L3(x) (((x) >> 24) & 0xff)
146146
147-
static void asm_thumb_write_word32(asm_thumb_t *as, int w32) {
147+
STATIC void asm_thumb_write_word32(asm_thumb_t *as, int w32) {
148148
byte *c = asm_thumb_get_cur_to_write_bytes(as, 4);
149149
c[0] = IMM32_L0(w32);
150150
c[1] = IMM32_L1(w32);
@@ -226,7 +226,7 @@ void asm_thumb_label_assign(asm_thumb_t *as, int label) {
226226
}
227227
}
228228

229-
static int get_label_dest(asm_thumb_t *as, int label) {
229+
STATIC int get_label_dest(asm_thumb_t *as, int label) {
230230
assert(label < as->max_num_labels);
231231
return as->label_offsets[label];
232232
}
@@ -244,7 +244,7 @@ void asm_thumb_movs_rlo_i8(asm_thumb_t *as, uint rlo_dest, int i8_src) {
244244
#define OP_MOVT (0xf2c0)
245245

246246
// if loading lo half with movw, the i16 value will be zero extended into the r32 register!
247-
static void asm_thumb_mov_reg_i16(asm_thumb_t *as, uint mov_op, uint reg_dest, int i16_src) {
247+
STATIC void asm_thumb_mov_reg_i16(asm_thumb_t *as, uint mov_op, uint reg_dest, int i16_src) {
248248
assert(reg_dest < REG_R15);
249249
// mov[wt] reg_dest, #i16_src
250250
asm_thumb_write_op32(as, mov_op | ((i16_src >> 1) & 0x0400) | ((i16_src >> 12) & 0xf), ((i16_src << 4) & 0x7000) | (reg_dest << 8) | (i16_src & 0xff));

py/asmx64.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ void asm_x64_end_pass(asm_x64_t *as) {
176176
}
177177

178178
// all functions must go through this one to emit bytes
179-
static byte *asm_x64_get_cur_to_write_bytes(asm_x64_t *as, int num_bytes_to_write) {
179+
STATIC byte *asm_x64_get_cur_to_write_bytes(asm_x64_t *as, int num_bytes_to_write) {
180180
//printf("emit %d\n", num_bytes_to_write);
181181
if (as->pass < ASM_X64_PASS_3) {
182182
as->code_offset += num_bytes_to_write;
@@ -197,33 +197,33 @@ void *asm_x64_get_code(asm_x64_t *as) {
197197
return as->code_base;
198198
}
199199

200-
static void asm_x64_write_byte_1(asm_x64_t *as, byte b1) {
200+
STATIC void asm_x64_write_byte_1(asm_x64_t *as, byte b1) {
201201
byte* c = asm_x64_get_cur_to_write_bytes(as, 1);
202202
c[0] = b1;
203203
}
204204

205-
static void asm_x64_write_byte_2(asm_x64_t *as, byte b1, byte b2) {
205+
STATIC void asm_x64_write_byte_2(asm_x64_t *as, byte b1, byte b2) {
206206
byte* c = asm_x64_get_cur_to_write_bytes(as, 2);
207207
c[0] = b1;
208208
c[1] = b2;
209209
}
210210

211-
static void asm_x64_write_byte_3(asm_x64_t *as, byte b1, byte b2, byte b3) {
211+
STATIC void asm_x64_write_byte_3(asm_x64_t *as, byte b1, byte b2, byte b3) {
212212
byte* c = asm_x64_get_cur_to_write_bytes(as, 3);
213213
c[0] = b1;
214214
c[1] = b2;
215215
c[2] = b3;
216216
}
217217

218-
static void asm_x64_write_word32(asm_x64_t *as, int w32) {
218+
STATIC void asm_x64_write_word32(asm_x64_t *as, int w32) {
219219
byte* c = asm_x64_get_cur_to_write_bytes(as, 4);
220220
c[0] = IMM32_L0(w32);
221221
c[1] = IMM32_L1(w32);
222222
c[2] = IMM32_L2(w32);
223223
c[3] = IMM32_L3(w32);
224224
}
225225

226-
static void asm_x64_write_word64(asm_x64_t *as, int64_t w64) {
226+
STATIC void asm_x64_write_word64(asm_x64_t *as, int64_t w64) {
227227
byte* c = asm_x64_get_cur_to_write_bytes(as, 8);
228228
c[0] = IMM32_L0(w64);
229229
c[1] = IMM32_L1(w64);
@@ -236,7 +236,7 @@ static void asm_x64_write_word64(asm_x64_t *as, int64_t w64) {
236236
}
237237

238238
/* unused
239-
static void asm_x64_write_word32_to(asm_x64_t *as, int offset, int w32) {
239+
STATIC void asm_x64_write_word32_to(asm_x64_t *as, int offset, int w32) {
240240
byte* c;
241241
assert(offset + 4 <= as->code_size);
242242
c = as->code_base + offset;
@@ -247,7 +247,7 @@ static void asm_x64_write_word32_to(asm_x64_t *as, int offset, int w32) {
247247
}
248248
*/
249249

250-
static void asm_x64_write_r64_disp(asm_x64_t *as, int r64, int disp_r64, int disp_offset) {
250+
STATIC void asm_x64_write_r64_disp(asm_x64_t *as, int r64, int disp_r64, int disp_offset) {
251251
assert(disp_r64 != REG_RSP);
252252

253253
if (disp_offset == 0 && disp_r64 != REG_RBP) {
@@ -282,7 +282,7 @@ void asm_x64_pop_r64(asm_x64_t *as, int dest_r64) {
282282
asm_x64_write_byte_1(as, OPCODE_POP_R64 | dest_r64);
283283
}
284284

285-
static void asm_x64_ret(asm_x64_t *as) {
285+
STATIC void asm_x64_ret(asm_x64_t *as) {
286286
asm_x64_write_byte_1(as, OPCODE_RET);
287287
}
288288

@@ -472,7 +472,7 @@ void asm_x64_label_assign(asm_x64_t *as, int label) {
472472
}
473473
}
474474

475-
static int get_label_dest(asm_x64_t *as, int label) {
475+
STATIC int get_label_dest(asm_x64_t *as, int label) {
476476
assert(label < as->max_num_labels);
477477
return as->label_offsets[label];
478478
}
@@ -565,7 +565,7 @@ void asm_x64_mov_r32_to_arg(asm_x64_t *as, int src_r32, int dest_arg_num) {
565565
// ^ ^
566566
// | low address | high address in RAM
567567
//
568-
static int asm_x64_local_offset_from_ebp(asm_x64_t *as, int local_num) {
568+
STATIC int asm_x64_local_offset_from_ebp(asm_x64_t *as, int local_num) {
569569
return (-as->num_locals + local_num) * WORD_SIZE;
570570
}
571571

py/builtin.c

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// args[0] is function from class body
1919
// args[1] is class name
2020
// args[2:] are base objects
21-
static mp_obj_t mp_builtin___build_class__(uint n_args, const mp_obj_t *args) {
21+
STATIC mp_obj_t mp_builtin___build_class__(uint n_args, const mp_obj_t *args) {
2222
assert(2 <= n_args);
2323

2424
// we differ from CPython: we set the new __locals__ object here
@@ -61,7 +61,7 @@ static mp_obj_t mp_builtin___build_class__(uint n_args, const mp_obj_t *args) {
6161

6262
MP_DEFINE_CONST_FUN_OBJ_VAR(mp_builtin___build_class___obj, 2, mp_builtin___build_class__);
6363

64-
static mp_obj_t mp_builtin___repl_print__(mp_obj_t o) {
64+
STATIC mp_obj_t mp_builtin___repl_print__(mp_obj_t o) {
6565
if (o != mp_const_none) {
6666
mp_obj_print(o, PRINT_REPR);
6767
printf("\n");
@@ -100,7 +100,7 @@ mp_obj_t mp_builtin_abs(mp_obj_t o_in) {
100100

101101
MP_DEFINE_CONST_FUN_OBJ_1(mp_builtin_abs_obj, mp_builtin_abs);
102102

103-
static mp_obj_t mp_builtin_all(mp_obj_t o_in) {
103+
STATIC mp_obj_t mp_builtin_all(mp_obj_t o_in) {
104104
mp_obj_t iterable = rt_getiter(o_in);
105105
mp_obj_t item;
106106
while ((item = rt_iternext(iterable)) != mp_const_stop_iteration) {
@@ -113,7 +113,7 @@ static mp_obj_t mp_builtin_all(mp_obj_t o_in) {
113113

114114
MP_DEFINE_CONST_FUN_OBJ_1(mp_builtin_all_obj, mp_builtin_all);
115115

116-
static mp_obj_t mp_builtin_any(mp_obj_t o_in) {
116+
STATIC mp_obj_t mp_builtin_any(mp_obj_t o_in) {
117117
mp_obj_t iterable = rt_getiter(o_in);
118118
mp_obj_t item;
119119
while ((item = rt_iternext(iterable)) != mp_const_stop_iteration) {
@@ -126,7 +126,7 @@ static mp_obj_t mp_builtin_any(mp_obj_t o_in) {
126126

127127
MP_DEFINE_CONST_FUN_OBJ_1(mp_builtin_any_obj, mp_builtin_any);
128128

129-
static mp_obj_t mp_builtin_callable(mp_obj_t o_in) {
129+
STATIC mp_obj_t mp_builtin_callable(mp_obj_t o_in) {
130130
if (mp_obj_is_callable(o_in)) {
131131
return mp_const_true;
132132
} else {
@@ -136,7 +136,7 @@ static mp_obj_t mp_builtin_callable(mp_obj_t o_in) {
136136

137137
MP_DEFINE_CONST_FUN_OBJ_1(mp_builtin_callable_obj, mp_builtin_callable);
138138

139-
static mp_obj_t mp_builtin_chr(mp_obj_t o_in) {
139+
STATIC mp_obj_t mp_builtin_chr(mp_obj_t o_in) {
140140
int ord = mp_obj_get_int(o_in);
141141
if (0 <= ord && ord <= 0x10ffff) {
142142
byte str[1] = {ord};
@@ -148,7 +148,7 @@ static mp_obj_t mp_builtin_chr(mp_obj_t o_in) {
148148

149149
MP_DEFINE_CONST_FUN_OBJ_1(mp_builtin_chr_obj, mp_builtin_chr);
150150

151-
static mp_obj_t mp_builtin_dir(uint n_args, const mp_obj_t *args) {
151+
STATIC mp_obj_t mp_builtin_dir(uint n_args, const mp_obj_t *args) {
152152
// TODO make this function more general and less of a hack
153153

154154
mp_map_t *map;
@@ -178,7 +178,7 @@ static mp_obj_t mp_builtin_dir(uint n_args, const mp_obj_t *args) {
178178

179179
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mp_builtin_dir_obj, 0, 1, mp_builtin_dir);
180180

181-
static mp_obj_t mp_builtin_divmod(mp_obj_t o1_in, mp_obj_t o2_in) {
181+
STATIC mp_obj_t mp_builtin_divmod(mp_obj_t o1_in, mp_obj_t o2_in) {
182182
if (MP_OBJ_IS_SMALL_INT(o1_in) && MP_OBJ_IS_SMALL_INT(o2_in)) {
183183
mp_small_int_t i1 = MP_OBJ_SMALL_INT_VALUE(o1_in);
184184
mp_small_int_t i2 = MP_OBJ_SMALL_INT_VALUE(o2_in);
@@ -193,20 +193,20 @@ static mp_obj_t mp_builtin_divmod(mp_obj_t o1_in, mp_obj_t o2_in) {
193193

194194
MP_DEFINE_CONST_FUN_OBJ_2(mp_builtin_divmod_obj, mp_builtin_divmod);
195195

196-
static mp_obj_t mp_builtin_hash(mp_obj_t o_in) {
196+
STATIC mp_obj_t mp_builtin_hash(mp_obj_t o_in) {
197197
// TODO hash will generally overflow small integer; can we safely truncate it?
198198
return mp_obj_new_int(mp_obj_hash(o_in));
199199
}
200200

201201
MP_DEFINE_CONST_FUN_OBJ_1(mp_builtin_hash_obj, mp_builtin_hash);
202202

203-
static mp_obj_t mp_builtin_iter(mp_obj_t o_in) {
203+
STATIC mp_obj_t mp_builtin_iter(mp_obj_t o_in) {
204204
return rt_getiter(o_in);
205205
}
206206

207207
MP_DEFINE_CONST_FUN_OBJ_1(mp_builtin_iter_obj, mp_builtin_iter);
208208

209-
static mp_obj_t mp_builtin_len(mp_obj_t o_in) {
209+
STATIC mp_obj_t mp_builtin_len(mp_obj_t o_in) {
210210
mp_obj_t len = mp_obj_len_maybe(o_in);
211211
if (len == NULL) {
212212
nlr_jump(mp_obj_new_exception_msg_varg(MP_QSTR_TypeError, "object of type '%s' has no len()", mp_obj_get_type_str(o_in)));
@@ -217,7 +217,7 @@ static mp_obj_t mp_builtin_len(mp_obj_t o_in) {
217217

218218
MP_DEFINE_CONST_FUN_OBJ_1(mp_builtin_len_obj, mp_builtin_len);
219219

220-
static mp_obj_t mp_builtin_max(uint n_args, const mp_obj_t *args) {
220+
STATIC mp_obj_t mp_builtin_max(uint n_args, const mp_obj_t *args) {
221221
if (n_args == 1) {
222222
// given an iterable
223223
mp_obj_t iterable = rt_getiter(args[0]);
@@ -246,7 +246,7 @@ static mp_obj_t mp_builtin_max(uint n_args, const mp_obj_t *args) {
246246

247247
MP_DEFINE_CONST_FUN_OBJ_VAR(mp_builtin_max_obj, 1, mp_builtin_max);
248248

249-
static mp_obj_t mp_builtin_min(uint n_args, const mp_obj_t *args) {
249+
STATIC mp_obj_t mp_builtin_min(uint n_args, const mp_obj_t *args) {
250250
if (n_args == 1) {
251251
// given an iterable
252252
mp_obj_t iterable = rt_getiter(args[0]);
@@ -275,7 +275,7 @@ static mp_obj_t mp_builtin_min(uint n_args, const mp_obj_t *args) {
275275

276276
MP_DEFINE_CONST_FUN_OBJ_VAR(mp_builtin_min_obj, 1, mp_builtin_min);
277277

278-
static mp_obj_t mp_builtin_next(mp_obj_t o) {
278+
STATIC mp_obj_t mp_builtin_next(mp_obj_t o) {
279279
mp_obj_t ret = rt_iternext(o);
280280
if (ret == mp_const_stop_iteration) {
281281
nlr_jump(mp_obj_new_exception(MP_QSTR_StopIteration));
@@ -286,7 +286,7 @@ static mp_obj_t mp_builtin_next(mp_obj_t o) {
286286

287287
MP_DEFINE_CONST_FUN_OBJ_1(mp_builtin_next_obj, mp_builtin_next);
288288

289-
static mp_obj_t mp_builtin_ord(mp_obj_t o_in) {
289+
STATIC mp_obj_t mp_builtin_ord(mp_obj_t o_in) {
290290
uint len;
291291
const char *str = mp_obj_str_get_data(o_in, &len);
292292
if (len == 1) {
@@ -300,7 +300,7 @@ static mp_obj_t mp_builtin_ord(mp_obj_t o_in) {
300300

301301
MP_DEFINE_CONST_FUN_OBJ_1(mp_builtin_ord_obj, mp_builtin_ord);
302302

303-
static mp_obj_t mp_builtin_pow(uint n_args, const mp_obj_t *args) {
303+
STATIC mp_obj_t mp_builtin_pow(uint n_args, const mp_obj_t *args) {
304304
assert(2 <= n_args && n_args <= 3);
305305
switch (n_args) {
306306
case 2: return rt_binary_op(RT_BINARY_OP_POWER, args[0], args[1]);
@@ -310,7 +310,7 @@ static mp_obj_t mp_builtin_pow(uint n_args, const mp_obj_t *args) {
310310

311311
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mp_builtin_pow_obj, 2, 3, mp_builtin_pow);
312312

313-
static mp_obj_t mp_builtin_print(uint n_args, const mp_obj_t *args) {
313+
STATIC mp_obj_t mp_builtin_print(uint n_args, const mp_obj_t *args) {
314314
for (int i = 0; i < n_args; i++) {
315315
if (i > 0) {
316316
printf(" ");
@@ -323,7 +323,7 @@ static mp_obj_t mp_builtin_print(uint n_args, const mp_obj_t *args) {
323323

324324
MP_DEFINE_CONST_FUN_OBJ_VAR(mp_builtin_print_obj, 0, mp_builtin_print);
325325

326-
static mp_obj_t mp_builtin_range(uint n_args, const mp_obj_t *args) {
326+
STATIC mp_obj_t mp_builtin_range(uint n_args, const mp_obj_t *args) {
327327
assert(1 <= n_args && n_args <= 3);
328328
switch (n_args) {
329329
case 1: return mp_obj_new_range(0, mp_obj_get_int(args[0]), 1);
@@ -334,7 +334,7 @@ static mp_obj_t mp_builtin_range(uint n_args, const mp_obj_t *args) {
334334

335335
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mp_builtin_range_obj, 1, 3, mp_builtin_range);
336336

337-
static mp_obj_t mp_builtin_repr(mp_obj_t o_in) {
337+
STATIC mp_obj_t mp_builtin_repr(mp_obj_t o_in) {
338338
vstr_t *vstr = vstr_new();
339339
mp_obj_print_helper((void (*)(void *env, const char *fmt, ...))vstr_printf, vstr, o_in, PRINT_REPR);
340340
mp_obj_t s = mp_obj_new_str((byte*)vstr->buf, vstr->len, false);
@@ -344,7 +344,7 @@ static mp_obj_t mp_builtin_repr(mp_obj_t o_in) {
344344

345345
MP_DEFINE_CONST_FUN_OBJ_1(mp_builtin_repr_obj, mp_builtin_repr);
346346

347-
static mp_obj_t mp_builtin_sum(uint n_args, const mp_obj_t *args) {
347+
STATIC mp_obj_t mp_builtin_sum(uint n_args, const mp_obj_t *args) {
348348
assert(1 <= n_args && n_args <= 2);
349349
mp_obj_t value;
350350
switch (n_args) {
@@ -361,7 +361,7 @@ static mp_obj_t mp_builtin_sum(uint n_args, const mp_obj_t *args) {
361361

362362
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mp_builtin_sum_obj, 1, 2, mp_builtin_sum);
363363

364-
static mp_obj_t mp_builtin_sorted(uint n_args, const mp_obj_t *args, mp_map_t *kwargs) {
364+
STATIC mp_obj_t mp_builtin_sorted(uint n_args, const mp_obj_t *args, mp_map_t *kwargs) {
365365
assert(n_args >= 1);
366366
if (n_args > 1) {
367367
nlr_jump(mp_obj_new_exception_msg(MP_QSTR_TypeError,
@@ -375,7 +375,7 @@ static mp_obj_t mp_builtin_sorted(uint n_args, const mp_obj_t *args, mp_map_t *k
375375

376376
MP_DEFINE_CONST_FUN_OBJ_KW(mp_builtin_sorted_obj, 1, mp_builtin_sorted);
377377

378-
static mp_obj_t mp_builtin_str(mp_obj_t o_in) {
378+
STATIC mp_obj_t mp_builtin_str(mp_obj_t o_in) {
379379
vstr_t *vstr = vstr_new();
380380
mp_obj_print_helper((void (*)(void*, const char*, ...))vstr_printf, vstr, o_in, PRINT_STR);
381381
mp_obj_t s = mp_obj_new_str((byte*)vstr->buf, vstr->len, false);
@@ -386,7 +386,7 @@ static mp_obj_t mp_builtin_str(mp_obj_t o_in) {
386386
MP_DEFINE_CONST_FUN_OBJ_1(mp_builtin_str_obj, mp_builtin_str);
387387

388388
// TODO: This should be type, this is just quick CPython compat hack
389-
static mp_obj_t mp_builtin_bytes(uint n_args, const mp_obj_t *args) {
389+
STATIC mp_obj_t mp_builtin_bytes(uint n_args, const mp_obj_t *args) {
390390
if (!MP_OBJ_IS_QSTR(args[0]) && !MP_OBJ_IS_TYPE(args[0], &str_type)) {
391391
assert(0);
392392
}
@@ -397,7 +397,7 @@ static mp_obj_t mp_builtin_bytes(uint n_args, const mp_obj_t *args) {
397397

398398
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mp_builtin_bytes_obj, 1, 3, mp_builtin_bytes);
399399

400-
static mp_obj_t mp_builtin_id(mp_obj_t o_in) {
400+
STATIC mp_obj_t mp_builtin_id(mp_obj_t o_in) {
401401
return mp_obj_new_int((machine_int_t)o_in);
402402
}
403403

py/builtinevex.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "map.h"
2020
#include "builtin.h"
2121

22-
static mp_obj_t parse_compile_execute(mp_obj_t o_in, mp_parse_input_kind_t parse_input_kind) {
22+
STATIC mp_obj_t parse_compile_execute(mp_obj_t o_in, mp_parse_input_kind_t parse_input_kind) {
2323
uint str_len;
2424
const char *str = mp_obj_str_get_data(o_in, &str_len);
2525

@@ -51,13 +51,13 @@ static mp_obj_t parse_compile_execute(mp_obj_t o_in, mp_parse_input_kind_t parse
5151
return rt_call_function_0(module_fun);
5252
}
5353

54-
static mp_obj_t mp_builtin_eval(mp_obj_t o_in) {
54+
STATIC mp_obj_t mp_builtin_eval(mp_obj_t o_in) {
5555
return parse_compile_execute(o_in, MP_PARSE_EVAL_INPUT);
5656
}
5757

5858
MP_DEFINE_CONST_FUN_OBJ_1(mp_builtin_eval_obj, mp_builtin_eval);
5959

60-
static mp_obj_t mp_builtin_exec(mp_obj_t o_in) {
60+
STATIC mp_obj_t mp_builtin_exec(mp_obj_t o_in) {
6161
return parse_compile_execute(o_in, MP_PARSE_FILE_INPUT);
6262
}
6363

0 commit comments

Comments
 (0)