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
5fd7bc32
Commit
5fd7bc32
authored
Feb 16, 2014
by
Paul Sokolovsky
Browse files
Propagate scope flags refactor to emitcpy.c.
parent
91ba7a54
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/emitcpy.c
View file @
5fd7bc32
...
...
@@ -779,7 +779,7 @@ STATIC void emit_cpy_make_closure(emit_t *emit, scope_t *scope, int n_dict_param
STATIC
void
emit_cpy_yield_value
(
emit_t
*
emit
)
{
emit_pre
(
emit
,
0
,
1
);
if
(
emit
->
pass
==
PASS_2
)
{
emit
->
scope
->
flags
|=
SCOPE_FLAG_GENERATOR
;
emit
->
scope
->
scope_
flags
|=
MP_
SCOPE_FLAG_GENERATOR
;
}
if
(
emit
->
pass
==
PASS_3
)
{
printf
(
"YIELD_VALUE
\n
"
);
...
...
@@ -789,7 +789,7 @@ STATIC void emit_cpy_yield_value(emit_t *emit) {
STATIC
void
emit_cpy_yield_from
(
emit_t
*
emit
)
{
emit_pre
(
emit
,
-
1
,
1
);
if
(
emit
->
pass
==
PASS_2
)
{
emit
->
scope
->
flags
|=
SCOPE_FLAG_GENERATOR
;
emit
->
scope
->
scope_
flags
|=
MP_
SCOPE_FLAG_GENERATOR
;
}
if
(
emit
->
pass
==
PASS_3
)
{
printf
(
"YIELD_FROM
\n
"
);
...
...
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