Lines Matching refs:ff
15 future_check_features(PyFutureFeatures *ff, stmt_ty s, const char *filename) in future_check_features() argument
33 ff->ff_features |= CO_FUTURE_DIVISION; in future_check_features()
35 ff->ff_features |= CO_FUTURE_ABSOLUTE_IMPORT; in future_check_features()
37 ff->ff_features |= CO_FUTURE_WITH_STATEMENT; in future_check_features()
39 ff->ff_features |= CO_FUTURE_PRINT_FUNCTION; in future_check_features()
41 ff->ff_features |= CO_FUTURE_UNICODE_LITERALS; in future_check_features()
58 future_parse(PyFutureFeatures *ff, mod_ty mod, const char *filename) in future_parse() argument
98 if (!future_check_features(ff, s, filename)) in future_parse()
100 ff->ff_lineno = s->lineno; in future_parse()
122 PyFutureFeatures *ff; in PyFuture_FromAST() local
124 ff = (PyFutureFeatures *)PyObject_Malloc(sizeof(PyFutureFeatures)); in PyFuture_FromAST()
125 if (ff == NULL) { in PyFuture_FromAST()
129 ff->ff_features = 0; in PyFuture_FromAST()
130 ff->ff_lineno = -1; in PyFuture_FromAST()
132 if (!future_parse(ff, mod, filename)) { in PyFuture_FromAST()
133 PyObject_Free(ff); in PyFuture_FromAST()
136 return ff; in PyFuture_FromAST()