diff options
| author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2024-04-02 10:34:49 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-02 10:34:49 (GMT) |
| commit | 1d5479b236e9a66dd32a24eff6fb83e3242b999d (patch) | |
| tree | 58952ccbc1825b1b7a3004a5971bd4a9a23b2dca /Python/compile.c | |
| parent | 5fd1897ec51cb64ef7990ada538fcd8d9ca1f74b (diff) | |
| download | cpython-1d5479b236e9a66dd32a24eff6fb83e3242b999d.zip cpython-1d5479b236e9a66dd32a24eff6fb83e3242b999d.tar.gz cpython-1d5479b236e9a66dd32a24eff6fb83e3242b999d.tar.bz2 | |
gh-117411: move PyFutureFeatures to pycore_symtable.h and make it private (#117412)
Diffstat (limited to 'Python/compile.c')
| -rw-r--r-- | Python/compile.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/compile.c b/Python/compile.c index 43b3cbd..d9312f9 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -70,11 +70,11 @@ ((C)->c_flags.cf_flags & PyCF_ALLOW_TOP_LEVEL_AWAIT) \ && ((C)->u->u_ste->ste_type == ModuleBlock)) -typedef _PyCompilerSrcLocation location; +typedef _Py_SourceLocation location; typedef struct _PyCfgBuilder cfg_builder; #define LOCATION(LNO, END_LNO, COL, END_COL) \ - ((const _PyCompilerSrcLocation){(LNO), (END_LNO), (COL), (END_COL)}) + ((const _Py_SourceLocation){(LNO), (END_LNO), (COL), (END_COL)}) /* Return true if loc1 starts after loc2 ends. */ static inline bool @@ -408,7 +408,7 @@ handled by the symbol analysis pass. struct compiler { PyObject *c_filename; struct symtable *c_st; - PyFutureFeatures c_future; /* module's __future__ */ + _PyFutureFeatures c_future; /* module's __future__ */ PyCompilerFlags c_flags; int c_optimize; /* optimization level */ @@ -585,7 +585,7 @@ int _PyCompile_AstOptimize(mod_ty mod, PyObject *filename, PyCompilerFlags *cf, int optimize, PyArena *arena) { - PyFutureFeatures future; + _PyFutureFeatures future; if (!_PyFuture_FromAST(mod, filename, &future)) { return -1; } |
