Skip to content

Commit 3b43460

Browse files
committed
rename process to preprocess
1 parent 2d1bc6f commit 3b43460

File tree

13 files changed

+21
-21
lines changed

13 files changed

+21
-21
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ Include/internal/pycore_time.h @pganssle @abalkin
188188

189189
# AST
190190
Python/ast.c @isidentical @JelleZijlstra @eclips4
191-
Python/ast_process.c @isidentical @eclips4
191+
Python/ast_preprocess.c @isidentical @eclips4
192192
Parser/asdl.py @isidentical @JelleZijlstra @eclips4
193193
Parser/asdl_c.py @isidentical @JelleZijlstra @eclips4
194194
Lib/ast.py @isidentical @JelleZijlstra @eclips4

Include/internal/pycore_compile.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ PyAPI_FUNC(PyCodeObject*) _PyAST_Compile(
3434
int optimize,
3535
struct _arena *arena);
3636

37-
/* AST processing */
38-
extern int _PyCompile_AstProcess(
37+
/* AST preprocessing */
38+
extern int _PyCompile_AstPreprocess(
3939
struct _mod *mod,
4040
PyObject *filename,
4141
PyCompilerFlags *flags,
4242
int optimize,
4343
struct _arena *arena,
4444
int syntax_check_only);
4545

46-
extern int _PyAST_Process(
46+
extern int _PyAST_Preprocess(
4747
struct _mod *,
4848
struct _arena *arena,
4949
PyObject *filename,

InternalDocs/compiler.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,8 +505,8 @@ Important files
505505
* [Python/ast.c](../Python/ast.c):
506506
Used for validating the AST.
507507

508-
* [Python/ast_process.c](../Python/ast_process.c):
509-
Processes the AST before compiling.
508+
* [Python/ast_preprocess.c](../Python/ast_preprocess.c):
509+
Preprocesses the AST before compiling.
510510

511511
* [Python/ast_unparse.c](../Python/ast_unparse.c):
512512
Converts the AST expression node back into a string (for string annotations).

Makefile.pre.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ PYTHON_OBJS= \
426426
Python/asdl.o \
427427
Python/assemble.o \
428428
Python/ast.o \
429-
Python/ast_process.o \
429+
Python/ast_preprocess.o \
430430
Python/ast_unparse.o \
431431
Python/bltinmodule.o \
432432
Python/brc.o \
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Move constant folding to the peephole optimizer. Rename AST optimization
2-
related files (Python/ast_opt.c -> Python/ast_process.c), structs (_PyASTOptimizeState -> _PyASTProcessState)
3-
and functions (_PyAST_Optimize -> _PyAST_Process, _PyCompile_AstOptimize -> _PyCompile_AstProcess).
2+
related files (Python/ast_opt.c -> Python/ast_preprocess.c), structs (_PyASTOptimizeState -> _PyASTProcessState)
3+
and functions (_PyAST_Optimize -> _PyAST_Preprocess, _PyCompile_AstOptimize -> _PyCompile_AstPreprocess).

PCbuild/_freeze_module.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
<ClCompile Include="..\Python\asdl.c" />
191191
<ClCompile Include="..\Python\assemble.c" />
192192
<ClCompile Include="..\Python\ast.c" />
193-
<ClCompile Include="..\Python\ast_process.c" />
193+
<ClCompile Include="..\Python\ast_preprocess.c" />
194194
<ClCompile Include="..\Python\ast_unparse.c" />
195195
<ClCompile Include="..\Python\bltinmodule.c" />
196196
<ClCompile Include="..\Python\brc.c" />

PCbuild/_freeze_module.vcxproj.filters

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<ClCompile Include="..\Python\ast.c">
3535
<Filter>Source Files</Filter>
3636
</ClCompile>
37-
<ClCompile Include="..\Python\ast_process.c">
37+
<ClCompile Include="..\Python\ast_preprocess.c">
3838
<Filter>Source Files</Filter>
3939
</ClCompile>
4040
<ClCompile Include="..\Python\ast_unparse.c">

PCbuild/pythoncore.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@
580580
<ClCompile Include="..\Python\asdl.c" />
581581
<ClCompile Include="..\Python\assemble.c" />
582582
<ClCompile Include="..\Python\ast.c" />
583-
<ClCompile Include="..\Python\ast_process.c" />
583+
<ClCompile Include="..\Python\ast_preprocess.c" />
584584
<ClCompile Include="..\Python\ast_unparse.c" />
585585
<ClCompile Include="..\Python\bltinmodule.c" />
586586
<ClCompile Include="..\Python\bootstrap_hash.c" />

PCbuild/pythoncore.vcxproj.filters

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,7 @@
13251325
<ClCompile Include="..\Python\ast.c">
13261326
<Filter>Python</Filter>
13271327
</ClCompile>
1328-
<ClCompile Include="..\Python\ast_process.c">
1328+
<ClCompile Include="..\Python\ast_preprocess.c">
13291329
<Filter>Python</Filter>
13301330
</ClCompile>
13311331
<ClCompile Include="..\Python\ast_unparse.c">

Python/ast_process.c renamed to Python/ast_preprocess.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -941,8 +941,8 @@ astfold_type_param(type_param_ty node_, PyArena *ctx_, _PyASTProcessState *state
941941
#undef CALL_SEQ
942942

943943
int
944-
_PyAST_Process(mod_ty mod, PyArena *arena, PyObject *filename, int optimize,
945-
int ff_features, int syntax_check_only)
944+
_PyAST_Preprocess(mod_ty mod, PyArena *arena, PyObject *filename, int optimize,
945+
int ff_features, int syntax_check_only)
946946
{
947947
_PyASTProcessState state;
948948
memset(&state, 0, sizeof(_PyASTProcessState));

0 commit comments

Comments
 (0)