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
a5a01df8
Commit
a5a01df8
authored
Jan 06, 2014
by
ian-v
Browse files
Make list and str method tables static
parent
5fd8fd2c
Changes
2
Hide whitespace changes
Inline
Side-by-side
py/objlist.c
View file @
a5a01df8
...
...
@@ -261,7 +261,7 @@ static MP_DEFINE_CONST_FUN_OBJ_2(list_remove_obj, list_remove);
static
MP_DEFINE_CONST_FUN_OBJ_1
(
list_reverse_obj
,
list_reverse
);
static
MP_DEFINE_CONST_FUN_OBJ_2
(
list_sort_obj
,
list_sort
);
const
mp_method_t
list_type_methods
[]
=
{
static
const
mp_method_t
list_type_methods
[]
=
{
{
"append"
,
&
list_append_obj
},
{
"clear"
,
&
list_clear_obj
},
{
"copy"
,
&
list_copy_obj
},
...
...
py/objstr.c
View file @
a5a01df8
...
...
@@ -184,7 +184,7 @@ mp_obj_t str_format(int n_args, const mp_obj_t *args) {
static
MP_DEFINE_CONST_FUN_OBJ_2
(
str_join_obj
,
str_join
);
static
MP_DEFINE_CONST_FUN_OBJ_VAR
(
str_format_obj
,
1
,
str_format
);
const
mp_method_t
str_type_methods
[]
=
{
static
const
mp_method_t
str_type_methods
[]
=
{
{
"join"
,
&
str_join_obj
},
{
"format"
,
&
str_format_obj
},
{
NULL
,
NULL
},
// end-of-list sentinel
...
...
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