Home
last modified time | relevance | path

Searched refs:cf_flags (Results 1 – 22 of 22) sorted by relevance

/external/python/cpython3/Include/
Dcompile.h38 int cf_flags; /* bitmask of CO_xxx flags relevant to future */ member
43 (PyCompilerFlags){.cf_flags = 0, .cf_feature_version = PY_MINOR_VERSION}
/external/python/cpython2/Python/
Dpythonrun.c773 local_flags.cf_flags = 0; in PyRun_InteractiveLoopFlags()
800 ((flags) ? ((((flags)->cf_flags & PyCF_DONT_IMPLY_DEDENT) ? \
806 ((flags) ? ((((flags)->cf_flags & PyCF_DONT_IMPLY_DEDENT) ? \
808 | (((flags)->cf_flags & CO_FUTURE_PRINT_FUNCTION) ? \
810 | (((flags)->cf_flags & CO_FUTURE_UNICODE_LITERALS) ? \
1417 flags->cf_flags |= (co->co_flags & PyCF_MASK); in run_pyc_file()
1437 if (flags && (flags->cf_flags & PyCF_ONLY_AST)) { in Py_CompileStringFlags()
1457 flags.cf_flags = 0; in Py_SymtableString()
1483 localflags.cf_flags = 0; in PyParser_ASTFromString()
1487 flags->cf_flags |= iflags & PyCF_MASK; in PyParser_ASTFromString()
[all …]
Dbltinmodule.c489 cf.cf_flags = supplied_flags; in builtin_compile()
551 cf.cf_flags |= PyCF_SOURCE_IS_UTF8; in builtin_compile()
688 cf.cf_flags = 0; in builtin_eval()
696 cf.cf_flags |= PyCF_SOURCE_IS_UTF8; in builtin_eval()
810 cf.cf_flags = 0; in builtin_execfile()
1260 cf.cf_flags = 0; in builtin_input()
Dcompile.c276 local_flags.cf_flags = 0; in PyAST_Compile()
279 merged = c.c_future->ff_features | flags->cf_flags; in PyAST_Compile()
281 flags->cf_flags = merged; in PyAST_Compile()
1926 if (c->c_flags && (c->c_flags->cf_flags & CO_FUTURE_ABSOLUTE_IMPORT)) in compiler_import()
1979 !(c->c_flags->cf_flags & CO_FUTURE_ABSOLUTE_IMPORT)) in compiler_from_import()
2220 if (c->c_flags && c->c_flags->cf_flags & CO_FUTURE_DIVISION) in binop()
2287 if (c->c_flags && c->c_flags->cf_flags & CO_FUTURE_DIVISION) in inplace_binop()
3787 flags |= (c->c_flags->cf_flags & PyCF_MASK); in compute_code_flags()
Dceval.c4182 int result = cf->cf_flags != 0; in PyEval_MergeCompilerFlags()
4189 cf->cf_flags |= compilerflags; in PyEval_MergeCompilerFlags()
4194 cf->cf_flags |= CO_GENERATOR_ALLOWED; in PyEval_MergeCompilerFlags()
5097 cf.cf_flags = 0; in exec_statement()
5109 cf.cf_flags = 0; in exec_statement()
5116 cf.cf_flags |= PyCF_SOURCE_IS_UTF8; in exec_statement()
Dast.c225 if (flags && flags->cf_flags & PyCF_SOURCE_IS_UTF8) { in PyAST_FromNode()
237 c.c_future_unicode = flags && flags->cf_flags & CO_FUTURE_UNICODE_LITERALS; in PyAST_FromNode()
Dimport.c899 flags.cf_flags = 0; in parse_source_module()
/external/python/cpython3/Python/
Dpythonrun.c157 if (flags->cf_flags & PyCF_DONT_IMPLY_DEDENT) in PARSER_FLAGS()
159 if (flags->cf_flags & PyCF_IGNORE_COOKIE) in PARSER_FLAGS()
161 if (flags->cf_flags & CO_FUTURE_BARRY_AS_BDFL) in PARSER_FLAGS()
163 if (flags->cf_flags & PyCF_TYPE_COMMENTS) in PARSER_FLAGS()
171 ((flags) ? ((((flags)->cf_flags & PyCF_DONT_IMPLY_DEDENT) ? \
173 | ((flags)->cf_flags & CO_FUTURE_WITH_STATEMENT ? \
1239 flags->cf_flags |= (co->co_flags & PyCF_MASK); in run_pyc_file()
1268 if (flags && (flags->cf_flags & PyCF_ONLY_AST)) { in Py_CompileStringObject()
1308 cf->cf_flags |= PyCF_IGNORE_COOKIE; in _Py_SourceAsString()
1405 if (flags && (flags->cf_flags & PyCF_ONLY_AST) && flags->cf_feature_version < 7) in PyParser_ASTFromStringObject()
[all …]
Dbltinmodule.c736 cf.cf_flags = flags | PyCF_SOURCE_IS_UTF8; in builtin_compile_impl()
950 cf.cf_flags = PyCF_SOURCE_IS_UTF8; in builtin_eval_impl()
1041 cf.cf_flags = PyCF_SOURCE_IS_UTF8; in builtin_exec_impl()
Dcompile.c44 (c->c_flags->cf_flags & PyCF_ALLOW_TOP_LEVEL_AWAIT) \
347 merged = c.c_future->ff_features | flags->cf_flags; in PyAST_CompileObject()
349 flags->cf_flags = merged; in PyAST_CompileObject()
5855 flags |= (c->c_flags->cf_flags & PyCF_MASK); in compute_code_flags()
Dceval.c4945 int result = cf->cf_flags != 0; in PyEval_MergeCompilerFlags()
4952 cf->cf_flags |= compilerflags; in PyEval_MergeCompilerFlags()
4957 cf->cf_flags |= CO_GENERATOR_ALLOWED; in PyEval_MergeCompilerFlags()
Dast.c780 c.c_feature_version = flags && (flags->cf_flags & PyCF_ONLY_AST) ? in PyAST_FromNodeObject()
4781 cf.cf_flags = PyCF_ONLY_AST; in fstring_compile_expr()
/external/python/cpython3/Modules/
Dsymtablemodule.c36 cf.cf_flags = PyCF_SOURCE_IS_UTF8; in _symtable_symtable_impl()
Dparsermodule.c584 ((PyST_Object *)res)->st_flags.cf_flags = flags & PyCF_MASK; in parser_do_parse()
/external/python/cpython2/Modules/
Dmain.c266 cf.cf_flags = 0; in Py_Main()
360 cf.cf_flags |= CO_FUTURE_DIVISION; in Py_Main()
Dparsermodule.c303 o->st_flags.cf_flags = 0; in parser_newstobject()
581 ((PyST_Object *)res)->st_flags.cf_flags = flags & PyCF_MASK; in parser_do_parse()
/external/python/cpython2/Include/
Dpythonrun.h19 int cf_flags; /* bitmask of CO_xxx flags relevant to future */ member
/external/python/cpython3/Parser/pegen/
Dpegen.c1036 if (flags->cf_flags & PyCF_DONT_IMPLY_DEDENT) { in compute_parser_flags()
1039 if (flags->cf_flags & PyCF_IGNORE_COOKIE) { in compute_parser_flags()
1042 if (flags->cf_flags & CO_FUTURE_BARRY_AS_BDFL) { in compute_parser_flags()
1045 if (flags->cf_flags & PyCF_TYPE_COMMENTS) { in compute_parser_flags()
1048 if ((flags->cf_flags & PyCF_ONLY_AST) && flags->cf_feature_version < 7) { in compute_parser_flags()
1223 if (flags == NULL || flags->cf_flags & PyCF_IGNORE_COOKIE) { in _PyPegen_run_parser_from_string()
1242 int feature_version = flags && (flags->cf_flags & PyCF_ONLY_AST) ? in _PyPegen_run_parser_from_string()
/external/python/cpython3/Doc/c-api/
Dveryhigh.rst399 Whenever ``PyCompilerFlags *flags`` is ``NULL``, :attr:`cf_flags` is treated as
403 .. c:member:: int cf_flags
413 ``PyCF_ONLY_AST`` flag is set in *cf_flags*.
/external/python/cpython2/Doc/c-api/
Dveryhigh.rst310 Whenever ``PyCompilerFlags *flags`` is *NULL*, :attr:`cf_flags` is treated as
315 int cf_flags;
/external/python/cffi/c/
D_cffi_backend.c229 unsigned char cf_flags; /* BF_... */ member
715 {"flags", T_UBYTE, OFF(cf_flags), READONLY},
1514 while (cf != NULL && (cf->cf_flags & BF_IGNORE_IN_CTOR)) in convert_struct_from_object()
4791 cf->cf_flags = flags; in _add_field()
5021 cfsrc->cf_flags | fflags); in b_complete_struct_or_union()
/external/python/cpython3/Doc/whatsnew/
D3.8.rst2013 *cf_flags*.