Skip to content

Commit a5a01df

Browse files
committed
Make list and str method tables static
1 parent 5fd8fd2 commit a5a01df

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

py/objlist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ static MP_DEFINE_CONST_FUN_OBJ_2(list_remove_obj, list_remove);
261261
static MP_DEFINE_CONST_FUN_OBJ_1(list_reverse_obj, list_reverse);
262262
static MP_DEFINE_CONST_FUN_OBJ_2(list_sort_obj, list_sort);
263263

264-
const mp_method_t list_type_methods[] = {
264+
static const mp_method_t list_type_methods[] = {
265265
{ "append", &list_append_obj },
266266
{ "clear", &list_clear_obj },
267267
{ "copy", &list_copy_obj },

py/objstr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ mp_obj_t str_format(int n_args, const mp_obj_t *args) {
184184
static MP_DEFINE_CONST_FUN_OBJ_2(str_join_obj, str_join);
185185
static MP_DEFINE_CONST_FUN_OBJ_VAR(str_format_obj, 1, str_format);
186186

187-
const mp_method_t str_type_methods[] = {
187+
static const mp_method_t str_type_methods[] = {
188188
{ "join", &str_join_obj },
189189
{ "format", &str_format_obj },
190190
{ NULL, NULL }, // end-of-list sentinel

0 commit comments

Comments
 (0)