Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
9a4d4db3
Commit
9a4d4db3
authored
Nov 03, 2023
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py/runtime: Remove declaration of function from inside function.
Signed-off-by:
Damien George
<
damien@micropython.org
>
parent
6ef9b29f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
py/runtime.c
py/runtime.c
+1
-1
No files found.
py/runtime.c
View file @
9a4d4db3
...
...
@@ -40,6 +40,7 @@
#include "py/objmodule.h"
#include "py/objgenerator.h"
#include "py/smallint.h"
#include "py/stream.h"
#include "py/runtime.h"
#include "py/builtin.h"
#include "py/stackctrl.h"
...
...
@@ -1327,7 +1328,6 @@ mp_obj_t mp_getiter(mp_obj_t o_in, mp_obj_iter_buf_t *iter_buf) {
STATIC
mp_fun_1_t
type_get_iternext
(
const
mp_obj_type_t
*
type
)
{
if
((
type
->
flags
&
MP_TYPE_FLAG_ITER_IS_STREAM
)
==
MP_TYPE_FLAG_ITER_IS_STREAM
)
{
mp_obj_t
mp_stream_unbuffered_iter
(
mp_obj_t
self
);
return
mp_stream_unbuffered_iter
;
}
else
if
(
type
->
flags
&
MP_TYPE_FLAG_ITER_IS_ITERNEXT
)
{
return
(
mp_fun_1_t
)
MP_OBJ_TYPE_GET_SLOT
(
type
,
iter
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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