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
1595f325
Commit
1595f325
authored
Oct 19, 2013
by
Damien
Browse files
Make rt_fun_table const, so it goes in .text section.
parent
00ff04fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
py/runtime.c
View file @
1595f325
...
...
@@ -1546,7 +1546,7 @@ py_obj_t rt_iternext(py_obj_t o_in) {
}
}
void
*
rt_fun_table
[
RT_F_NUMBER_OF
]
=
{
const
void
*
const
rt_fun_table
[
RT_F_NUMBER_OF
]
=
{
rt_load_const_str
,
rt_load_name
,
rt_load_global
,
...
...
py/runtime.h
View file @
1595f325
...
...
@@ -76,7 +76,7 @@ typedef enum {
RT_F_NUMBER_OF
,
}
rt_fun_kind_t
;
extern
void
*
rt_fun_table
[
RT_F_NUMBER_OF
];
extern
const
void
*
const
rt_fun_table
[
RT_F_NUMBER_OF
];
typedef
machine_ptr_t
py_obj_t
;
// must be of pointer size
typedef
py_obj_t
(
*
py_fun_0_t
)();
...
...
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