diff options
| author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-02-16 03:02:47 +0200 |
|---|---|---|
| committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-02-16 03:02:47 +0200 |
| commit | 5fd7bc32645b6f0d1e818244a7330908c1d25057 (patch) | |
| tree | 954303797fd83d536e60b2a1b1c73b81ab9d5cbb /py/emitcpy.c | |
| parent | 91ba7a54c51958a584f3dd404be7d62b5ec0bbd9 (diff) | |
Propagate scope flags refactor to emitcpy.c.
Diffstat (limited to 'py/emitcpy.c')
| -rw-r--r-- | py/emitcpy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/emitcpy.c b/py/emitcpy.c index 2a8b577c9..b31425f2e 100644 --- a/py/emitcpy.c +++ b/py/emitcpy.c @@ -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"); |
