Skip to content

Commit 0d126cf

Browse files
committed
address review
1 parent 77b9317 commit 0d126cf

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
Move constant folding to the peephole optimizer. Rename AST optimization
2-
related files/structs/functions.
2+
related files (ast_opt.c -> ast_process.c), structs (_PyASTOptimizeState -> _PyASTProcessState)
3+
and functions (_PyAST_Optimize -> _PyAST_Process, _PyCompile_AstOptimize -> _PyCompile_AstProcess).

Python/ast_process.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ astfold_type_param(type_param_ty node_, PyArena *ctx_, _PyASTProcessState *state
936936

937937
int
938938
_PyAST_Process(mod_ty mod, PyArena *arena, PyObject *filename, int optimize,
939-
int ff_features, int syntax_check_only)
939+
int ff_features, int syntax_check_only)
940940
{
941941
_PyASTProcessState state;
942942
memset(&state, 0, sizeof(_PyASTProcessState));

Python/compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@ _PyAST_Compile(mod_ty mod, PyObject *filename, PyCompilerFlags *pflags,
14501450

14511451
int
14521452
_PyCompile_AstProcess(mod_ty mod, PyObject *filename, PyCompilerFlags *cf,
1453-
int optimize, PyArena *arena, int no_const_folding)
1453+
int optimize, PyArena *arena, int no_const_folding)
14541454
{
14551455
_PyFutureFeatures future;
14561456
if (!_PyFuture_FromAST(mod, filename, &future)) {

0 commit comments

Comments
 (0)