diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-08-10 21:41:33 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-08-10 21:41:33 (GMT) |
commit | b857ba261fc468d956e350f51469efd7d5773da2 (patch) | |
tree | ae9529e282d8d196eaaab2ab394e395626aca137 /Python/ceval.c | |
parent | fdd12f66bb9740c7796441cd19db2a9d1502ee4f (diff) | |
download | cpython-b857ba261fc468d956e350f51469efd7d5773da2.zip cpython-b857ba261fc468d956e350f51469efd7d5773da2.tar.gz cpython-b857ba261fc468d956e350f51469efd7d5773da2.tar.bz2 |
Refactor future feature handling
Replace uses of PyCF_xxx with CO_xxx.
Replace individual feature slots in PyFutureFeatures with single
bitmask ff_features.
When flags must be transfered among the three parts of the interpreter
that care about them -- the pythonrun layer, the compiler, and the
future feature parser -- can simply or (|) the definitions.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 583d7e3..bf85f11 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -2937,11 +2937,11 @@ PyEval_MergeCompilerFlags(PyCompilerFlags *cf) const int codeflags = current_frame->f_code->co_flags; if (codeflags & CO_NESTED) { result = 1; - cf->cf_flags |= PyCF_NESTED_SCOPES; + cf->cf_flags |= CO_NESTED; } if (codeflags & CO_GENERATOR_ALLOWED) { result = 1; - cf->cf_flags |= PyCF_GENERATORS; + cf->cf_flags |= CO_GENERATOR_ALLOWED; } } return result; |